Technology blog written by a Microsoft C# MVP

Asp.Net C#: Upgrading Website to Latest Version Gotchas and How to Resolve

Mar 222012

One can get lost in the weeds when upgrading an asp.net .Net 1 website to anything from .Net 2 through .Net 4. One of the biggest problems after the initial conversion is that when built each page or control throws a build error:

Could not load type ‘MyNamespace.myWebPage’.

The issue stems from the fact that things changed, made life easier for new projects, and namespaces which were required were removed and certain attributes changed. To resolve the above issue follow these steps presented in this article.

In the code behind file

Remove the namespace scope. In the example below remove the highlighted lines:

This entry was posted on March 22, 2012, 7:51 am and is filed under ASP.Net. You can follow any responses to this entry through RSS 2.0.
You can skip to the end and leave a response. Pinging is currently not allowed.

2 Comments

Thanks your tidbits could not be more timely as I’ve dug myself into an upgrade hole after winning Telerik’s RadControls and trying to upgrade a WebForms Web SIte to the latest release of Ajax Control ToolKit.

I hope you might have the time to respond to how to upgrade the following: