473,480 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Framework Version Question

Apollogies if this is in the wrong group

I am looking for a way to compile an assembly in VS2005 under framework 2
and then force it to run under framework 1.1 - is this possible?

I have created a simple console application which returns me the framework
version using the following code
Console.WriteLine("Framework Version: " & Environment.Version.ToString)

when i run this normally i get 2.0.502727 which is all cool and dandy, now
if i edit the config file for this exe and add the following lines

<startup>
<supportedRuntime version="v1.1.4322"/>
</startup>
and run the app, i was hoping it would run under this version, but i get a
system.BadImageFormatException: the format of the file ... is invalid

Thanks for any help you can give me

Murray


Jul 18 '06 #1
2 1619
AFAIK not supported (if I remember the reason I saw is that it would be
almost useless as it's likely a "real" 2.0 application would use anyway 2.0
specific features).

Found http://msdn2.microsoft.com/en-us/library/47a587hk.aspx :
"Applications created with version 2.0 will not run on earlier versions of
the .NET Framework."
--
Patrice

"Murray jack" <mu********@performa.co.uka écrit dans le message de news:
%2****************@TK2MSFTNGP04.phx.gbl...
Apollogies if this is in the wrong group

I am looking for a way to compile an assembly in VS2005 under framework 2
and then force it to run under framework 1.1 - is this possible?

I have created a simple console application which returns me the framework
version using the following code
Console.WriteLine("Framework Version: " & Environment.Version.ToString)

when i run this normally i get 2.0.502727 which is all cool and dandy, now
if i edit the config file for this exe and add the following lines

<startup>
<supportedRuntime version="v1.1.4322"/>
</startup>
and run the app, i was hoping it would run under this version, but i get a
system.BadImageFormatException: the format of the file ... is invalid

Thanks for any help you can give me

Murray


Jul 18 '06 #2
Thanks


"Patrice" <sc****@chez.comwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
AFAIK not supported (if I remember the reason I saw is that it would be
almost useless as it's likely a "real" 2.0 application would use anyway
2.0 specific features).

Found http://msdn2.microsoft.com/en-us/library/47a587hk.aspx :
"Applications created with version 2.0 will not run on earlier versions of
the .NET Framework."
--
Patrice

"Murray jack" <mu********@performa.co.uka écrit dans le message de news:
%2****************@TK2MSFTNGP04.phx.gbl...
>Apollogies if this is in the wrong group

I am looking for a way to compile an assembly in VS2005 under framework 2
and then force it to run under framework 1.1 - is this possible?

I have created a simple console application which returns me the
framework version using the following code
Console.WriteLine("Framework Version: " & Environment.Version.ToString)

when i run this normally i get 2.0.502727 which is all cool and dandy,
now if i edit the config file for this exe and add the following lines

<startup>
<supportedRuntime version="v1.1.4322"/>
</startup>
and run the app, i was hoping it would run under this version, but i get
a system.BadImageFormatException: the format of the file ... is invalid

Thanks for any help you can give me

Murray



Jul 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
7050
by: fripper | last post by:
I have installed Visual Studio .Net 2003 on top of an earlier version. Now, when I open a new project I get a message that says Visual Studio .NET has detected that the web server is running...
0
2133
by: Faisal | last post by:
I have a question regarding the "PublicKeyToken" attribute of the "<section>" tag in the web.config file. Pretty much most references have this value set to "b77a5c561934e089"; the same value as in...
3
3843
by: CS Kirk | last post by:
I am new to Visual C#. My question relates to installation and what version of .NET Framework C# is seeing. I installed Visual C# while I had .NET Framework v1.03. Later, using Windows Update in...
3
1249
by: david.kao | last post by:
Hi all: I installed DotNet Framework beta 2.0. My web service program stop working in debug mode under VS 2003. I took all steps that Microsoft help page suggest, and none of them are working...
2
1636
by: Reggie | last post by:
Hi and TIA! Little confused. I'm running WXP Pro (SP2). If I look at Control Panel/Admin Tools it shows the following: Microsoft .NET Framework 1.1 Configuration Microsoft .NET Framework 1.1...
23
1890
by: Nak | last post by:
Hi there, Has anyone any ideas if the next Framework will be an update to version 1.1 or another completely new install so that people have 3 Frameworks on their system? And can VS.NET 2003 be...
5
1233
by: Steve Sprague | last post by:
I have a .Net Framework question. I have installed VB.NET version 1.0.3705 I tried to install a small tutorial utillity. It told me I first needed to upgrade my Framework Version. So I went to...
5
2343
by: bmckenna | last post by:
Hi there, I recently built a relatively simple application in VB.net using VS Studio 2008(the front end is attached to an Access database). Everything seems to run smoothly on my machine and on...
8
1891
by: Blasting Cap | last post by:
I'm using VS 2005, and have a dll in some code (system.core.dll) that was included in something someone sent me to run on my system. I have production on a server using Framework 2.0 that I want...
0
6904
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6732
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4768
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4472
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2990
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1294
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
174
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.