VS2003 to VS2005 Could not load file or assembly

Posted on 2007-08-08
Last Modified: 2013-11-05
I converted a web site from 1.1 VS2003 to 2.0 VS2005 and getting an error now.

Configuration Error
Could not load file or assembly 'MySite' or one of its dependencies. The system cannot find the file specified.

                  <add name="HeaderFooterImplementation" type="MyClass.HeaderFooterImplementation"/>

The code was moved over to the bin directory.  Any suggestions?
Question by:JRockFL
    LVL 14

    Expert Comment

    do you have SP1 installed?
    if so, and the code is included in the project, you may have to convert the project to a web application, or put the code in the App_Code directory, I'm not real sure about code in the app_code directory, I've only converted projects from 2003 to 2005 as web applications, not as regular 2005 web projects, usually converting a 2003 app, to a 2005 app, is much smoother if converted to a ASP.NET Web Application type of project, which was added to VS2005 as a special patch, and then as part of SP1 after it (VS2005) was released. for express reason of it being so painful to migrate 2003 apps to 2005 using the new web site project model.
    LVL 27

    Expert Comment

    try using this format for the httpModules section
                      <add name="Implementation" type="Namespace.ClassName,Assembly Name"/>

    LVL 8

    Author Comment

    SP1 for which application? VS? If so. I don't think it is installed.
    I'm not sure what you mean by the way you converted the apps.
    I think I just doubled clicked 7.1 project file in VS2005 and it took me through the conversion wizard.
    Should I be trying something else?

    Typo in my previous post, it follows this pattern in the web.config
    How would locate the Assembly Name?
    <add name="HeaderFooterImplementation" type="Namespace.ClassName"/>

    In the previous version, everything was in the DLL now there is no DLL but an APP_CODE folder with all of the classes.
    LVL 14

    Accepted Solution

    Yes, SP1 for Visual Studio 2005, install it, and then retry the conversion, and then convert to Web Application if necessary, not sure if this must be done as an additional step or not, so if any issues something to try.

    should be in the context menu for the project (right click menu) after SP1 is installed.

    more info:


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now