views:

21

answers:

0

In my web application I have a WCF service that feeds data to some of the AJAXy bits. The URL for calling it looks like:

"/Sales/Product/ServiceName.svc/MethodName"

This worked fine. Then, for SEO reasons, I needed to add some URL rewriting, so I registered an HttpModule and handled the BeginRequest event. Everything still ok.

But the URLs I want to rewrite look like "/Sales/Browse/FolderName/SubFolderName" and I don't want a .aspx on the end of them, so I added a wildcard application mapping in the IIS configuration.

Now the URL rewriting works, but requests for the WCF service hit the UrlRewriter HttpModule, pass through it unscathed and not rewritten, but never reach the method in the web service.

Can I have both at once? How do I stop the wildcard application map breaking the webservice?