通配符HttpHandler不处理静态文件

Pau*_*aul 6 asp.net web-config httphandler

我看了一些较老的问题,但我找不到任何东西.

我在我的网络应用程序上有一个Wildcard HttpHandler,正在处理网址并确定它是否能用它做任何事情

如果它不能,那么StaticFile Handler应该把它拿起来,然后将它作为静态文件(如html文件)提供.

问题是,它通过通配符处理程序,然后似乎没有去StaticFileHander.我需要对Wildcard处理程序或Web配置做些什么吗?

这是我的web.config:

<add name="Wildcard" path="*" verb="*" type="Rewriter.RewriterHttpModule"
 modules="IsapiModule"  requireAccess="None" allowPathInfo="false" 
 preCondition="" responseBufferLimit="4194304" />

<add name="StaticFile" path="*.*" verb="*" 
 modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" 
 scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" 
 resourceType="File" requireAccess="Read" allowPathInfo="false" preCondition="" 
 responseBufferLimit="4194304" />
Run Code Online (Sandbox Code Playgroud)

hun*_*ter 3

也许您的 HttpHandler 应该显式地将请求传递给 StaticFileHandler。