Question

In IIS 7.5 when i select a page writed in html (not created in .Net), I have an error 500. When I go to this *.html page, but in the rest of this web app works fine.

Investigating a little more, I get the following error: "There is a duplicate 'cachingSection' section defined"

I tried to do the following:

*Compare web.config root file and machine.config for duplicated 'cachingSection' sections. And both files are ok.

*Compare web.config root file with web.config located on Views folder. And both files not have 'duplicated sections'. *In my PC, i ran this web app and works fine.

This .Net app in my pc works with .Net 4

¿Any idea how to solve this error?

Thanks in advance,

Was it helpful?

Solution

Make sure you don't have any additional web.config files "lurking" in the folders. I have done this when I tried to refer to class projects inside a web project.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top