0
當我發佈我的MVC 5網絡系統時,當我檢入Google Chrome檢查元素時出現以下錯誤。在Windows Server 2008中發佈MVC網絡系統時出錯
下面是我在視圖中添加代碼:
@model abc.def.Models.ClsSECEditors
@{
ViewBag.Title = "Index";
}
<style type="text/css">
.deleteLink {
cursor: pointer;
}
</style>
<link href="/Content/jqueryui/jquery-ui.css" rel="stylesheet" />
<link href="/Content/jqsimplemenu.css" rel="stylesheet" />
<link href="/Content/bootstrap.css" rel="stylesheet" />
<link href="/Content/Site.css" rel="stylesheet" />
<link href="/Content/datepicker.css" rel="stylesheet" />
<script src="/Scripts/modernizr-2.6.2.js"></script>
<script src="/Scripts/jquery-1.10.2.js"></script>
<script src="/Scripts/jquery-1.10.2.min.js"></script>
<script src="/Scripts/respond.js"></script>
<script src="/Scripts/moment.js"></script>
<script src="/Scripts/bootstrap.js"></script>
<script src="/Scripts/bootstrap-datepicker.js"></script>
<script src="/Scripts/jquery-ui.js"></script>
<!-- Script for menu -->
<script src="/Scripts/jqsimplemenu.js" type="text/javascript"></script>
<script src="~/Scripts/Functions/SECEditor.js"></script>
<br>
@using (Html.BeginForm(null, null, FormMethod.Post, new { id = "abc" }))
{...}
當我開發使用我的筆記本電腦,不存在問題,並找到工作。我不知道爲什麼當我發佈它時,所有的錯誤都出現了。你們能幫我解決這個問題嗎?謝謝。
嗨@簡單的男人..我不知道我需要改變我的代碼。你能幫忙嗎? – eikaz
我可以知道如何在css中添加這個參考嗎?現在我只是嘗試它的js參考,但仍然錯誤:( – eikaz
你可以做相同的CSS。通過文件的路徑。你得到什麼錯誤?你檢查文件的路徑嗎?或者你有虛擬部署你的網站目錄? –