Failed to load file or assembly "Antlr3.Runtime"

Could not load file or assembly 'Antlr3.Runtime' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

I get this error only in IIS.

After installing the 4.5 VS 2012 express framework, I got an exception using MachineKeyCryptography. therefore, I removed 4.5 framework and VS 2012, due to which this mess occurs.

Any help to solve this problem and work with my application is appreciated. Thanks

+3
source share
6 answers

I had the same problem with a web form application on the .NET Framework 3.5. When deleting the bin and obj directories , errors were fixed.

+1
source

, mvc4 mvc5. , .

0

- , web.config, .

<dependentAssembly>
        <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
      </dependentAssembly>
0

, %TEMP% , .

0

I am on VS 2015 and am using the MVC project. I use impersonation for testing and impersonate a test user created in my AD company. After trying many different solutions to this problem, I made the test user an administrator in my local field, and the problem disappeared. Not a perfect solution, but I can check.

0
source

For me, the solution was to start Visual Studio as an administrator. Apparently, the problem was resolved when starting debugging from Visual Studio.

0
source

All Articles