作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经使用Visual Studio 2012 for Web Express在ASP.Net 4.5中开发了一个Web表单。它托管在somee.com上。页面加载时,出现以下错误:
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Unknown server tag 'webopt:BundleReference'.
Source Error:
Line 9: <%: Scripts.Render("~/bundles/modernizr") %>
Line 10: </asp:PlaceHolder>
Line 11: <webopt:BundleReference runat="server" Path="~/Content/css" />
Line 12: <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
Line 13: <meta name="viewport" content="width=device-width" />
Source File: /Site.Master Line: 11
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
最佳答案
您需要确保对与“webopt”文件相关的特定程序集具有引用。通常,您可以通过将其包含在web.config文件的部分中来实现此目的:
<pages>
<controls>
<add tagPrefix="webopt" assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" />
</controls>
</pages>
关于asp.net - 未知服务器标签 'webopt:BundleReference',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17130988/
我已经使用Visual Studio 2012 for Web Express在ASP.Net 4.5中开发了一个Web表单。它托管在somee.com上。页面加载时,出现以下错误: Server E
在 Visual Studio 13 的 ASP.Net Web 表单的默认模板中,有一个标签 webopt: 经过搜索,似乎是为了捆绑和缩小。该标签有官方文档吗?我找不到一个。具体来说,我想知道它
我是一名优秀的程序员,十分优秀!