Reputation: 5930
I have been developing some new NServiceBus services, and everything works fine on my development machine (how many stories start that way?). When I zip up the binaries and move them so our server however, I can't install them. In fact, I can't run the host at all. Running the NServiceBus host with any argument (except /?
) results in the following output:
Unhandled Exception: System.TypeLoadException: Could not load type 'System.Runtime.ExceptionServices.ExceptionDispatchInfo' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at NServiceBus.Hosting.Windows.Program.Main(String[] args)
I can't find any information about what's really going on here. Any help shedding light on the subject would be much appreciated, since I've not found anyone on Google talking about this error already.
Upvotes: 0
Views: 145
Reputation: 5930
Uhh, so it turns out that Adam Fyles was pretty much correct, except that it was .NET 4.5 instead of 4.0.
I've not seen this happen before - but installing 4.5 fixed the issue. Thanks for your help.
Upvotes: 1