I've been working in ASP.NET 2.0 for a month or so now, but just pushed my first application to my production servers. Website:
http://www.midwestscubadiving.comThe homepage loaded up just fine, but then I clicked on "Login" and got the following message: Cannot convert type 'ASP.login_aspx' to 'System.Web.UI.WebControls.Login'
Looking at the message, I realized the word "Login" appears to be some type of reserved type. New in ASP.NET 2.0 are the built in "Login" controls. I'm guessing there must be some conflict. I didn't want to rename my page, so I searched around a little. Someone suggested unchecking "Allow this precompiled site to be updatable". I tried that and it worked...and I don't mind not allowing the site to be updatable. This will prevent me from making small tweaks on the Production server without making them locally!
I came across the same issue with the "Profile.aspx" page. I decided to rename this page as the above resolution didn't work...and I'll probably end up renaming "Login.aspx".
Has anyone else come across this and found a better resolution?
Comments
|
On
1/8/2010
tom
said:
Compilation Error
On
1/8/2010
Anton Backer
said:
declare a namespace for your code behind.
|
Leave a Comment