G'day,
I have encontered what appears to be a common problem, but unfortunately the typical solution i have found has not worked for me.
I have just copied the files from an "ASP .NET Web Site" to an "ASP .NET Web Application" because i have learned about the differences and have decided to move to the latter. I simply copied and pasted all the .aspx (with respective .aspx.cs code-behind files) and some other files such as scripts etc into the "Web Application". I have also added the same references to class libraries I had in the "Web Site".
When I come to compile the "Web Application", I get errors saying that controls "cannot be found in the current context". I did not get these errors in the "Web Site" and the common problem apparently is that there are backup files or duplicate partial classes, which i'm certain is not the case for me...
One example is that I have an ASP:PlaceHolder in header.aspx as follows...
<asp:Placeholder runat="server" ID="headermenuholder">
...but i get the error "The name 'headermenuholder' does not exist in the current context"
I would be VERY greatful if someone could give me their opinion! :)
Best Regards,
Chris