html - IIS not loading css file outside of website folder -


i have asp 4.0 web site being served iis 8 in folder outside of wwwroot. site load, css file using not being loaded (getting 404 error).

here's folder path site: c:/sites/test/"website using"

and folder path css file: c:/sites/test/sharedfiles/css/stylesheet.css

here's link using connect css file (with spaces post) < link href="~/../sharedfiles/css/stylesheet.css" rel="stylesheet" type="text/css" / >

this should load css file, not. i'd figure out how working.

the sites folder shared iis_iusrs , iusr , permissions passed down folders below, including test/sharedfiles/css folder.

the web site folder what's selected iis website. have anonymous authentication enabled application pool identity , static file serving enabled.

i'd appreciate other ideas on how figure out problem!

make sharedfiles virtual directory , establish web site or web application there , access resources (css etc.) using url. in local host have http://localhost/sharedfiles/yourcss.css

thats correct way - trying implement here own cdn.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -