简体   繁体   中英

Static files on local machine not being published to IIS from visual studio

this is about the first time I am trying to publish my first ASP.NET application to IIS on my local machine. I have gone through some guiding resources to be able to do that. I have installed both IIS and SQL Server Express on my local machine. I have been able to publish it and it is running on localhost/appname. The problem however is that the static files - CSS, JS and images are not being published to IIS. So the application displays without styling, without images and without JavaScript. I have gone through Control Panel and ensured that Static Content is checked in the Commom Http Features category and still the problem persists. I have even copied the files manually from the development directory to the Content directory in IIS and still the problem persists.

I am running Windows 10, ASP.NET 4.6, Visual Studio 2015 Community Edition Update 1

I would really appreciate any guide to solving this problem.

Thank you all

您必须确保将静态文件包含在解决方案中,才能将其包含在发布中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM