asp.net - Owin hosted on IIS doesn't capture URLs with Dot "." -



asp.net - Owin hosted on IIS doesn't capture URLs with Dot "." -

i have owin project hosting using microsoft.owin.host.systemweb. works fine if have dot in url fails , 404. illustration

localhost:4070/cdn/aa works

but

localhost:4070/cdn/a.a doesn't work

i have done next changes in

<system.webserver> <modules runallmanagedmodulesforallrequests="true"> </modules>

i sure setting solves problem in plain asp.net web api having issue owin.

update

i have tried owin host similar behavior, calls "." not routed webapi.

i can understand behavior when there dot in lastly part of url framework thinks file , tries handle problem handle these urls in normal pipeline. writing proxy microsoft cdn , files generated on run time using server.

this config worked me:

<system.webserver> <handlers> <add name="owin" path="*" verb="*" type="microsoft.owin.host.systemweb.owinhttphandler" /> </handlers> </system.webserver>

in odred file path "public/" folder , set in response ended this:

string filepath = system.web.hosting.hostingenvironment.mappath("~/public" + context.request.path);

asp.net asp.net-web-api owin

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -