By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,930 Members | 633 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,930 IT Pros & Developers. It's quick & easy.

<httpHandlers> section that causes "cannot load file..." error

P: n/a

I have a web.config file that contains <httpHandlers> section that causes
"cannot load file..." error. If I delete this section, it is OK. Why did add this section? It does not add this section now. Thank you.

This section sets the types of files that will not be downloaded.
As well as entering
a httphandler for a file type, you must also associate that file
type with the xspisapi.dll
in the App Mappings property of the web site, or the file can be
It is recommended that you use this section to prevent your
sources being downloaded.
<add verb="*" path="*.vb"
type="System.Web.HttpNotFoundHandler,System.Web" />
<add verb="*" path="*.cs"
type="System.Web.HttpNotFoundHandler,System.Web" />
<add verb="*" path="*.vbproj"
type="System.Web.HttpNotFoundHandler,System.Web" />
<add verb="*" path="*.csproj"
type="System.Web.HttpNotFoundHandler,System.Web" />
<add verb="*" path="*.webinfo"
type="System.Web.HttpNotFoundHandler,System.Web" />

This section sets the globalization settings of the application.
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />



Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.