473,396 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Forcing a .net 1.1 web application to always use the 1.1 framework

A little background…
We have multiple web servers in a farm and are starting to upgrade some
applications to 1.1 by re-compiling in VS2003.
One of the things out of our direct control is the framework version on the
application directory. I'm worried that in the future some directories could
be reverted back to 1.0 on all or some of the servers.

I was hoping I could force the applications I choice to always use 1.1 by
putting this in the web.config, hence overriding what the virtual/application
is configured to use.
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
</startup>
</configuration>

But I noticed that if the application directory is1.0 and check the version
of a web page using Environment.Version.ToString(), it still says the
application is running 1.0 even though I specified v1.1.4322 in the
web.config.

So besides changing the application directory are there any other ways to
verify/force the applications to use the 1.1 framework?

Thanks

Nov 19 '05 #1
10 3483
Hi,
I know you can configure per web site / virtual directory a specific version
of the .NET framework.

IIS -> Properties of a Web site.

Go in ASP.NET tab. There is a drop down list with all installed version of
the .NET framework on your server.

Hope that help.

--------------------------
Jean-Claude Morin, MCP
Software Developer
2k1Soft/kCentric, Canada
"appdevtech" <ap********@online.nospam> wrote in message
news:A1**********************************@microsof t.com...
A little background.
We have multiple web servers in a farm and are starting to upgrade some
applications to 1.1 by re-compiling in VS2003.
One of the things out of our direct control is the framework version on the application directory. I'm worried that in the future some directories could be reverted back to 1.0 on all or some of the servers.

I was hoping I could force the applications I choice to always use 1.1 by
putting this in the web.config, hence overriding what the virtual/application is configured to use.
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
</startup>
</configuration>

But I noticed that if the application directory is1.0 and check the version of a web page using Environment.Version.ToString(), it still says the
application is running 1.0 even though I specified v1.1.4322 in the
web.config.

So besides changing the application directory are there any other ways to
verify/force the applications to use the 1.1 framework?

Thanks

Nov 19 '05 #2
re:
Go in ASP.NET tab.
That hasn't been functional since .NET 2.0 Beta 1.
For .NET 1.1, it's OK, though.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Jc Morin" <mi****************@jcmorin.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... Hi,
I know you can configure per web site / virtual directory a specific
version
of the .NET framework.

IIS -> Properties of a Web site.

Go in ASP.NET tab. There is a drop down list with all installed version of
the .NET framework on your server.

Hope that help.
Jean-Claude Morin, MCP "appdevtech" <ap********@online.nospam> wrote in message
news:A1**********************************@microsof t.com...
A little background.
We have multiple web servers in a farm and are starting to upgrade some
applications to 1.1 by re-compiling in VS2003.
One of the things out of our direct control is the framework version on

the
application directory. I'm worried that in the future some directories

could
be reverted back to 1.0 on all or some of the servers.

I was hoping I could force the applications I choice to always use 1.1 by
putting this in the web.config, hence overriding what the

virtual/application
is configured to use.
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
</startup>
</configuration>

But I noticed that if the application directory is1.0 and check the

version
of a web page using Environment.Version.ToString(), it still says the
application is running 1.0 even though I specified v1.1.4322 in the
web.config.

So besides changing the application directory are there any other ways to
verify/force the applications to use the 1.1 framework?

Thanks

Nov 19 '05 #3
no. the version of asp.net is controlled by the IIS mappings.

-- bruce (sqlwork.com)

"appdevtech" <ap********@online.nospam> wrote in message
news:A1**********************************@microsof t.com...
| A little background.
| We have multiple web servers in a farm and are starting to upgrade some
| applications to 1.1 by re-compiling in VS2003.
| One of the things out of our direct control is the framework version on
the
| application directory. I'm worried that in the future some directories
could
| be reverted back to 1.0 on all or some of the servers.
|
| I was hoping I could force the applications I choice to always use 1.1 by
| putting this in the web.config, hence overriding what the
virtual/application
| is configured to use.
| <configuration>
| <startup>
| <supportedRuntime version="v1.1.4322"/>
| </startup>
| </configuration>
|
| But I noticed that if the application directory is1.0 and check the
version
| of a web page using Environment.Version.ToString(), it still says the
| application is running 1.0 even though I specified v1.1.4322 in the
| web.config.
|
| So besides changing the application directory are there any other ways to
| verify/force the applications to use the 1.1 framework?
|
| Thanks
|
Nov 19 '05 #4
You can do this on the command line:

