Run exe under Framework 1.1

  • Thread starter Thread starter johan
  • Start date Start date
J

johan

I have just installed version 1.1 of the framework. I
wrote a simple exe that displays the framework version
using System.Environment.Version.ToString. It returned
1.0.3705.288, which is version 1.0. I then created a
config file for it with the following, trying
requiredRuntime and supportedRuntime:

<configuration>
<startup>
<requiredRuntime version="v1.1.4322" />
</startup>
</configuration>

When I run this it is still showing that it's using
version 1.0. What can I do to get the exe to recognize
version 1.1?
 
Hi Johan

Rebuild it in VS.NET V2003.

V2002 only recognises framework V1.0
V2003 is designed to use framework V1.1

That's the way it is.

HTH

Charles
 
Try this, which works for me on an app built with the 1.0 framework:

<?xml version ="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v1.1.4322" />
<supportedRuntime version="v1.0.3705" />
</startup>
</configuration>
 
Make sure you have

<?xml version ="1.0"?>

as the first line in your config file. Otherwise, this *should* work. Try
giving your config file a ".xml" extension and see if IE can display it.
It's easy to have some syntax errors in your XML and IE is a great way to
find them.

Tim


--------------------
| Content-Class: urn:content-classes:message
| From: "johan" <[email protected]>
| Sender: "johan" <[email protected]>
| Subject: Run exe under Framework 1.1
| Date: Fri, 5 Sep 2003 08:04:29 -0700
| Lines: 16
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNzvwF8sJ8zCI9UQnKeiicizNaAGQ==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:107430
| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| I have just installed version 1.1 of the framework. I
| wrote a simple exe that displays the framework version
| using System.Environment.Version.ToString. It returned
| 1.0.3705.288, which is version 1.0. I then created a
| config file for it with the following, trying
| requiredRuntime and supportedRuntime:
|
| <configuration>
| <startup>
| <requiredRuntime version="v1.1.4322" />
| </startup>
| </configuration>
|
| When I run this it is still showing that it's using
| version 1.0. What can I do to get the exe to recognize
| version 1.1?
|
 
Back
Top