A
Andrea Williams
I'm trying to add common functionality to each of my ASPX page, using inheritance from a project class out side my web class. When I do that, the Web Forms Designer does not load.
public class UserRegister : WebBaseClass
{
}
//In a different assembly
public class WebBaseClass : System.Web.UI.Page
{
}
Everything compiles and runs just fine, but the ASPX page doesn't show me the "Design" and "HTML" buttons at the bottom any more, and I get the following error when opening the ASPX file:
The file could not be loaded into the Web Forms Designer. Please correct the following error and then try loading it again:
An exception occurred while trying to create an instance of ASPCommon. The exception was "Culture name US-EN is not supported."
Parameter name: name".
Make sure all of the classes used in the page are built or referenced in the project.
I at first thought it was because I had the page's inheritance three levels deep, but now I've determined that it's because the class that inherits System.Web.UI.Page is not in the same assembly.
Has anyone else found this problem, and if so, what was done to fix the issue?
Thanks!
Andrea
public class UserRegister : WebBaseClass
{
}
//In a different assembly
public class WebBaseClass : System.Web.UI.Page
{
}
Everything compiles and runs just fine, but the ASPX page doesn't show me the "Design" and "HTML" buttons at the bottom any more, and I get the following error when opening the ASPX file:
The file could not be loaded into the Web Forms Designer. Please correct the following error and then try loading it again:
An exception occurred while trying to create an instance of ASPCommon. The exception was "Culture name US-EN is not supported."
Parameter name: name".
Make sure all of the classes used in the page are built or referenced in the project.
I at first thought it was because I had the page's inheritance three levels deep, but now I've determined that it's because the class that inherits System.Web.UI.Page is not in the same assembly.
Has anyone else found this problem, and if so, what was done to fix the issue?
Thanks!
Andrea