Wednesday, March 28, 2007

Asp.net 2.0 login.aspx page shown an error after publishing if login.aspx page class name is login

An interesting error comes when I’m published my asp.net 2.0 project and try to browse login.aspx pages. Error like this

Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0030: Cannot convert type 'ASP.login_aspx' to 'System.Web.UI.WebControls.Login'

It seems login class conflict with 'System.Web.UI.WebControls.Login' namespace thought I’m not using login control.

i'm changed the class name login to login_dam the problem was sloved...realy interesting ...

0 comments: