2017-05-23 12 views
0

私は現在、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>&copy; @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&quot;" 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" /> 

+0

ここに_layout.cshtmlコードを追加できますか? –

+0

お願いします。しかし、問題はweb.configにありました。私はおそらく行を追加したり、行かなくてはならない行を変更したりしています。 – Deeply

+0

ありがとう!親切にもweb.configを追加しても問題ありません。 –

答えて

0

申し訳ありませんので、修正しました。

私のweb.configが「破損しました」。エラーがある行(まだそれを探している)があります。

今のところ、このエラーが発生した場合は、新しいASP MVC Appを作成して、セクションごとに「新鮮な」web.configを古いものにコピーしてください。

これにより、このコンパイルエラーが修正されます。

このエラーの履歴を保存し、問題の実際の原因を見つけるためにこの回答を更新します。

0

また、私はこの問題を抱えていたとMIMEタイプのためのweb.configファイルにエントリを置くことによってそれを修正するために管理。

<system.webServer> 
    <staticContent> 
     <remove fileExtension=".woff" /> 
     <mimeMap fileExtension=".woff" mimeType="application/font-woff" /> 
     <remove fileExtension=".woff2" /> 
     <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" /> 
    </staticContent> 
    </system.webServer> 

希望はあなたに適しています。

+0

すぐにお返事ありがとうございます。私はすでにこれを試して、何も変わっていない。 (ローカルおよびIIS) – Deeply

関連する問題