ali raza

C#, .Net ,Asp.net and my thoughts

Compiler Error Message: CS0030: Cannot convert type ‘ASP.login_aspx’ to ‘System.Web.UI.WebControls.Login’

Problem occur when you page name is same as Class in .net
Usually we develop the login page as login.aspx . When we publish it, the aspx is retained and tries to compile against Login’s codebehind,  which is not resolve properly in the assembly due to System.Web.Login.
To avoid it developer must Insure that Page name will not the same as in System.Web.

2 responses to “Compiler Error Message: CS0030: Cannot convert type ‘ASP.login_aspx’ to ‘System.Web.UI.WebControls.Login’

  1. Instructor August 28, 2007 at 10:56 am

    Thanks a lot for the tip.

  2. Naveen BT October 18, 2007 at 3:17 pm

    Thanks a lot a great help

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: