Last post Jun 20, 2014 03:11 AM by BadForGood
Jun 19, 2014 11:28 AM|BadForGood|LINK
I'm not sure if this is the right place to ask, but probably one of you pros here can help me or point me in the right direction.
So, I have written a custom provider for the IIS URL rewrite module. I followed the instructions given
here to get me started, and build a provider that connects to an Oracle database, acquires some data there, does some things with it, and eventually provides a replacement URL. My custom provider can, after registering it in the GAC, be used in the full-fledged
IIS without any problems and works just fine there.
HOWEVER, when working on website projects in Visual Studio, IIS Express is generally used for debugging. And, as can be read
here, IIS Express contains the URL Rewrite module. Indeed, it supports (for example) normal regexp-based rules just fine, BUT ... and this is the question: Does it also support custom rewrite providers - just like the one I've written and mentioned above?
Unfortunately, I have not yet been able to find a way to make my custom rewrite provider work in conjunction with IIS Express. If anybody knows if this is possible at all, and if so, how, then I'd highly appreciate any useful pointers in the right direction!
If all else fails, I fear I'd be forced to move all of my debugging to "real" IIS ... but I'd prefer to stay with IIS Express, as that's the much easier way to go with regard to all of my colleagues also working on the project.
Thanks in advance and greetings!
Jun 19, 2014 05:19 PM|Mikesdotnetting|LINK
You are better off asking IIS questions here: http://forums.iis.net
Jun 20, 2014 02:50 AM|Starain chen - MSFT|LINK
Since IIS Express has supported URL rewrite, in my opinion, it supports custom URL Rewrite Providers too.
There is a link that may benefit you:
# Using Custom Rewrite Providers with URL Rewrite Module
On the other hand, this issue is related to IIS, as Mike said that you should post it to the IIS forum for efficient response.
Jun 20, 2014 03:11 AM|BadForGood|LINK
Hi Starain and Mike,
thanks for the quick reply! Yes, you're right: I'll probably have a try in the IIS forum in order to see if the guys there can give me some additional helpful information.