aspnet_regiis.exe -s W3SVC/1/ROOT/SampleApp1

SampleApp1 ==> Your virtual directory


"appdevtech" <ap********@online.nospam> wrote in message
news:A1**********************************@microsof t.com...
A little background.
We have multiple web servers in a farm and are starting to upgrade some
applications to 1.1 by re-compiling in VS2003.
One of the things out of our direct control is the framework version on
the
application directory. I'm worried that in the future some directories
could
be reverted back to 1.0 on all or some of the servers.

I was hoping I could force the applications I choice to always use 1.1 by
putting this in the web.config, hence overriding what the
virtual/application
is configured to use.
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
</startup>
</configuration>

But I noticed that if the application directory is1.0 and check the
version
of a web page using Environment.Version.ToString(), it still says the
application is running 1.0 even though I specified v1.1.4322 in the
web.config.

So besides changing the application directory are there any other ways to
verify/force the applications to use the 1.1 framework?

Thanks

Nov 19 '05 #5
** NOTE:

You must be inside the .NET framework version folder that you want to
configure this site for unless it will default to the most recent installed
version. aspnet_regiis.exe can be found in all of the framework folders. E.g
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 OR,
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705 OR,
C:\WINDOWS\Microsoft.NET\Framework\v<2.0 verision number>
**
"appdevtech" <ap********@online.nospam> wrote in message
news:A1**********************************@microsof t.com...
A little background.
We have multiple web servers in a farm and are starting to upgrade some
applications to 1.1 by re-compiling in VS2003.
One of the things out of our direct control is the framework version on
the
application directory. I'm worried that in the future some directories
could
be reverted back to 1.0 on all or some of the servers.

I was hoping I could force the applications I choice to always use 1.1 by
putting this in the web.config, hence overriding what the
virtual/application
is configured to use.
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
</startup>
</configuration>

But I noticed that if the application directory is1.0 and check the
version
of a web page using Environment.Version.ToString(), it still says the
application is running 1.0 even though I specified v1.1.4322 in the
web.config.

So besides changing the application directory are there any other ways to
verify/force the applications to use the 1.1 framework?

Thanks

Nov 19 '05 #6
So what is the <supportedRuntime version="v1.1.4322"/> used for then, if I
can't use it to force an application to run 1.1?

"bruce barker" wrote:
no. the version of asp.net is controlled by the IIS mappings.

-- bruce (sqlwork.com)

"appdevtech" <ap********@online.nospam> wrote in message
news:A1**********************************@microsof t.com...
| A little background.
| We have multiple web servers in a farm and are starting to upgrade some
| applications to 1.1 by re-compiling in VS2003.
| One of the things out of our direct control is the framework version on
the
| application directory. I'm worried that in the future some directories
could
| be reverted back to 1.0 on all or some of the servers.
|
| I was hoping I could force the applications I choice to always use 1.1 by
| putting this in the web.config, hence overriding what the
virtual/application
| is configured to use.
| <configuration>
| <startup>
| <supportedRuntime version="v1.1.4322"/>
| </startup>
| </configuration>
|
| But I noticed that if the application directory is1.0 and check the
version
| of a web page using Environment.Version.ToString(), it still says the
| application is running 1.0 even though I specified v1.1.4322 in the
| web.config.
|
| So besides changing the application directory are there any other ways to
| verify/force the applications to use the 1.1 framework?
|
| Thanks
|

Nov 19 '05 #7
http://msdn.microsoft.com/library/de...imeElement.asp

It's not used to "force" an application
under a particular runtime.

It *does* indicate which versions
of the runtime are supported.

Targetting multiple versions of the runtime
is perfectly possible with <supportedRuntime version=...>
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v1.0.3705"/>
</startup>
</configuration>
I think you're referring to :
<requiredRuntime version="v1.1.4322"/>

That *requires* that the app run under 1.1.4322.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"appdevtech" <ap********@online.nospam> wrote in message
news:02**********************************@microsof t.com...
So what is the <supportedRuntime version="v1.1.4322"/> used for then, if I
can't use it to force an application to run 1.1?

"bruce barker" wrote:

no. the version of asp.net is controlled by the IIS mappings.

-- bruce (sqlwork.com)

"appdevtech" <ap********@online.nospam> wrote in message
news:A1**********************************@microsof t.com...
| A little background.
| We have multiple web servers in a farm and are starting to upgrade some
| applications to 1.1 by re-compiling in VS2003.
| One of the things out of our direct control is the framework version on
the
| application directory. I'm worried that in the future some directories
could
| be reverted back to 1.0 on all or some of the servers.
|
| I was hoping I could force the applications I choice to always use 1.1
by
| putting this in the web.config, hence overriding what the
virtual/application
| is configured to use.
| <configuration>
| <startup>
| <supportedRuntime version="v1.1.4322"/>
| </startup>
| </configuration>
|
| But I noticed that if the application directory is1.0 and check the
version
| of a web page using Environment.Version.ToString(), it still says the
| application is running 1.0 even though I specified v1.1.4322 in the
| web.config.
|
| So besides changing the application directory are there any other ways
to
| verify/force the applications to use the 1.1 framework?
|
| Thanks
|

Nov 19 '05 #8
Doesn't <requiredRuntime version="v1.0.3705"/> only work for 1.0?

http://msdn.microsoft.com/library/de...redRuntime.asp

"Juan T. Llibre" wrote:
http://msdn.microsoft.com/library/de...imeElement.asp

It's not used to "force" an application
under a particular runtime.

It *does* indicate which versions
of the runtime are supported.

Targetting multiple versions of the runtime
is perfectly possible with <supportedRuntime version=...>
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v1.0.3705"/>
</startup>
</configuration>
I think you're referring to :
<requiredRuntime version="v1.1.4322"/>

That *requires* that the app run under 1.1.4322.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"appdevtech" <ap********@online.nospam> wrote in message
news:02**********************************@microsof t.com...
So what is the <supportedRuntime version="v1.1.4322"/> used for then, if I
can't use it to force an application to run 1.1?

"bruce barker" wrote:

no. the version of asp.net is controlled by the IIS mappings.

-- bruce (sqlwork.com)

"appdevtech" <ap********@online.nospam> wrote in message
news:A1**********************************@microsof t.com...
| A little background.
| We have multiple web servers in a farm and are starting to upgrade some
| applications to 1.1 by re-compiling in VS2003.
| One of the things out of our direct control is the framework version on
the
| application directory. I'm worried that in the future some directories
could
| be reverted back to 1.0 on all or some of the servers.
|
| I was hoping I could force the applications I choice to always use 1.1
by
| putting this in the web.config, hence overriding what the
virtual/application
| is configured to use.
| <configuration>
| <startup>
| <supportedRuntime version="v1.1.4322"/>
| </startup>
| </configuration>
|
| But I noticed that if the application directory is1.0 and check the
version
| of a web page using Environment.Version.ToString(), it still says the
| application is running 1.0 even though I specified v1.1.4322 in the
| web.config.
|
| So besides changing the application directory are there any other ways
to
| verify/force the applications to use the 1.1 framework?
|
| Thanks
|


Nov 19 '05 #9
Yes.

That was a copy-and-mangled-paste typo.

That should have been:
I think you're referring to :
<requiredRuntime version="v1.0.3705"/>

That *requires* that the app run under 1.0.3705.
Thanks for noticing!


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"appdevtech" <ap********@online.nospam> wrote in message
news:3E**********************************@microsof t.com... Doesn't <requiredRuntime version="v1.0.3705"/> only work for 1.0?

http://msdn.microsoft.com/library/de...redRuntime.asp

"Juan T. Llibre" wrote:
http://msdn.microsoft.com/library/de...imeElement.asp

It's not used to "force" an application
under a particular runtime.

It *does* indicate which versions
of the runtime are supported.

Targetting multiple versions of the runtime
is perfectly possible with <supportedRuntime version=...>
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v1.0.3705"/>
</startup>
</configuration>
I think you're referring to :
<requiredRuntime version="v1.1.4322"/>

