c# - Why does IIS return empty responses? -
i published angularjs/webapi project using file system publish local iis application , can open website in browser. unfortunately, no resources such images, css etc. can loaded. when try reach file located in sub folder still receive http 200 server, body empty. can remember i´ve had issue few years can´t remember why happens.
request
get http://localhost/content/images/common/logotype.png http/1.1 host: xx.xxx.xx.xxx connection: keep-alive cache-control: max-age=0 accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 upgrade-insecure-requests: 1 user-agent: mozilla/5.0 (windows nt 6.3; wow64) applewebkit/537.36 (khtml, gecko) chrome/44.0.2403.130 safari/537.36 accept-encoding: gzip, deflate, sdch accept-language: en-us,en;q=0.8,sv;q=0.6
response
http/1.1 200 ok server: microsoft-iis/8.5 x-powered-by: asp.net date: tue, 25 aug 2015 07:56:12 gmt content-length: 0
as can see, there no body @ image exists in folder , can open filesystem. guess if privilege issue server return 403 or similar error, not 200 ok?
facepalm
turns out lex li:s comment put me in right direction. had missed include "static content" feature missing in iis "common http features".
Comments
Post a Comment