MVC5 CSS / Lay-Out在一台PC上运行,而不是在另一台PC上运行

时间:2017-12-28 17:01:22

标签: c# html css model-view-controller

它应该如何看(并且看起来在一台机器上):

How it's supposed to look (and does look on one machine)

然后,当移动到另一台计算机时,结果就是这样。好像布局和CSS没有渲染,但是在使用断点进行渲染时似乎会渲染:

Then, when moved to another computer, this is the result. As if the layout and CSS is not rendered, but it seems to render when going through it with breakpoints

两台PC都使用.NET Framework 4.5.2运行Visual Studio 2017,两者的文件完全相同。我应该寻求解决这个问题的任何想法,这都是小事。

1 个答案:

答案 0 :(得分:0)

当我遇到此问题时,IIS出现问题...在第二台计算机上,打开Windows功能并确保选中以下选项:

Windows Features

更正:允许IIS提供静态内容是一个问题。 我不应该欺负IIS而且不必要地责备它。

相关问题