ASPX..Renamed library..now error

One of my sites links to a library in my solution called "Foo" This project generates a file called "Foo.dll" and the classes in it are in a namespace called "MyCompany.Foo"

so far everything worked ... well, I immediately clicked on the project "Foo" and changed the filename it brought out to be "MyCompany.Foo" .... now the project creates the file "MyCompany.Foo.dll" " still compiles fine, but when I try to access my site it says it can't find the link or file "Foo"

Analyzer error

Description: An error occurred while parsing a resource required to service this request. Please check the following specific parsing error details and modify the source file accordingly.

Parser error message: Could not load file or assembly 'Foo' or one of its dependencies. The system cannot find the file specified.

0


a source to share


2 answers


I never thought it was my own stupidity.

In my web.config I had a link to Foo, which I needed to change to MyCompany.Foo



I did a global search for Foo.dll ... but in this case the assembly was referenced without the DLL at the end

+1


a source


There can be several things.

Open visual studio and solution file. Then type ctrl + f and search for Foo.dll in all solutions. Replace any occurrences of Foo.dll in MyCompany.Foo.dll

hope this helps.



edit: If you changed the namespaces in foo.dll from the foo namespace to the MyCompany.Foo namespace, you may need to make additional changes, but I think you won't need to.

Also, make sure the Copy Local property is set to True in your ASP.NET project in the referenced entry.

0


a source







All Articles