In the process of migrating
an old VS2003 web app to VS2008, I'm running into this issue and haven't been
able to find a resolution.
"Default.aspx" has a PlaceHolder(ToolHeader). In the Page_Load(),
we dynamically load a user control passing in the virtual path to a helper
method [public Control
ParseUserControl(string virtualPath)]. This reads the content from the physical
path, returns a Control from ParseControl() method.
I immediately get the
following error when I open the default.aspx page in browser.
Description: An error occurred during the parsing of a
resource required to service this request. Please review the following specific
parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'DynamicUC.UcControl'.
Line 1: <%@ Control
Can't figure out why it can't
load the type. Namespaces are looking
right. I try removing the Inherits="DynamicUC.UcControl" attribut
View Complete Post