Click here to Skip to main content
15,887,821 members
Home / Discussions / C#
   

C#

 
GeneralRe: Performance of FileStream, scale is stalking me Pin
Rob Philpott19-Aug-15 7:18
Rob Philpott19-Aug-15 7:18 
GeneralRe: Performance of FileStream, scale is stalking me Pin
Eddy Vluggen19-Aug-15 8:11
professionalEddy Vluggen19-Aug-15 8:11 
AnswerRe: Performance of FileStream, scale is stalking me Pin
Afzaal Ahmad Zeeshan19-Aug-15 5:41
professionalAfzaal Ahmad Zeeshan19-Aug-15 5:41 
GeneralRe: Performance of FileStream, scale is stalking me Pin
Rob Philpott19-Aug-15 5:52
Rob Philpott19-Aug-15 5:52 
GeneralRe: Performance of FileStream, scale is stalking me Pin
Afzaal Ahmad Zeeshan19-Aug-15 5:58
professionalAfzaal Ahmad Zeeshan19-Aug-15 5:58 
GeneralRe: Performance of FileStream, scale is stalking me Pin
Rob Philpott19-Aug-15 6:10
Rob Philpott19-Aug-15 6:10 
GeneralRe: Performance of FileStream, scale is stalking me Pin
Pete O'Hanlon19-Aug-15 6:18
mvePete O'Hanlon19-Aug-15 6:18 
QuestionMSBuild The type or namespace name 'Class1' could not be found (are you missing a using directive or an assembly reference?) error Pin
Txalaparta18-Aug-15 23:18
professionalTxalaparta18-Aug-15 23:18 
XML
I have a multiproject  c# solution which builds in VS2013 on my local machine. When
I do TFS MSBuild in fires the following error:

It's a just a _default. aspx page
<i>The type or namespace name 'Class1' could not be found (are you missing a using directive or an assembly reference?)</i>

What surprises me is that it has no external references and it's calling a class in the same namespace but in another file.

default.apx:

<i><%@ Page Language="C#" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="MyProject.Service.Proxy._default"   %>
</i>

default.aspx.cs:
namespace MyProject.Service.Proxy
{

  public partial class _default : System.Web.UI.Page
    {
     protected void Page_Load(object sender, EventArgs e)
        {
            var a = new Class1();
            ......
        }
    }
}

class1.cs:
<i>namespace MyProject.Service.Proxy
{
    public class Class1
    {
        public int Number { get; set; }

        public Class1()
        {
            Number = 1;

        }
    }
}
</i>

As you can see all classes and files are in the very same namespace.


But if I write the Class1 code in default.aspx.cs IT WORKS!

<i>namespace MyProject.Service.Proxy
{
   public class Class1
   {
      public int Number { get; set; }

      public Class1()
      {
          Number = 1;
      }
  }

  public partial class _default : System.Web.UI.Page
    {
     protected void Page_Load(object sender, EventArgs e)
        {
            var a = new Class1();
            ......
        }
    }
}
</i>
I wouldn't like to end up having a too long and unreadable default.aspx.cs
Do you have any clue what I'm doing wrong?
Thanks so much

QuestionRe: MSBuild The type or namespace name 'Class1' could not be found (are you missing a using directive or an assembly reference?) error Pin
Eddy Vluggen19-Aug-15 0:44
professionalEddy Vluggen19-Aug-15 0:44 
AnswerRe: MSBuild The type or namespace name 'Class1' could not be found (are you missing a using directive or an assembly reference?) error Pin
Txalaparta19-Aug-15 2:05
professionalTxalaparta19-Aug-15 2:05 
GeneralRe: MSBuild The type or namespace name 'Class1' could not be found (are you missing a using directive or an assembly reference?) error Pin
Eddy Vluggen19-Aug-15 2:39
professionalEddy Vluggen19-Aug-15 2:39 
QuestionSession Ends after any change made in asp.net Pin
Salman Azhar18-Aug-15 22:10
Salman Azhar18-Aug-15 22:10 
QuestionGet all the network activity data in Resouce Monitor Pin
LeHuuTien18-Aug-15 20:35
LeHuuTien18-Aug-15 20:35 
AnswerRe: Get all the network activity data in Resouce Monitor Pin
Richard MacCutchan18-Aug-15 22:00
mveRichard MacCutchan18-Aug-15 22:00 
GeneralRe: Get all the network activity data in Resouce Monitor Pin
LeHuuTien19-Aug-15 16:23
LeHuuTien19-Aug-15 16:23 
GeneralRe: Get all the network activity data in Resouce Monitor Pin
Richard MacCutchan19-Aug-15 20:51
mveRichard MacCutchan19-Aug-15 20:51 
AnswerRe: Get all the network activity data in Resouce Monitor Pin
Nitzan Levi19-Aug-15 9:57
Nitzan Levi19-Aug-15 9:57 
GeneralRe: Get all the network activity data in Resouce Monitor Pin
LeHuuTien19-Aug-15 16:05
LeHuuTien19-Aug-15 16:05 
Questionertan tike dayview calendar control Pin
Member 1189642718-Aug-15 20:01
Member 1189642718-Aug-15 20:01 
AnswerRe: ertan tike dayview calendar control Pin
Pete O'Hanlon18-Aug-15 21:27
mvePete O'Hanlon18-Aug-15 21:27 
AnswerRe: ertan tike dayview calendar control Pin
Nitzan Levi19-Aug-15 10:08
Nitzan Levi19-Aug-15 10:08 
GeneralRe: ertan tike dayview calendar control Pin
Member 1189642720-Aug-15 19:09
Member 1189642720-Aug-15 19:09 
QuestionNullReference Exception when trying to cancel Connection Pin
Member 1191874118-Aug-15 15:11
Member 1191874118-Aug-15 15:11 
SuggestionRe: NullReference Exception when trying to cancel Connection Pin
Richard MacCutchan18-Aug-15 21:59
mveRichard MacCutchan18-Aug-15 21:59 
GeneralRe: NullReference Exception when trying to cancel Connection Pin
Member 1191874118-Aug-15 23:00
Member 1191874118-Aug-15 23:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.