Error running project with subfolder web.config

J

John Spiegel

Hi all,

I'm working through examples on configuring ASP.NET (all on local machine).
The first exercise deals with the customErrors in the config files. The
machine.config file has a customErrors mode set to RemoteOnly and the
application's web.config has it set to On with a redirect for a 404 error.
This works fine.

However, when I add a subfolder to the application and place a web.config
file in there (from the IDE so I'm not just manually introducing typos) then
run, I get the error:

Error while trying to run project: Unable to start debugging on the web
server. Server side-error occurred on sending debug HTTP request.

It continues to happen whether I leave the subfolder's web.config alone or
change the customErrors setting. The <CustomErrors> element of the
machine.config's <configSection> does not specify any allowDefinition
restrictions (which I'm told would default to allowing "sub-configs"
anywhere).

Any idea where to look next?

TIA,

John
 
R

Rick Spiewak

Not all of the sections are allowed in subfolders. Use only what you need.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top