Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have an interesting situation where I am deploying an application to a subdirectory that is running an earlier version of the .NET framework that the root application.

/   <- .NET 4.0
/child/   <- .NET 2.0

The application pools are setup correctly, as far as I can tell. The error page I received for the child app indicates the framework to be:

Version Information: Microsoft .NET Framework Version:2.0.50727.4216; ASP.NET Version:2.0.50727.4209

That looks good to me. However, I get this error:

Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

This seems to indicate that the web.config file on the root application is overwriting part of the child web.config file. Is there something I can do to prevent that?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

For future people running into this problem, you can wrap in your configuration file with this:

<location path="." inheritInChildApplications="false">

Remember to add after and you'll be good to go.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.