Используя тематическую CSS файлы требует управления заголовком на странице. (например, <возглавляют runat = “сервер”/>),

Я работаю над веб-проектом 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
18
задан ozkank 28 January 2013 в 13:38
поделиться

1 ответ

вам нужен тег заголовка с runat = "server" на странице (или главной странице), как показано ниже

<head runat="server">
    <title></title>
</head>
12
ответ дан 30 November 2019 в 05:57
поделиться
Другие вопросы по тегам:

Похожие вопросы: