Could not load type

Last post 07-16-2009 12:09 PM by jconley3. 3 replies.

Sort Posts:

  • Could not load type

    12-13-2004, 6:10 PM
    I'm getting the following error, after the migration.

    Parser Error Message: Could not load type 'medicalClinicDotNet.Global'.

    Source Error:


    Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="medicalClinicDotNet.Global" %>


  • Re: Could not load type

    02-28-2007, 6:09 AM
    • Member
      58 point Member
    • John_Idol
    • Member since 12-01-2006, 3:51 PM
    • Cork, Ireland
    • Posts 50

    I am getting exactly the same error after migration (WebApplication to WebSite) but with a user control.

    Any News?

    Cheers,

  • Re: Could not load type

    03-01-2007, 8:59 AM
    • Member
      58 point Member
    • John_Idol
    • Member since 12-01-2006, 3:51 PM
    • Cork, Ireland
    • Posts 50

    I got my error solved changig the attribute CodeBehind into CodeFile, but, thus I hope so, I don't know if it's your case.

    Cheers,

  • Re: Could not load type

    07-16-2009, 12:09 PM
    • Member
      2 point Member
    • jconley3
    • Member since 07-16-2009, 12:06 PM
    • Posts 1

     Another thing to try is to make sure your Copy Local for all custom DLLs in your web project are set to True. I had them set to false because i wanted the project to reference the DLLs from a network location, and things worked fine for a while, but mysteriously, i got the dreaded "Could not load type...' error for all user controls and web pages. When i flipped them back to True, the project could then load the UI types. So obviously there's some DLL reference mapping issue (whether intended or not, i don't know) in VS. I use VS 2008 SP1 with .Net 3.5.

Page 1 of 1 (4 items)