문제

My MVC application can be accessed using the following three methods:

http://domain-name/app - Images and JS files are not loading

http://server-name/app - All content files are loading perfectly

http://ip-address/app - Images and JS files are not loading

Images and JS files are not loading when accessed through domain name and ip-address. All content files are loading perfectly using server name. Any thoughts on this?

올바른 솔루션이 없습니다

다른 팁

Are you using absolute paths when referencing your images and js files in your views or layouts?

Using relative paths should resolve this issue:

<script src="~/Scripts/Mycript.js"></script>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top