That *requires* that the app run under 1.1.4322.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"appdevtech" <ap********@online.nospam> wrote in message
news:02**********************************@microsof t.com...
> So what is the <supportedRuntime version="v1.1.4322"/> used for then,
> if I
> can't use it to force an application to run 1.1?
>
> "bruce barker" wrote:

>> no. the version of asp.net is controlled by the IIS mappings.
>>
>> -- bruce (sqlwork.com)
>>
>> "appdevtech" <ap********@online.nospam> wrote in message
>> news:A1**********************************@microsof t.com...
>> | A little background.
>> | We have multiple web servers in a farm and are starting to upgrade
>> some
>> | applications to 1.1 by re-compiling in VS2003.
>> | One of the things out of our direct control is the framework version
>> on
>> the
>> | application directory. I'm worried that in the future some
>> directories
>> could
>> | be reverted back to 1.0 on all or some of the servers.
>> |
>> | I was hoping I could force the applications I choice to always use
>> 1.1
>> by
>> | putting this in the web.config, hence overriding what the
>> virtual/application
>> | is configured to use.
>> | <configuration>
>> | <startup>
>> | <supportedRuntime version="v1.1.4322"/>
>> | </startup>
>> | </configuration>
>> |
>> | But I noticed that if the application directory is1.0 and check the
>> version
>> | of a web page using Environment.Version.ToString(), it still says
>> the
>> | application is running 1.0 even though I specified v1.1.4322 in the
>> | web.config.
>> |
>> | So besides changing the application directory are there any other
>> ways
>> to
>> | verify/force the applications to use the 1.1 framework?
>> |
>> | Thanks
>> |
>>
>>
>>


Nov 19 '05 #10
Hi Appdevtech,

Yes, for most desktop or console or Service application, the
<supporteRuntime> is ok to specify the .net runtime version to load.
However, the ASP.NET web application is abit different since it is hosted
in IIS server and the IIS use the aspnet_isapi.dll to communicate with
ASP.NET's managed process , so that dll controls which version of the
runtime to launch, we can switch it through aspnet_regiis.exe tool as some
other member have mentioned. Also, here is a good article discussing on
side-by-side execution in .net framework which has covered diferent kinds
of application's side-by-side execution behaviors:

#Side-by-Side Execution of the .NET Framework
http://msdn.microsoft.com/library/de...us/dnnetdep/ht
ml/sidexsidenet.asp

HTH. If you have any further questions, please feel free to post here.

Thanks & Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Nov 19 '05 #11

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

Similar topics

40
by: Neo The One | last post by:
I think C# is forcing us to write more code by enforcing a rule that can be summarized as 'A local variable must be assgined *explicitly* before reading its value.' If you are interested in what...
7
by: Pavils Jurjans | last post by:
Hello, I wanted to get some light in the subject. As I develop ASP.NET applications, it's necessary to understand how exactly the server- communication happens. It seems like initially...
21
by: Chris | last post by:
I'm trying to get an existing VS.NET project up on my Win2003 server and I get the following error (on the actual website page): "It is an error to use a section registered as...
2
by: mz | last post by:
I have .NET frameworks 1.1 and 2.0 on the same server. I am going to create a class which I will compile as a separate DLL to be used by a number of different applications. I want the DLL to use...
2
by: kmsuzuki | last post by:
I have a Windows Server 2003 + IIS6 with both .Net 1.1 and 2.0 installed. In the past, I've had no problems using the ASP.NET tab in the IIS Manager to specify which framework version a given...
18
by: Zytan | last post by:
I just got a TypeInitializationException exception. Why it is a common cause for this? The InnerException is System.FormatException, although I don't see anything requesting something to be...
60
by: jim | last post by:
I am looking for an application that will wrap my .Net application (and any needed .Net parts) into a single exe. I know of Thinstall ($4,000 for application and per copy fees for your exes) and...
11
by: Jon Mcleod | last post by:
I'm trying to wrap my ming around C#/CLR garbage collection. In an ASP.NET project, I'm having a problem because an object destructor is being called by another thread, long after my code is done....
5
by: David Thielen | last post by:
Hi; We keep having to restart IIS after ASP.NET kills it. Below is what we have in the event log. Any idea what the problem is? thanks - dave Event code: 3003 Event message: A validation...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.