Click here to Skip to main content
15,917,971 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

We hosted an application running in VS4.0.We need to host another application in the same IIS as a virtual directory.The sub web site is running in VS2.0.While we browse the second Application we are getting an error as Target Framework 4.0.

The config file taking is from the parent site.

What I have tried:

We tried to put Location tag inheritInChildApplications="false".But its not working.Please help to resolve the issue.We need to host the application in the same directory itself.
Posted
Updated 12-Apr-16 4:00am
Comments
Richard Deeming 12-Apr-16 9:53am    
<location inheritInChildApplications="false"> is the correct solution. Are you sure you've configured your 2.0 directory as an application?

1 solution

Your 2.0 directory needs to have it's own Application Pool and that pool should be set to .Net 2.0.
 
Share this answer
 
Comments
Member 11658469 12-Apr-16 10:29am    
Thanks for the reply.

How we set 2 directory version for same Application Pool.Please help.
ZurdoDev 12-Apr-16 10:36am    
You can try making them the same application pool but you may have problems.
F-ES Sitecore 12-Apr-16 10:42am    
The same way you set it for the main site, select it in IIS Manager and choose Advanced Settings. Google can tell you all of these things quite easily.
Member 11658469 12-Apr-16 11:13am    
We tried to set the pool version but we are getting the error as
There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined
ZurdoDev 12-Apr-16 11:15am    
Sounds like your web.configs are trying to merge. You'll have to go through and resolve all errors.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900