OK, this is not the whole picture.
As for me (VS2005), I had only one pair of Default.aspx and Default.aspx.cs
just for some testing purpose. It worked OK until certain moment.
I did something and since then started to get this compilation error.
Yes, casting thing like: Label lb = (Label)Page.FindControl("form1")... does work, but nothing else.
And then by accident I discovered that VS2005 by default generates DLLs
and put them in some folder like: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\ccd7038d\1778aef7\assembly\dl3\8d7ee5d1\de6c8a4c_8acec901\ (!?)
Maybe that was because I did not deploy my site(pages) onto the server.
Anyway, the point is that sometimes DLLs are not rebuilt, and
I found the whole bunch of these DLLs under the ..\root\ folder!
Can anyone comment on this?
None
0 Points
4 Posts
Re: The name xxx Does Not Exist in the Current Context
May 06, 2009 05:07 PM|konic|LINK
As for me (VS2005), I had only one pair of Default.aspx and Default.aspx.cs
just for some testing purpose. It worked OK until certain moment.
I did something and since then started to get this compilation error.
Yes, casting thing like:
Label lb = (Label)Page.FindControl("form1")... does work, but nothing else.
And then by accident I discovered that VS2005 by default generates DLLs
and put them in some folder like: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\ccd7038d\1778aef7\assembly\dl3\8d7ee5d1\de6c8a4c_8acec901\ (!?)
Maybe that was because I did not deploy my site(pages) onto the server.
Anyway, the point is that sometimes DLLs are not rebuilt, and
I found the whole bunch of these DLLs under the ..\root\ folder!
Can anyone comment on this?