Specifying host CLR version using app.config

U

Udi

Hi,
I have a hosting application compiled to 2.0 that loads assemblies
dynamically.
Now, we're trying to upgrade the loaded assemblies and target them
to .NET 3.5.
I can't change the hosting application, so i've specified in its
app.config the following:

<?xml version ="1.0"?>
<configuration>
<startup>
<requiredRuntime version="v3.5"/>
<supportedRuntime version="v3.5"/>
</startup>
</configuration>

The problem is that although i can execute other (different)
applications that are targetted to 3.5 on the same machine, when
trying to execute the hosting application using the above
configuration it fails to launch saying v3.5 is not installed:

".Net Framework initialization error
To run this application you first must install one of the following
versions of the .NET framework:
v3.5
....
"

Do you know what might be the problem?
Thanks,
Udi
 
A

Arne Vajhøj

I have a hosting application compiled to 2.0 that loads assemblies
dynamically.
Now, we're trying to upgrade the loaded assemblies and target them
to .NET 3.5.
I can't change the hosting application, so i've specified in its
app.config the following:

<?xml version ="1.0"?>
<configuration>
<startup>
<requiredRuntime version="v3.5"/>
<supportedRuntime version="v3.5"/>
</startup>
</configuration>

The problem is that although i can execute other (different)
applications that are targetted to 3.5 on the same machine, when
trying to execute the hosting application using the above
configuration it fails to launch saying v3.5 is not installed:

".Net Framework initialization error
To run this application you first must install one of the following
versions of the .NET framework:
v3.5
...
"

Do you know what might be the problem?

http://msdn.microsoft.com/en-us/library/w4atty68.aspx

state:

<quote>
Note

The .NET Framework version 3.0 and 3.5 use version 2.0.50727 of the CLR.
</quote>

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top