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

Home Posts Topics Members FAQ

Framework versions and virtual directories

I have a problem with different .NET Framework versions in virtual
directories.

Virtual directory /folder_a, is configured as an application running
..NET Framework 2.0 and contains an ASP.NET 2.0 app.

Virtual directory /folder_a/folder_b, is configured as an application
running .NET Framework 1.1 and contains an ASP.NET 1.1 app.

When i run the webb applikation in /folder_a/folder_b, it tries to use
the web.config file in the parent folder /folder_a, running the ASP.NET
1.1 and causing this 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: Unrecognized attribute 'enableEventValidation'.

Source Error:
Line 193: -->
Line 194: <globalization requestEncoding="utf-8"
responseEncoding="utf-8" />
Line 195: <pages validateRequest="false"
enableEventValidation="false">
Line 196: <controls>

Source File: C:\Inetpub\wwwroot\folder_a\web.config Line: 195
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
ASP.NET Version:1.1.4322.2032

------------------------------------------------------------------------------------------------------------------------------------------------

Nov 1 '06 #1
1 1438
It is doing what it is "supposed to" do - following the web.config in a
parent folder.
The easiest (although there are other) way to fix this is to not have "b" as
a subfolder of "a" - instead, put it in a different folder at the same level
as "a".
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"jo***@vinninge.com" wrote:
I have a problem with different .NET Framework versions in virtual
directories.

Virtual directory /folder_a, is configured as an application running
..NET Framework 2.0 and contains an ASP.NET 2.0 app.

Virtual directory /folder_a/folder_b, is configured as an application
running .NET Framework 1.1 and contains an ASP.NET 1.1 app.

When i run the webb applikation in /folder_a/folder_b, it tries to use
the web.config file in the parent folder /folder_a, running the ASP.NET
1.1 and causing this 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: Unrecognized attribute 'enableEventValidation'.

Source Error:
Line 193: -->
Line 194: <globalization requestEncoding="utf-8"
responseEncoding="utf-8" />
Line 195: <pages validateRequest="false"
enableEventValidation="false">
Line 196: <controls>

Source File: C:\Inetpub\wwwroot\folder_a\web.config Line: 195
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
ASP.NET Version:1.1.4322.2032

------------------------------------------------------------------------------------------------------------------------------------------------

Nov 1 '06 #2

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

Similar topics

3
3663
by: pleaseHelp | last post by:
To better manage our secure site we just separated the registration and checkout sections of our web into separate virtual directories. These new virtual directories are on the same server as the...
2
4208
by: Jeffry van de Vuurst | last post by:
Hi, (sorry for the crosspost, I wasn't sure which was the best place to put this). I was just thinking about something and wondered if any of you has some ideas about this. I'm using the...
1
1980
by: JC | last post by:
I have several applications that use forms authentication and they are currently setup to use a single login page. Everything works fine under v1.0 of the framework and everything works fine if I...
4
2578
by: Michelle | last post by:
I have a website with 6 virtual directories under it who dont "see" the bin/ directory in the root. If I create a /bin directory in each virtual directory and then copy my dll's in there, it...
9
3182
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
10
3487
by: appdevtech | last post by:
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...
2
1981
by: Angelo Cook | last post by:
how do you prevent the publishing of virtual directories in VS 2005. I have been using VS2003 and developing websites for years. I have been using virtual directories for images, icons, styles...
4
1691
by: bienwell | last post by:
Hi all, I have .NET framework 1.1 and 2.0 installed in the same server. I had some web pages developed in Visual Studio.NET 2003 and some inline code web pages before (framework 1.1) . Now I...
13
6610
by: dancer | last post by:
I have made a new post because when I try to respond to another, I get the error, "Article Rejected -- Ill-formed message id" This is in response to the advice of Juan Libre to install Net...
0
7046
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
7048
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
7088
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...
1
6741
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...
0
6956
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
5342
agi2029
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,...
1
4783
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
4485
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
2986
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.