JRockFL
asked on
VS2003 to VS2005 Could not load file or assembly
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.
<httpModules>
<add name="HeaderFooterImplemen tation" type="MyClass.HeaderFooter Implementa tion"/>
</httpModules>
The code was moved over to the bin directory. Any suggestions?
Configuration Error
Could not load file or assembly 'MySite' or one of its dependencies. The system cannot find the file specified.
<httpModules>
<add name="HeaderFooterImplemen
</httpModules>
The code was moved over to the bin directory. Any suggestions?
try using this format for the httpModules section
<httpModules>
<add name="Implementation" type="Namespace.ClassName, Assembly Name"/>
</httpModules>
<httpModules>
<add name="Implementation" type="Namespace.ClassName,
</httpModules>
ASKER
steveberzins,
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?
sammy1971
Typo in my previous post, it follows this pattern in the web.config
How would locate the Assembly Name?
<add name="HeaderFooterImplemen tation" 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.
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?
sammy1971
Typo in my previous post, it follows this pattern in the web.config
How would locate the Assembly Name?
<add name="HeaderFooterImplemen
In the previous version, everything was in the DLL now there is no DLL but an APP_CODE folder with all of the classes.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 asp.net 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.