Quantcast
Channel: General
Viewing all articles
Browse latest Browse all 7363

"No managed code" and web.config

$
0
0

Hi!

  I have a site with an application pool running over .Net 2.0. This site has a web.config with configsections defined, like "system.web.extensions", "scripting"... about the .NET 3.5 version.

 Sample:
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />

 

  Well, I need run a new application (called stats) under the site, but it doesn't need any code, so it runs with an application pool without .NET, i.e., with "No managed code" configured.

  When I try run stats, I have got an HTTP error 500:

Config Error   There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined

 

The only way to get this error is reading the .NET 4.0 file machine.config, but i don't understand why it's occuring. Site is .NET 2.0 and stats is with "No managed code".

Any idea about this?

 

Regards and thanks in advance!


Viewing all articles
Browse latest Browse all 7363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>