I have an ASP.NET 2.0 web app. I want to create a precompiled version using a deployment project. I just downloaded the latest version of the web deployment project plugin from Microsoft's
site and created a new deployment project for my app. When I try to use the precompiled version, I get a compilation error:
CS0030: Cannot convert type 'ASP.login_aspx' to 'System.Web.UI.WebControls.Login'
Line 120: public login_aspx() { Line 121: string[] dependencies; Line 122: ((Login)(this)).AppRelativeVirtualPath = "~/Login.aspx"; Line 123: if ((global::ASP.login_aspx.@__initialized == false)) { Line 124: global::ASP.login_aspx.@__stringResource = this.ReadStringResource();
Any idea what I am doing wrong or what I can do to diagnose further?
I had the same problem...I then just renamed the ASP-page to LoginPage.aspx and the it worked...I don't know yet why this problem happens...I think there's a problem with the using-statement in the code-behind-file ("using System.Web.UI.WebControls")...If
you know more about that it please tell me so...
RogerWilco
Member
90 Points
46 Posts
Newbie Problem: Compilation Error
May 16, 2006 05:15 PM|LINK
CS0030: Cannot convert type 'ASP.login_aspx' to 'System.Web.UI.WebControls.Login'
Line 120: public login_aspx() {Line 121: string[] dependencies;
Line 122: ((Login)(this)).AppRelativeVirtualPath = "~/Login.aspx";
Line 123: if ((global::ASP.login_aspx.@__initialized == false)) {
Line 124: global::ASP.login_aspx.@__stringResource = this.ReadStringResource();
Any idea what I am doing wrong or what I can do to diagnose further?
BjörnBur
Member
5 Points
1 Post
Re: Newbie Problem: Compilation Error
Jul 06, 2006 08:57 AM|LINK
Hello Roger,
I had the same problem...I then just renamed the ASP-page to LoginPage.aspx and the it worked...I don't know yet why this problem happens...I think there's a problem with the using-statement in the code-behind-file ("using System.Web.UI.WebControls")...If you know more about that it please tell me so...
Björn