After register new assembly in GAC, Visual Studio doesn't find any dll

2k Views Asked by At

I've registered some assemblies to Global Assembly Cache executing the following the command at Visual Studion Command Prompt.

gacutil /il MyAssemblyList.txt

After that, I can't compile anything in Visual Studio, because It can't find any DLL. When I try to compile a Silverlight project it gives me this kind of error message: "Error 4 Could not load file or assembly 'System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. "

I have updated all the references and the text editor show no errors.

Can someone help?

Update: I repaired .NET Framework installation and the problem still occurs

1

There are 1 best solutions below

1
On

When .NET tries to load an assembly its details can be viewed in an application called 'fuslogvw' - just run the VS Command Prompt and type

fuslogvw

After that, run your program til right after the assemblies are trying to be loaded.

Press 'Refresh' in the fuslogvw GUI and you should see one or more entries related to the culprit assemblies. Double click to see where .NET tried to load the assembly.

You may have to check 'settings' before and run it with Administrator privileges.

If you need further assistance paste the content of the details for us to give it a look