This "wildcard configuration" affects static files.
Yes, it does. In normal situation, IIS serves many files directly such as .html, .gif, .jpg etc. This is done without any interaction by ASP.NET. ASP.NET never even sees the request.
When you do enable wild-card mapping, ASP.NET sees - and must handle all these requests as well. ASP.NET has a HttpHandler called StaticFileHandler that must be wired up to handle these files, which it normally does via the default configuration. Typically
there's no need to change any Web.Config configuration of static files when enabling wild-card mapping. You might want to add some code to add a caching policy to the files served via the StaticFileHandler though if I recall correctly. This is only an optimization
issue, not a functional issue.
Just what is the problem? ("Not working" is insufficient as problem description ;-). I suggest you get FireBug for FireFox, or IEWatch for Internet Explorer, or Fiddler for any browser to determine any problems in the flow of requests and responses between
the client and the server.
Svante
AxCrypt - Free Open Source File Encryption & Online Password Manager - http://www.axantum.com [Disclaimer: Code snippets usually uncompiled, beware typos.]
______
Don't forget to click "Mark as Answer" on the post(s) that helped you.
At IIS7/Vista I solve with this code in my Web.config:
<system.webServer>
<modules>
<add
name="Rewriter"
type="Rewriter" />
</modules>
</system.webServer>
Svante
All-Star
18347 Points
2300 Posts
Re: Url ReWriting setting up in web.config
Aug 14, 2007 07:14 AM|LINK
Yes, it does. In normal situation, IIS serves many files directly such as .html, .gif, .jpg etc. This is done without any interaction by ASP.NET. ASP.NET never even sees the request.
When you do enable wild-card mapping, ASP.NET sees - and must handle all these requests as well. ASP.NET has a HttpHandler called StaticFileHandler that must be wired up to handle these files, which it normally does via the default configuration. Typically there's no need to change any Web.Config configuration of static files when enabling wild-card mapping. You might want to add some code to add a caching policy to the files served via the StaticFileHandler though if I recall correctly. This is only an optimization issue, not a functional issue.
Just what is the problem? ("Not working" is insufficient as problem description ;-). I suggest you get FireBug for FireFox, or IEWatch for Internet Explorer, or Fiddler for any browser to determine any problems in the flow of requests and responses between the client and the server.
AxCrypt - Free Open Source File Encryption & Online Password Manager - http://www.axantum.com
[Disclaimer: Code snippets usually uncompiled, beware typos.]
______
Don't forget to click "Mark as Answer" on the post(s) that helped you.
zote
Member
23 Points
26 Posts
Re: Url ReWriting setting up in web.config
Sep 21, 2007 05:05 PM|LINK
How can I enabled wild-card mapping in IIS7/Vista and IIS6/W2003?
Its's possible to do in web.config?
Regards
Zote
zote
Member
23 Points
26 Posts
Re: Url ReWriting setting up in web.config
Sep 21, 2007 06:59 PM|LINK
At IIS7/Vista I solve with this code in my Web.config:
<system.webServer>
<modules>
<add name="Rewriter" type="Rewriter" />
</modules>
</system.webServer>
Now, how can I solve in IIS6?
Zote