KeyLimeTie Blog

Cannot convert type 'ASP.login_aspx' to 'System.Web.UI.WebControls. Login'

By Brian Pautsch – 4/24/2006 10:17:00 AM. Posted to Thoughts.

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.com

The 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

Name:
Email:
URL:
Comment:
Security Code:
Type Security Code:

Photos on Flickr

More Photos »

Search Blog


Get Email Updates

Like what you read here at KeyLimeTie? Sign up for our email list!

Subscribe