私は現在、C#ASP NET MVCのスケジューラをコーディングしています5。C#ASP.NET MVC 5 - エラー500読み込みglyphiconとjqueryのUIスタイル
昨日、私は、ローカルIISサーバー上で自分のアプリケーションをデプロイし、私はしました私のglyphiconsと私のjquery UIのスタイルはもう役に立たないことに気づいた (error 500 in my web tools)。
私が問題にしてもとlocalY、glyphiconsも同様の作業をdoen'tことでエラーが my jquery bundle
に私をもたらす電子
に多くの話題のように、すでにstackoverflowの多くの解決策を試してみました。
これは、私はすでにテストしました貴様のソリューションです:
- は、ブートストラップのWebサイトからCssRewriteUrlTransform
- ダウンロードフォントのバンドルを作成して名前のフォルダの競合
- を避けるために、貴様の名前と私のバンドルをロードし、手動で挿入してください。
- 正しく読み込むようにIIS MIMEタイプを設定してください。
[編集]あなたが尋ねると、私は_Layout.cshtmlを追加)=
は、私は私のreasearchを続けていくだろうし、任意のヘルプは、
D.
は良い一日の人を持って歓迎されています
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - Planning</title>
@Styles.Render("~/Content/css")
@Styles.Render("~/Content/cssjqryUi")
@Styles.Render("~/Content/themes/base/css")
@Styles.Render("~/Content/fullcalendarcss")
@Styles.Render("~/Content/bootstrap")
@Styles.Render("~/Content/bootstrap-theme")
@Styles.Render("~/Content/awesome")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
@Html.Action("_Menu", "Layout")
<div class="container body-content">
@RenderBody()
<hr />
<footer>
<p>© @DateTime.Now.Year - Si2A Planning</p>
</footer>
</div>
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
@Scripts.Render("~/bundles/jqueryval")
@Scripts.Render("~/bundles/jqueryui")
@Scripts.Render("~/bundles/fullcalendarjs")
@Scripts.Render("~/bundles/planifier")
[編集] Web.Configファイルは、間違っていた部分のみです。それはAppsetting行方不明だった。
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
</configSections>
<connectionStrings>
<add name="ADConnectionString" connectionString="LDAP://xxxxxxx"/>
<add name="PlanningEntities" connectionString="metadata=res://*/Models.PlanningBDD.csdl|res://*/Models.PlanningBDD.ssdl|res://*/Models.PlanningBDD.msl;provider=System.Data.SqlClient;provider connection string=xxxxxxxxxx;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient"/>
</connectionStrings>
<appSettings>
<add key="webpages:Version" value="3.0.0.0"/>
<add key="webpages:Enabled" value="false"/>
<add key="ClientValidationEnabled" value="true"/>
<add key="UnobtrusiveJavaScriptEnabled" value="true"/>
</appSettings>
<system.web>
<authentication mode="Forms">
<forms name=".ADAuthCookie" loginUrl="~/Account/Login" timeout="45" slidingExpiration="false" protection="All"/>
</authentication>
<membership defaultProvider="AspNetActiveDirectoryMembershipProvider">
<providers>
<add name="AspNetActiveDirectoryMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider" connectionStringName="ADConnectionString" attributeMapUsername="sAMAccountName"/>
</providers>
</membership>
<compilation debug="true" targetFramework="4.6.2" />
<httpRuntime targetFramework="4.6.2" />
<httpModules>
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
</httpModules>
</system.web>
<system.webServer>
<modules>
<remove name="FormsAuthentication" />
<remove name="ApplicationInsightsWebTracking" />
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
</modules>
<validation validateIntegratedModeConfiguration="false" />
ここに_layout.cshtmlコードを追加できますか? –
お願いします。しかし、問題はweb.configにありました。私はおそらく行を追加したり、行かなくてはならない行を変更したりしています。 – Deeply
ありがとう!親切にもweb.configを追加しても問題ありません。 –