locked
Could not load type RRS feed

  • Question

  • User2094860517 posted

    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'.

    Source Error: 

    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 

    Namespace CheckLog2
    
        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.

    Tuesday, November 5, 2013 5:28 PM

Answers

  • User-1454326058 posted

    Hi Bollocks68,

    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.

    Thanks

    Best Regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 7, 2013 3:25 AM