YAFLogo

kgross
  • kgross
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
I tried to install the forum software under a virtual directory in IIS. I am evaluating the software for a possible integration project. I was unable to get the forum setup as a virtual directory due to the fact that my parent application is an ASP.NET 2.0 application. YAF was inheriting the web.config from the parent application. I tried adding the tag to the parent web.config, as well as clearing sections in the child web.config, nothing worked. I decided to try and setup the forum on its own IP address.

I was able to get through the installation wizard, but as soon as it initialized the database tables and tried to redirect me to the forum homepage, it get the following error:

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'Exception' could not be found (are you missing a using directive or an assembly reference?)

Source Error:



Line 4: public void Page_Error( object sender, System.EventArgs e )
Line 5: {
Line 6: Exception x = Server.GetLastError();
Line 7: YAF.Classes.Data.DB.eventlog_create(YafServices.InitializeDb.Initialized ? (int?)YafContext.Current.PageUserID : null , this, x );
Line 8: YAF.Classes.Core.CreateMail.CreateLogEmail( x );

If I add System. in front of Exception, the page compiles past this point but fails later on:

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0103: The name 'Convert' does not exist in the current context

Source Error:



Line 4:
Line 5:
Line 6: Line 7: UserName='<%# ((System.Data.DataRow)Container.DataItem)["ModeratorName"].ToString() %>' />
Line 8: ID="ModeratorGroup" runat="server" Visible='<%# Convert.ToInt32(((System.Data.DataRow)Container.DataItem)["


It looks like the YAF site is missing a System reference for the whole project. Does anyone know where I can add this reference or what needs to be changed to get the forum working?
Sponsor

kgross
  • kgross
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
Nobody has any suggestions?
herman_herman
14 years ago
Version?
Make sure you are using wright version of .NET framework.
kgross
  • kgross
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
YAF v 1.9.4, .NET framework 2.0/3.0/3.5
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button