Solved

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

Posted on 2007-11-16
11
5,417 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IIS Cache Control settings 2 36
C# MVC Insert Multiple Row into DB 2 61
How do I generate a CSR on our root CA server? 1 34
C# Linq - Join two objects into one 3 31
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

735 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