Framework versions and virtual directories

  • Thread starter Thread starter jonas
  • Start date Start date
J

jonas

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
 
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
 
Back
Top