Could not load type 'Assembly.Global'. Error

Last post 04-14-2009 4:48 AM by Thomas Sun – MSFT. 2 replies.

Sort Posts:

  • Could not load type 'Assembly.Global'. Error

    04-09-2009, 2:45 PM
    • Member
      6 point Member
    • tgopi99
    • Member since 09-28-2007, 12:14 AM
    • Posts 82

    Hi,

        I am trying to bring up the existing project by copying the code from one server to another server. While doing so, after i copied all the files and added all references and made all the changes in the web.config file, my project compiled with zero errors, but when i run the project i am getting the following error.

    "Could not load type 'pbm.Global'." and here PBM is my assembly.

    I have a code behind for global.asax as global.asax.vb. i don't understand the reason why it is throwing this error even after i compiled the project.

    Quick response is appreciated.

    Thanks

    GP

  • Re: Could not load type 'Assembly.Global'. Error

    04-09-2009, 5:18 PM
    • Contributor
      2,808 point Contributor
    • jeroenm
    • Member since 03-20-2007, 9:57 PM
    • Netherlands
    • Posts 500

    Hello GP,

    My first guess is authorisation. Have you compared the authorisation settings of the website on both servers.

    --------------------------------
    Jeroen Molenaar.
  • Re: Could not load type 'Assembly.Global'. Error

    04-14-2009, 4:48 AM
    Answer

    Hi,

    What type is your ASP.NET project, ASP.NET website or ASP.NET web application? If it is ASP.NET web application, please make sure the web application dll is in the Bin folder.

    If ASP.NET cannot load its dll, the error will be thrown.

    Please check the Output path is in application root Bin folder (Right click project name from Solution window, and enter its Properties Page and set its Output path in Build tab).

     

    I look forward to receiving your test results.

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
Page 1 of 1 (3 items)