asp.net – 使用主题的css文件需要在页面上的头控件 (例如)
发布时间:2020-05-23 19:00:07 所属栏目:asp.Net 来源:互联网
导读:我正在开发asp.net网站项目。当我运行项目时,它正常工作。但在服务器中,我收到以下错误。如何解决这个问题? Using themed css files requires a header control on the page. (e.g. `head runat=server /`).Description: An unhandled exception occurred
|
我正在开发asp.net网站项目。当我运行项目时,它正常工作。但在服务器中,我收到以下错误。如何解决这个问题? Using themed css files requires a header control on the page. (e.g. `<head runat="server" />`). 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. How to solve this problem? Exception Details: System.InvalidOperationException: Using themed css files requires a header control on the page. (e.g. `<head runat="server" />`). Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [InvalidOperationException: Using themed css files requires a header control on the page. (e.g. <head runat="server" />).] System.Web.UI.PageTheme.SetStyleSheet() +2458406 System.Web.UI.Page.OnInit(EventArgs e) +8699420 System.Web.UI.Control.InitRecursive(Control namingContainer) +333 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint) +378 解决方法对于我来说,因为我上传之前的 pre-compile个站点,所以在实时服务器上的原因是丢失了PrecompiledApp.config文件。(编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net – 在project.json中排除文件夹
- asp.net – 分类失败.返回未最终内容
- asp.net – SignalR并不总是准备好后start().done()?
- asp.net-mvc – 从控制器的操作调用集线器方法
- asp.net – 转换为VS 2015.1中的Web应用程序
- asp.net-mvc – MVC错误 – 传入字典的模型项目的类型为“S
- asp.net-mvc – .input-validation-error为表单重新显示失败
- 403发布asp.net MVC后禁止
- asp.net-core – 需要dotnet core 2.1才能在visual studio中
- asp.net-mvc – 如何使用html帮助器在asp.net mvc中创建一个
推荐文章
站长推荐
热点阅读
