473,434 Members | 1,462 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,434 software developers and data experts.

IIS forcing app to use .Net 2.0 when 1.1 is specified

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 app, however, I get the exception below. As you can
see, it is using the 2.0 framework, which makes the exception an
expected one given the changes to System.Configuration in 2.0.

The IIS Manager GUI lets me switch between 1.1 and 2.0 frameworks for
this application all day long, but the settings are not truly applied;
no matter what's specified, IIS always uses 2.0. I've tried various
IIS restart permutations with no success.

I've even gone into the application configuration settings to specify a
specific 1.1 AppPool, but this too had no effect.

I'd appreciate any insight into this.

----------------------
Configuration Error
----------------------
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: 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.

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42

Oct 9 '06 #1
2 1423
App Pool for 1.1? Chck
Put the site in the App pool for 1.1? ??????
Run aspnet_regiss /s on the directory in question? ??????

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
<km******@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
>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 app, however, I get the exception below. As you can
see, it is using the 2.0 framework, which makes the exception an
expected one given the changes to System.Configuration in 2.0.

The IIS Manager GUI lets me switch between 1.1 and 2.0 frameworks for
this application all day long, but the settings are not truly applied;
no matter what's specified, IIS always uses 2.0. I've tried various
IIS restart permutations with no success.

I've even gone into the application configuration settings to specify a
specific 1.1 AppPool, but this too had no effect.

I'd appreciate any insight into this.

----------------------
Configuration Error
----------------------
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: 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.

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42

Oct 9 '06 #2
Ken
Running aspnet_regiis /s (the 1.1 version) on the specific application
worked, and now that application runs under 1.1.

It did have some side effects: All of the 2.0 applications on that
server broke, even those that lived in different websites. The error
that I got was:

"It is not possible to run two different versions of ASP.NET in the
same IIS process. Please use the IIS Administration Tool to reconfigure
your server to run the application in a separate process."

When I checked the the ASP.NET tab on my 2.0 apps, they all still
reported that they were configured to use .Net 2.0 in the default app
pool. I modified these apps to explicitly use the 2.0 app pool, and
they came back online. So at this point, all of my 1.1 and 2.0 apps
appear to be co-existing peacefully.

Thanks.

Cowboy (Gregory A. Beamer) wrote:
App Pool for 1.1? Chck
Put the site in the App pool for 1.1? ??????
Run aspnet_regiss /s on the directory in question? ??????

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
<km******@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
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 app, however, I get the exception below. As you can
see, it is using the 2.0 framework, which makes the exception an
expected one given the changes to System.Configuration in 2.0.

The IIS Manager GUI lets me switch between 1.1 and 2.0 frameworks for
this application all day long, but the settings are not truly applied;
no matter what's specified, IIS always uses 2.0. I've tried various
IIS restart permutations with no success.

I've even gone into the application configuration settings to specify a
specific 1.1 AppPool, but this too had no effect.

I'd appreciate any insight into this.

----------------------
Configuration Error
----------------------
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: 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.

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42
Oct 11 '06 #3

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

Similar topics

12
by: Ritz, Bruno | last post by:
hi in java i found that when a method has a throws clause in the definition, callers must either handle the exceptions thrown by the method they are calling or "forward" the exception to the...
1
by: Harshal | last post by:
Hello, I have a html page with 3 frames. If i specify the source for any of frames as http://www.gmail.com or http://www.hotmail.com, all frames go away and the site utilizes the full window. I...
1
by: Les Juby | last post by:
Hi A clint has insisted we load a babbling brook sound clip to his home page but it needs to load last to avoid delays in loading images and other elements. Simply declaring it at page bottom...
2
by: Tabrez | last post by:
Hi, I'm doing an online examination page. After the alloted time of the exam the page should be posted back. I've used System.Timers namespace for timekeeping. Please help me post back the form in...
4
by: SheldonMopes | last post by:
Is there a way to force Access to pause execution for a specified period of time ? I would like a command button on a form to run it's code when clicked and then pause for 2 seconds before allowing...
5
by: Nikola Skoric | last post by:
Is there a way to tell the interpreter to display exceptions, even those which were captured with except? -- "Now the storm has passed over me I'm left to drift on a dead calm sea And watch...
7
by: dupuis.michael | last post by:
I'm taking over a large database that has multiple versions of the front end on the end users machines. What I'd like to do is be able to run code from the back end when they log in that forces...
14
by: Irfan12 | last post by:
i dont know php & i want a script that when a user click on a mp3 hyperlink, the mp3 file start downloading instead of start playing in media player. i got a sxript from internet search. i am using...
3
by: evenlater | last post by:
I have an Access application on a terminal server. Sometimes my users need to export reports to pdf, rtf or xls files and save them to their own client device hard drives. They can do that right...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
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,...
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
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...
0
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
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
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...

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.