Windows XP SP1: .NET Framework Initialization Error

  • Thread starter Thread starter Jean Stax
  • Start date Start date
J

Jean Stax

Hi !

I try to make pretty straight forward operation, but it fails...
I have .NET Framework 1.1 Configuration (version 1.1.4322.573)
with VS 2003, where I developed a sample application. Now I coppied it
to Windows XP SP1 machine . After launching my application I am
getting annoying :
..NET Framework Initialization Error - failed to load mscorwks.dll
couldn't be loaded.

Does the deployemnet .NET applications is not trasperant for different
..NET Framework vesrions ?

Thanks for your help.

Jean
 
The runtime isn't 'forward compatible'... meaning you can't write an app
using v1.1 and then have it run on v1.0 (though the reverse is true).

Tim


--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.


--------------------
 
Tim,
Yes you can! You can go either direction!

Within VS.NET 2003 (.NET 1.1) open the Project Property Pages, select
'Common Properties - Build', under Supported Runtimes, click the Change
button. Select 'Microsoft >NET Framework v1.0 (advanced)'.

Be certain to read the warning. The executable is still compiled for 1.1,
however it will execute under 1.0. Just remember that 1.1 has features that
are not available in 1.0, for example the
System.Windows.Forms.Application.EnableVisualStyles method.

Changing the above option adds configuration/startup/supportedRuntime
settings to you added your app.config file, enabling the use of the 1.0
runtime. It also adds configuration/runtime/assemblyBinding to cause the 1.0
runtime assemblies to be used.

Hope this helps
Jay
 
Jean,
Do you have either .NET Framework loaded on the Windows XP machine?

Within VS.NET 2003 (.NET 1.1) open the Project Property Pages, select
'Common Properties - Build', under Supported Runtimes, click the Change
button. Select 'Microsoft >NET Framework v1.0 (advanced)'.

Be certain to read the warning. The executable is still compiled for 1.1,
however it will execute under 1.0. Just remember that 1.1 has features that
are not available in 1.0, for example the
System.Windows.Forms.Application.EnableVisualStyles method.

The above settings changes your app.config, remember to include the new
app.config (as myproject.exe.config) when you copy the executable to the
Windows XP machine.

Hope this helps
Jay
 
Back
Top