asp.net - IIS Gives 404 Error to existing files coz of incorrect physical path -


i have deployed new asp .net website folder named d:/mywebsite

i have configured iis publish website , server pages , code work fine.

now issue is, "some" of static files (like images, css, or javascript) give error 404 while other static files not. strange of these static files belong same subfolder.

when investigated issue little bit, found iis trying retrieve (404 not found) files c:\inetpub\wwwroot\assets\img instead of website folder d:\mywebsite\assets\img . more strange happening files , not.

so why iis convinced specific files belonging default wwwroot folder not website root folder.

when copied 404 files wwwroot, error disappeared , files retrieved successfully. not solution stupid work around.

i had checked security , there no issue there. checked file naming , no issue well.

i'm using iis 7.5 integrated mode.

your support highly appreciated.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -