Solved

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

Posted on 2007-11-16
11
5,423 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.
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.

631 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