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 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
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
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
|
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
** 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
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 | 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 |
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 |
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 >> | >> >> >>
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.) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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....
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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...
| |