Last post Nov 07, 2013 03:25 AM by Starain chen - MSFT
Nov 05, 2013 05:28 PM|Bollocks68|LINK
I upgraded a project from Visual Web Developer 2008 to 2010. It worked fine in Web Dev 2008. With Web Dev 2010 it publishes fine but the web page throws a"Could not load type" error.
Parser Error Message: Could not load type 'CheckLog2._Default'.
Line 1: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="CheckLog2._Default" %> Line 2:
Can anyone advise on how I can figure out why I'm getting this error?
Here's some more information:
my .designer.vb starts with
Partial Public Class _Default
If I delete the Inherits="CheckLog2._Default" part from the published Default.aspx page then the page works fine. If I delete it from the source file then it removes the Namespace declaration and the class name from the .designer.vb file
and if I try to add that back to the .designer.vb file it automaticall takes it right back out.
Nov 07, 2013 03:25 AM|Starain chen - MSFT|LINK
Thanks for your post!
For this issue, I suggest that:
1. Create a new project in VWD2008, then upgraded the project to 2010 and check the result.
2. For the upgraded project, you could copy the code from Default.aspx and Default.aspx.cs, then delete it and create a new page, then parse the code in it and check the result.