servicestack,Razor,servicestack" /> servicestack,Razor,servicestack" />

Razor 无法使用服务堆栈访问javascript文件(.js)

Razor 无法使用服务堆栈访问javascript文件(.js),razor,servicestack,Razor,servicestack,我正在使用ServiceStackRazor(ServiceStack.Razor.3.9.45),无法访问任何js或css文件 Server Error in '/' Application. This type of page is not served. Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension

我正在使用ServiceStackRazor(ServiceStack.Razor.3.9.45),无法访问任何js或css文件

Server Error in '/' Application.
This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden.  The extension '.js' may be incorrect.   Please review the URL below and make sure that it is spelled correctly.

Requested URL: /scripts/bootstrap.js

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18044 
欢迎任何帮助


[编辑]我在RazorRockStar WebHost应用程序上也有同样的问题。

这应该在最新的ServiceStack v3.9.46+版本中得到解决。

可能对某人有帮助:

类似的事情也发生在我身上。在我的例子中,我使用的是编译视图应用程序。 经过大量的证明,问题是js文件(和css等)必须标记为“嵌入式资源”