我们有一个 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”但没有运气
谢谢。