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.
Sample code:
"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.
Parser Error
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'.
...
Go to the complete details ...