Tuesday, April 6, 2010

C# ASP.NET:
"The assembly with display name 'VJSharpCodeProvider' failed to load"

Problem
You are using C# yet you receive an error message regarding Visual J#:

The assembly with display name 'VJSharpCodeProvider' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 2. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'


Solution
I searched high and low to find where VJSharpCodeProvider was being referenced but to no avail. I deduced that AJAX Toolkit wanted J# so in the end I solved the problem by installing the Visual J# Version 2.0 runtime available here.


Did I solve your problem? Buy me a virtual beer by clicking one Google advert. Thanks!
.

1 comments:

  1. I found that having "Managed Debugging Assistants" checked under the "Thrown" column in Debug->Exceptions caused this message to display. I unchecked this type of exception from being displayed and the app runs just fine. So essentially I said, "I don;t want to see this exception type anymore". Probably some 3rd party component using old J# or something.

    ReplyDelete