Asp.net mvc MVC 5捆绑包内部服务器错误500

Asp.net mvc MVC 5捆绑包内部服务器错误500,asp.net-mvc,https,asp.net-mvc-5,bundle,areas,Asp.net Mvc,Https,Asp.net Mvc 5,Bundle,Areas,我正试图在我们的项目中使用bundles的特性。在此之前,我们对bundle没有任何问题,因为我们使用了调试模式,所以缩小功能被关闭,脚本被正确生成。一切都很顺利。在发布模式下,由于服务器错误,捆绑包文件为空时,我遇到了一个问题 <link href="/Content/css?v=8NmJE7Tfgttds2oN3z8i40xNv93qpCusuz0h_AR3Y4s1" rel="stylesheet"/> bundles.Add(new StyleBundle("~/Cont

我正试图在我们的项目中使用bundles的特性。在此之前,我们对bundle没有任何问题,因为我们使用了调试模式,所以缩小功能被关闭,脚本被正确生成。一切都很顺利。在发布模式下,由于服务器错误,捆绑包文件为空时,我遇到了一个问题

<link href="/Content/css?v=8NmJE7Tfgttds2oN3z8i40xNv93qpCusuz0h_AR3Y4s1" rel="stylesheet"/>


bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));

我们在项目中使用https协议和区域。我创建了一个简单的MVC项目,并在那个里使用了捆绑包,最小化效果很好,所以我认为这不是IIS的问题。你知道为什么捆绑包在这里不起作用吗

我解决了这个问题。我们的权限系统认为请求资源localhost:44300/Content/css的链接只是一个控制器/操作链接

我解决了一个问题。我们的权限系统认为请求资源的链接只是控制器/操作链接。代码重构应该会有所帮助。
Detailed Error Information:
Module     global.asax
Notification       AcquireRequestState
Handler    System.Web.Optimization.BundleHandler
Error Code     0x00000000
Requested URL      https://localhost:44300/Content/css?v=8NmJE7Tfgttds2oN3z8i40xNv93qpCusuz0h_AR3Y4s1
Physical Path      C:\.........\Content\css
Logon Method       Anonymous
Logon User     Anonymous
Request Tracing Directory      C:\Users\.....