Solved

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

Posted on 2007-11-16
11
5,410 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
@Nafadi: This is exactly what I said...
0
 

Author Comment

by:BYTECHINDIA
Comment Utility
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 27

Expert Comment

by:Dabas
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Closed, 125 points refunded.
Vee_Mod
Community Support Moderator
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

771 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

10 Experts available now in Live!

Get 1:1 Help Now