Framework versions and virtual directories

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top