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.
<configuratio n>
<startup>
<supportedRunti me version="v1.1.4 322"/>
</startup>
</configuration>
But I noticed that if the application directory is1.0 and check the version
of a web page using Environment.Ver sion.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 3514
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********@onl ine.nospam> wrote in message
news:A1******** *************** ***********@mic rosoft.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. <configuratio n> <startup> <supportedRunti me version="v1.1.4 322"/> </startup> </configuration>
But I noticed that if the application directory is1.0 and check the
version of a web page using Environment.Ver sion.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.ne t> wrote in message
news:%2******** ********@TK2MSF TNGP10.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********@onl ine.nospam> wrote in message news:A1******** *************** ***********@mic rosoft.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. <configuratio n> <startup> <supportedRunti me version="v1.1.4 322"/> </startup> </configuration>
But I noticed that if the application directory is1.0 and check the version of a web page using Environment.Ver sion.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********@onl ine.nospam> wrote in message
news:A1******** *************** ***********@mic rosoft.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.
| <configuratio n>
| <startup>
| <supportedRunti me version="v1.1.4 322"/>
| </startup>
| </configuration>
|
| But I noticed that if the application directory is1.0 and check the
version
| of a web page using Environment.Ver sion.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.e xe -s W3SVC/1/ROOT/SampleApp1
SampleApp1 ==> Your virtual directory
"appdevtech " <ap********@onl ine.nospam> wrote in message
news:A1******** *************** ***********@mic rosoft.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. <configuratio n> <startup> <supportedRunti me version="v1.1.4 322"/> </startup> </configuration>
But I noticed that if the application directory is1.0 and check the version of a web page using Environment.Ver sion.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.e xe can be found in all of the framework folders. E.g
C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322 OR,
C:\WINDOWS\Micr osoft.NET\Frame work\v1.0.3705 OR,
C:\WINDOWS\Micr osoft.NET\Frame work\v<2.0 verision number>
**
"appdevtech " <ap********@onl ine.nospam> wrote in message
news:A1******** *************** ***********@mic rosoft.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. <configuratio n> <startup> <supportedRunti me version="v1.1.4 322"/> </startup> </configuration>
But I noticed that if the application directory is1.0 and check the version of a web page using Environment.Ver sion.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 <supportedRunti me version="v1.1.4 322"/> 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********@onl ine.nospam> wrote in message news:A1******** *************** ***********@mic rosoft.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. | <configuratio n> | <startup> | <supportedRunti me version="v1.1.4 322"/> | </startup> | </configuration> | | But I noticed that if the application directory is1.0 and check the version | of a web page using Environment.Ver sion.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 <supportedRunti me version=...>
<configuratio n>
<startup>
<supportedRunti me version="v1.1.4 322"/>
<supportedRunti me version="v1.0.3 705"/>
</startup>
</configuration>
I think you're referring to :
<requiredRuntim e version="v1.1.4 322"/>
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********@onl ine.nospam> wrote in message
news:02******** *************** ***********@mic rosoft.com... So what is the <supportedRunti me version="v1.1.4 322"/> 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********@onl ine.nospam> wrote in message news:A1******** *************** ***********@mic rosoft.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. | <configuratio n> | <startup> | <supportedRunti me version="v1.1.4 322"/> | </startup> | </configuration> | | But I noticed that if the application directory is1.0 and check the version | of a web page using Environment.Ver sion.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 <requiredRuntim e version="v1.0.3 705"/> 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 <supportedRunti me version=...>
<configuratio n> <startup> <supportedRunti me version="v1.1.4 322"/> <supportedRunti me version="v1.0.3 705"/> </startup> </configuration> I think you're referring to : <requiredRuntim e version="v1.1.4 322"/>
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********@onl ine.nospam> wrote in message news:02******** *************** ***********@mic rosoft.com... So what is the <supportedRunti me version="v1.1.4 322"/> 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********@onl ine.nospam> wrote in message news:A1******** *************** ***********@mic rosoft.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. | <configuratio n> | <startup> | <supportedRunti me version="v1.1.4 322"/> | </startup> | </configuration> | | But I noticed that if the application directory is1.0 and check the version | of a web page using Environment.Ver sion.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 : <requiredRuntim e version="v1.0.3 705"/>
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********@onl ine.nospam> wrote in message
news:3E******** *************** ***********@mic rosoft.com... Doesn't <requiredRuntim e version="v1.0.3 705"/> 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 <supportedRunti me version=...>
<configuratio n> <startup> <supportedRunti me version="v1.1.4 322"/> <supportedRunti me version="v1.0.3 705"/> </startup> </configuration> I think you're referring to : <requiredRuntim e version="v1.1.4 322"/>
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********@onl ine.nospam> wrote in message news:02******** *************** ***********@mic rosoft.com... > So what is the <supportedRunti me version="v1.1.4 322"/> 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********@onl ine.nospam> wrote in message >> news:A1******** *************** ***********@mic rosoft.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. >> | <configuratio n> >> | <startup> >> | <supportedRunti me version="v1.1.4 322"/> >> | </startup> >> | </configuration> >> | >> | But I noticed that if the application directory is1.0 and check the >> version >> | of a web page using Environment.Ver sion.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 >> | >> >> >> 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 I mean, please look at this feedback my me:
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=3074c204-04e4-4383-9dd2-d266472a84ac
If you think I am right, please vote for this feedback.
|
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 application is
"sleeping", and it is not loaded in the memory. Then, after very first
request to the app, it is compiled (aspx files), loaded into memory, and
executed. Then, a separate thread is issued to serve my page request, and it
takes care for me...
|
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
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS."
I've been told by the previous developer that the website needs to be set as
a "application". I...
|
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 the 2.0 framework even if it's
being called by a program running under the 1.1 framework. How can I force
the DLL to use the 2.0 Framework.
Thanks,
Mark Zeiger
|
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 application
should use.
I created a .Net 1.1 VB.NET web service in Visual Studio.NET 2003. I
built it and then copied it to the web server described above,
specifying in IIS Manager that it should use the 1.1. framework. When
I try to run the...
| |
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 formatted.
I'm trying to invoke the use of a class, to force its static c'tor to
run, which will run its unit test. Is there a good way to force all
class's static c'tors to be run on startup?
|
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 of Xenocode (~$1,500 plus ~ $12 per copy of your exe). But, I'd like
something that is actually affordable for a hobbyist programmer.
This capability (Thinstall's being able to wrap a .Net app and ship it as a
single exe) would be a FANTASTIC...
|
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. I'm wanting
to know if I can force it to happen immediately (when the object goes
out of scope) without going back and adding all of the required
Dispose() calls..
public Method()
{
CustomClass o = new CustomClass(..);
|
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 error has occurred.
Event time: 6/23/2008 9:07:24 AM
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |