资源未在Razor中加载

时间:2015-01-16 20:17:20

标签: c# asp.net razor view

我在我的asp.net MVC 4项目中添加了一个新的cshtml razor文件。我刚刚添加了

@model Clockit.Models.UserDetails
@{
ViewBag.Title = "Index";
}

到我现有的HTML页面的开头,将html文件转换为cshtml。当我加载页面时,它只给我空白文本,没有任何CSS。

我的Chrome控制台说

Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:20591/assets/global/plugins/font-awesome/css/font-awesome.min.css Failed to load resource: the server responded with a status of 404 (Not Found)

该错误的相应cshtml代码是

<link href="../assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />

为什么剃刀能够找到资源呢?

0 个答案:

没有答案
相关问题