c# - IIS7 adds gibberish to URL, causes 404 for CSS files -


i have c# web application runs fine when hosted visualstudio.

when host on iis, link css stylesheet returns 404 error.

basically:

http://hostname/sitename/default.aspx 

becomes

http://hostname/sitename/(s(ubd3fhzfs04ebb1qzfsjlsse))/default.aspx 

i dont know might've changed, started happening after publish couple of weeks ago.

i have tried deleting site folder , re-publishing.

i have 2 other applicatins hosted published via vs, , urls normal i.e.

http://hostname/sitename/default.aspx 

from can tell, web.configs , iis setups same sites.

that url contains session cookie id, caused cookieless session (either cookies disabled , automatic detection kicks in, or explicitly set cookieless sessions, or caused device-specific asp.net configuration). can fixed changing session settings. however, fix static file references relative instead of absolute, wouldn't cause 404 errors in different setups. cookieless url's handled transparently asp.net, don't cause 404 errors on own, if have hard-coded absolute url's, bad practice anyway.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -