Its very easy to fix this problem.
Go into your web site properties and see what version of ASP.NET you are using. If its 1.1, you need to change the <%@ Page %>
directive to use Codebehind="...". If its ASP.NET 2.0 or later, you need to use Codefile="..." and remove the Inherits="" phrase. Thats it! Most people are switching framework versions on different servers and are not make this change at the top of their ASPX pages. - www.stormdetector.com