Mappings in Webdev Webserver

S

swissclash79

Good morning everybody

I have a question regarding configuring mappings in the development
webserver. I am currently implementing a proxy server that is lied
between the clients and a customer's webapplication. This proxy is
responsible for security aspects (authentication/authorization) that
is not handled by the webapplication itself. For that I created a
class that implements IHttpHandler and registered it in the
webproject's web.config. So far so good.

The proxy is implemented as a transparent proxy, so the client is not
aware of it, at least after the first request that handles the
authentication. After that, it takes simply every incoming request and
sends it to the webapplication, waits for the response and sends it
back to the client. This works fine for simple ressources (e.g.
images, javascript files, stylesheets) that come with GET requests.
But the webapplication uses also .axd files (javascript as embedded
ressources).

Requests for this file type (.axd) that come to the proxy, are not
dispatched to my http handler, when I use the webdev webserver. But
they are dispatched, when I host my proxy on a real IIS instance (here
I have configured a wildcard application extension so request for any
files are dispatched to my http handler).
But why doesn't it work on the webdev webserver? Is it possible to
configure such a wildcard application extension map as well?

Thanks for your help
Christian
 
J

Juan T. Llibre

re:
!> why doesn't it work on the webdev webserver?

Webdev.webserver.exe is hotwired to only respond to local requests.

re:
!> Is it possible to configure such a wildcard application extension map as well?

You might want to try Cassiniv2 to host your test ASP.NET development,
instead of using webdev.webserver.exe.

I think it allows application extension mappings.
Also, it comes with source code, so you can change anything in it.

Direct link to the source files:
http://blogs.msdn.com/dmitryr/attachment/548131.ashx

You also need the v2.0 version of GACUTIL which should
be installed by default with VWD Express or VS 2005.

Make sure you read the "ReadMe.txt" file included in the zipped source.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
 

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

Top