Installing .NET 2.0 eliminated the error.
Note: I did not try using the [4.0] parameter when instantiating the object since that would have meant generating a new exe for them.
--stein
From: | Stein Goering |
To: | Rick Strahl |
Installing .NET 2.0 eliminated the error.
Note: I did not try using the [4.0] parameter when instantiating the object since that would have meant generating a new exe for them.
--stein
If .NET 4.0 is installed and .NET 2.0 isn't you need to explicitly override the version number in a config file.
Create YourApp.exe.config in the same folder as the EXE and add:
<configuration><startup><supportedRuntimeversion="v4.0.30319"/><!-- supportedRuntime version="v2.0.50727"/ ---></startup><runtime><loadFromRemoteSources enabled="true"/></runtime></configuration>
This is an explicit override that forces .NET to load version 4.0 if no version is specified (wwSmtp doesn't specify a version).
This is a lame 'feature' in the .NET runtime loading mechanism - it defaults to .NET 2.0 if you don't specify a version. The runtime loader APIs changed with .NET 4.0 and the old APIs weren't updated, so they continue to default to .NET 2.0 unless an explicit override exists in the .config file.
I have never tested this, but that's how it's supposed to work. Let me know if this works.
+++ Rick ---
Unable to load wwDotNetBridge: Unable to load Clr Instance. Version %d.%d is not a compatible version
The reference to version %d.%d is literally what we get. They are running Server 2003, and a check shows it had only .NET 1.1 installed. So it seemed that all we'd need would be to upgrade .NET. But after installing .NET 4.0 we still get the same error.
What do we need to do to get this resolved?
--stein