Parser Error: '_Default' is not allowed here because it does not extend class 'System.Web.UI.Page' & MasterType declaration

后端 未结 10 1267
说谎
说谎 2020-12-09 07:22

I recently converted a website project to a web application project in Visual Studio 2008. I finally got it to compile, and the first page (the login screen) displayed as n

10条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-09 07:51

    Look for this:

    ANY page in your project that has a missing, or different Namespace...

    If you have ANY page in your project with > , OR a

    DIFFERENT Namespace than Default.aspx, you will get this

    "Cannot load Default.aspx", or this: "Default.aspx does not belong here".

    ALSO: If you have a Redirect to a page in your Solution/Project and the page which is to be Redirected To has a bad namespace -- you may not get a compiler error, until you try and run. If the Redirect is removed or commented-out, the error goes away...

    BTW -- What the hell do these error messages mean? Is this MS.Access, with the "misdirection" -- ??

    DGK

提交回复
热议问题