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

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
------->
 
BYTECHINDIAAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
BYTECHINDIAConnect With a Mentor Author Commented:
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
 
rovermCommented:
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
 
DabasCommented:
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
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
NafadiCommented:
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
 
rovermCommented:
@Nafadi: This is exactly what I said...
0
 
BYTECHINDIAAuthor Commented:
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
 
DabasCommented:
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
 
BYTECHINDIAAuthor Commented:
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
 
DabasCommented:
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
 
Vee_ModCommented:
Closed, 125 points refunded.
Vee_Mod
Community Support Moderator
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.