1

多くのスクリプト ファイルとスタイルを含む MVC5 プロジェクトがあり、System.Web.Optimization を使用しています。

問題は、Azure にデプロイするときに、次のようなエラーが発生することです。

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 
Line 4:  
Line 5:  @section scripts{
Line 6:      @Scripts.Render("~/bundles/timeApp")
Line 7:      <script>

ローカル マシンでは正常に動作していることに注意してください。

「WEBGREASE」をダウングレードしようとしましたが、うまくいきませんでした

ありがとう。

4

1 に答える 1