【发布时间】:2014-11-17 12:04:37
【问题描述】:
这是我的网络配置
<configuration>
<connectionStrings>
<add name="vmpcon" connectionString="data source=localhost;Database=XXXX;User ID=XXXX;Password=XXXX; Trusted_Connection=False;" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
</configuration>
我在那个网站上有一个页面,当我导航到它时,我只得到了没有任何 css 影响且没有图像的 html。
我尝试使用chrome检查控制台是否有错误,但控制台没有错误
我在 IIS 上选择了integrated,但是如果我选择classic,页面就会变成空的。
请帮我加载css和图片?
如果您需要更多信息,请告诉我
IIS 6.1
更新 1
在 chrome 中,我看到 css 文件的类型是 text/plain,尽管我这样声明它:
<head runat="server">
<title>YMC Popup</title>
<link rel="stylesheet" href="css/style.css"/>
</head>
【问题讨论】:
-
完全没有 404 错误?只是没有请求资源?
-
@DeeMac 没有 404 错误,
-
检查网络选项卡并告诉我们是否已对 CSS 或图像提出任何请求。