gpt4 book ai didi

asp.net - 使用主题的CSS文件需要页面上的 header 控件。 (例如)

转载 作者:行者123 更新时间:2023-12-03 13:06:17 25 4
gpt4 key购买 nike

我正在asp.net Web项目上。当我运行项目时,它可以正常工作。但是在服务器中,出现以下错误。如何解决这个问题呢?

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 - 使用主题的CSS文件需要页面上的 header 控件。 (例如<head runat =“server”/>),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2783545/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com