468,310 Members | 1,430 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

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

yma
Hi,

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.

<!-- PREVENT SOURCE CODE DOWNLOAD
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
downloaded.
It is recommended that you use this section to prevent your
sources being downloaded.
-->
<httpHandlers>
<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" />
</httpHandlers>

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

</system.web>

</configuration>

Chris
Nov 20 '05 #1
0 1494

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.