470,593 Members | 2,222 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,593 developers. It's quick & easy.

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


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
vb.net 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
0 1557

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.