Solved

Microsoft, IIS, 6.0 , DOT Net Framework (2.0 & 1.1 Conflict)

Posted on 2007-11-16
11
5,412 Views
Last Modified: 2012-06-21
I have Configured a Website (e.g  www.mainsite.com  under IIS 6.0 , The main site uses DOT Net 2.0 Framework. Within mainsite.com , I have set up subsite1 , subsite2 through Virtual Directory . The subsites run in DOT Net 1.1 Framework.
when I am  trying to run the site e.g (www.mainsite.com/subsite1)  i am getting following error. I understand that the subsite1 is using web.config of main site . What is the Solution for  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: Unrecognized attribute 'type'.

Source Error:

Line 2:  <configuration>  Line 3:   <configSections>  Line 4:    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">  Line 5:     <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
 PublicKeyToken=31bf3856ad364e35">  Line 6:      <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>

Source File: D:\Web Sites\mainsite\web.config    Line: 4
------->
 
0
Comment
Question by:BYTECHINDIA
  • 3
  • 3
  • 2
  • +2
11 Comments
 
LVL 12

Expert Comment

by:roverm
ID: 20304184
Right click on the website entry in IIS, choose 'properties'. Then select the ASP.NET tab and make sure that it's set to 2.0.
0
 
LVL 27

Expert Comment

by:Dabas
ID: 20304186
Hello BYTECHINDIA,
It should not be dififcult to create a web.config just for subsite1. But that will not solve your problem.
Even completely independent sites written in different .net frameworks will not coexist. The solution to this problem is to create separate application pool.
All .Net 2.0 sites should use a different applicatoin pool to the .Net 1.1 sites


Regards,

Dabas
0
 
LVL 1

Expert Comment

by:Nafadi
ID: 20308746
You can select witch ASP.NET version to select

Run the IIS manager (from Control Banner > Administrative Tools > Internet Information Services)
You will find all your websites (including the ones created using the virtual directories)

Right click on the site and select properties
Click on the ASP.net tab. If you have multiple version of the Framework installed then you will be able to select the ASP.Net Version.
Make sure to select the correct version. By default all new applications will inherit the default settings of the Default Website.
0
 
LVL 12

Expert Comment

by:roverm
ID: 20308835
@Nafadi: This is exactly what I said...
0
 

Author Comment

by:BYTECHINDIA
ID: 20310670
Basically we are using ajax components in main website taht is running under ASP 2.0.

When ever we are trying to run the virtual directory running ASP1.1 under the above mentioned website, it's giving the error in main website's web.config.

In other words, the scenario is as follows

Main Websie (say mainsite) -> .Net 2.0
Virtual Directory(under mainsite, say vd1) -> .Net1.1

While running vd1 error will come related to mainsite's web.config file.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 27

Expert Comment

by:Dabas
ID: 20310684
I repeat:
You can NOT have .net1.1 and .net2.0 running from the same web.config. (they are different)

Hence you HAVE to have separate web.config files

AND you will have to set up separate Application Pools to avoid a conflict.

Dabas
0
 

Author Comment

by:BYTECHINDIA
ID: 20310771
Dear Dabas,

I have already implemented the same as you said.

I have different folders for each different virtual directroy.  So web.config is also residing in respective folders only.

Application pool is also different for each configuration.
0
 
LVL 27

Expert Comment

by:Dabas
ID: 20311904
BYTECHINDIA,

Thanks!
Now to the error you are getting:
It looks like you have a .Net1.1 specific web.config in the .NET2.0 folder.
I suggest you start a new .NET2.0 application and compare the way its web.config looks to the one that you ahve there.
You should be able to find what is wrong that way

Dabas
0
 

Accepted Solution

by:
BYTECHINDIA earned 0 total points
ID: 20418778
I have configured the virtual directory under another website and my problem has solved.


Now I am closing the question now.

Thanks for your help.
0
 
LVL 1

Expert Comment

by:Vee_Mod
ID: 20678148
Closed, 125 points refunded.
Vee_Mod
Community Support Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
This video teaches users how to migrate an existing Wordpress website to a new domain.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now