Web Config

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm getting errors when I run my application with the following in my web
config file.

<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>
 
My guess is that since System.Web.dll is located in the GAC (global assembly
cache) it requires the full assembly name which might be:
System.Web.HttpNotFoundHandler,System.Web,Version=1.0.3705.0,Culture=neutral
,PublicKeyToken=b03f5f7f11d50a3a

However, I don't think there's any need to map those extensions to it
anymore..I think as of 1.0 those extensions are automatically mapped...could
be wrong about all of this though.

Karl
 
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: File or assembly name System.Web, or one of its
dependencies, was not found.

Source Error:


Line 74:
Line 75: <httpHandlers>
Line 76: <add verb="*" path ="*.vb"
type="System.Web.HttpNotFoundHandler,System.Web" />
Line 77: <add verb="*" path ="*.cs"
type="System.Web.HttpNotFoundHandler,System.Web" />
Line 78: <add verb="*" path ="*.vbproj"
type="System.Web.HttpNotFoundHandler,System.Web" />
 
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: File or assembly name System.Web, or one of its
dependencies, was not found.

Source Error:


Line 74:
Line 75: <httpHandlers>
Line 76: <add verb="*" path ="*.vb"
type="System.Web.HttpNotFoundHandler,System.Web" />
Line 77: <add verb="*" path ="*.cs"
type="System.Web.HttpNotFoundHandler,System.Web" />
Line 78: <add verb="*" path ="*.vbproj"
type="System.Web.HttpNotFoundHandler,System.Web" />
 
Could it be because all of those handlers
are already configured in machine.config as
System.Web.HttpForbiddenHandler
( not as System.Web.HttpNotFoundHandler... )

???



Juan T. Llibre
ASP.NET MVP
===========
 

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

Back
Top