Saturday, March 24, 2012

Web.Config Question RE: Forum vs site

I had a forum installed on my site and it is working fine. I also have locally created a simple little aspx website and have FTP to the server and when I load the site with IE all works except for the forum.

I beleive the web.config file needs to be modified. However, I am 4 weeks into ASP and am not really familiar with any of this stuff. Can I seperate the forum into it's own little domain in a sub directory and keep all the files seperate?

What is the best way to tackle this bug?I am getting the bellow error message.

What exactly does this mean? Do I need a header control in the default.aspx file?

Server Error in '/' Application.
------------------------

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() +1951110
System.Web.UI.Page.OnInit(EventArgs e) +2012226
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692



------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
You really should be consulting the website where you got the forum from. That said though, in most cases, you should be able to create a new Virtual Directory underneath the main website that runs in its own application pool and therefore doesn't interfere with the rest of your website. Best way to find out is to try it.
You really should be consulting the website where you got the forum from. That said though, in most cases, you should be able to create a new Virtual Directory underneath the main website that runs in its own application pool and therefore doesn't interfere with the rest of your website. Best way to find out is to try it.

That is exactly what I thought. I am now asking the forum folks aswell.

0 comments:

Post a Comment