Using themed css files requires a header control on the page. (e.g. <head runat="server" />).
Posted
by wide
on Stack Overflow
See other posts from Stack Overflow
or by wide
Published on 2010-05-06T18:41:19Z
Indexed on
2010/05/06
20:28 UTC
Read the original article
Hit count: 320
ASP.NET
in local it works. when i load server, i got this error.
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.
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
-------------------------------------album1.aspx------------------
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="album1.aspx.cs" Inherits="album1"
Title="Özkan Köylü | Albüm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<script src="scripts/Silverlight.js" type="text/javascript"></script>
<script src="scripts/Default_html.js" type="text/javascript"></script>
<script src="scripts/Page.xaml.js" type="text/javascript"></script>
<script src="scripts/gallery.js" type="text/javascript"></script>
<div align="center" id="SilverlightControlHost">
<script type="text/javascript">
createSilverlight();
</script>
</div>
</asp:Content>
© Stack Overflow or respective owner