1

I have a .NET application that currently builds and runs fine in a development environment but running the application on another machine is throwing this error.

The machine I am trying to run this on is running Windows Server 2012 which has .NET 4.5 baked into it. The error appears to be a .NET error however the GAC is showing the System Version 2.0.0.0 assembly installed. Also nothing is being written to Event Viewer on the application crash.

Any help or any idea of where to begin looking is appreciated.

Here is the error

Alex Meyer
  • 771
  • 1
  • 7
  • 17
  • 1
    Could you share the output of `gacutil -l | find "System, Version=2.0.0.0"` from the developer command prompt? Is it possible the PublicKeyToken is off? Otherwise, it sounds like you're missing some .NET 3.5 feature on the Windows 2012 server... – Dan Field Aug 26 '15 at 20:16
  • Dan is correct, installing .NET 3.5 fixed the issue. I must have some dependency that was referencing a 3.5 library. Thanks! – Alex Meyer Aug 26 '15 at 20:31

2 Answers2

1

Dan from above was correct, installing .NET 3.5 on the server fixed the error.

Alex Meyer
  • 771
  • 1
  • 7
  • 17
0

This link may possibly explain the error:

Make sure your .NET framework is patched.

It seems that the best explanation is that the server needs patched--but it could be the development machine as well.

Community
  • 1
  • 1
Russ
  • 4,091
  • 21
  • 32