ok I removed that and now I get:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 14:
Line 15:
Line 16:
Line 17:
Line 18:
Source File: c:\inetpub\wwwroot\forum\web.config Line: 16
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
So I removed and now get:
~~~~~~~~~~~~~~~~~~~~~~~~~
Server Error in '/' Application.
--------------------------------------------------------------------------------
Compilation 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: CS0117: 'System.Web.HttpApplication' does not contain a definition for 'SnitzPrefix'
Source Error:
Line 10: int forumid = int.Parse(Request.QueryString["ForumId"]);
Line 11: DataTable table=new DataTable("Forums");
Line 12: using(SqlDataAdapter sda=ApplicationInstance.CreateAdapter("SELECT * FROM "+ApplicationInstance.SnitzPrefix+"FORUM WHERE FORUM_ID=@p0"
Line 13: ,forumid))
Line 14: {
Source File: c:\inetpub\wwwroot\forum\RedirectForumToChat.Aspx Line: 12
Show Detailed Compiler Output:
C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.1.4322\csc.exe" /t:library /utf8output /R:"c:\winnt\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll" /R:"c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll" /R:"c:\winnt\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\winnt\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll" /R:"c:\winnt\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\winnt\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /R:"c:\winnt\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll" /R:"c:\winnt\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322\mscorlib.dll" /out:"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\050a1654\638a5594\p3-zqn1n.dll" /debug- /optimize+ /warnaserror /w:1 "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\050a1654\638a5594\p3-zqn1n.0.cs"
Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
c:\inetpub\wwwroot\forum\RedirectForumToChat.Aspx(12,81): error CS0117: 'System.Web.HttpApplication' does not contain a definition for 'SnitzPrefix'
c:\inetpub\wwwroot\forum\RedirectForumToChat.Aspx(12,30): error CS0117: 'System.Web.HttpApplication' does not contain a definition for 'CreateAdapter'
c:\inetpub\wwwroot\forum\RedirectForumToChat.Aspx(12,5): error CS0029: Cannot implicitly convert type '' to 'System.IDisposable'
c:\inetpub\wwwroot\forum\RedirectForumToChat.Aspx(23,55): error CS0246: The type or namespace name 'CuteSoft' could not be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\forum\RedirectForumToChat.Aspx(38,5): error CS0246: The type or namespace name 'CuteSoft' could not be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\forum\RedirectForumToChat.Aspx(39,5): error CS0246: The type or namespace name 'lobby' could not be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\forum\RedirectForumToChat.Aspx(40,5): error CS0246: The type or namespace name 'lobby' could not be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\forum\RedirectForumToChat.Aspx(41,43): error CS0103: The name 'lobby' does not exist in the class or namespace 'ASP.RedirectForumToChat_Aspx'
c:\inetpub\wwwroot\forum\RedirectForumToChat.Aspx(43,98): error CS0246: The type or namespace name 'lobby' could not be found (are you missing a using directive or an assembly reference?)
Show Complete Compilation Source:
Line 1: //------------------------------------------------------------------------------
Line 2: //
Line 3: // This code was generated by a tool.
Line 4: // Runtime Version: 1.1.4322.2032
Line 5: //
Line 6: // Changes to this file may cause incorrect behavior and will be lost if
Line 7: // the code is regenerated.
Line 8: //
Line 9: //------------------------------------------------------------------------------
Line 10:
Line 11: namespace ASP {
Line 12: using System;
Line 13: using System.Collections;
Line 14: using System.Collections.Specialized;
Line 15: using System.Configuration;
Line 16: using System.Text;
Line 17: using System.Text.RegularExpressions;
Line 18: using System.Web;
Line 19: using System.Web.Caching;
Line 20: using System.Web.SessionState;
Line 21: using System.Web.Security;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.WebControls;
Line 24: using System.Web.UI.HtmlControls;
Line 25:
Line 26: #line 2 "c:\inetpub\wwwroot\forum\RedirectForumToChat.Aspx"
Line 27: using System.Data;
Line 28:
Line 29: #line default
Line 30: #line hidden
Line 31:
Line 32: #line 3 "c:\inetpub\wwwroot\forum\RedirectForumToChat.Aspx"
Line 33: using System.Data.SqlClient;
Line 34:
Line 35: #line default
Line 36: #line hidden
Line 37:
Line 38:
Line 39: public class RedirectForumToChat_Aspx : System.Web.UI.Page, System.Web.SessionState.IRequiresSessionState {
Line 40:
Line 41: private static int __autoHandlers;
Line 42:
Line 43: private static bool __initialized = false;
Line 44:
Line 45: private static System.Collections.ArrayList __fileDependencies;
Line 46:
Line 47:
Line 48: #line 5 "c:\inetpub\wwwroot\forum\RedirectForumToChat.Aspx"
Line 49:
Line 50: protected override void OnInit(EventArgs args)
Line 51: {
Line 52: base.OnInit(args);
Line 53:
Line 54: int forumid = int.Parse(Request.QueryString["ForumId"]);
Line 55: DataTable table=new DataTable("Forums");
Line 56: using(SqlDataAdapter sda=ApplicationInstance.CreateAdapter("SELECT * FROM "+ApplicationInstance.SnitzPrefix+"FORUM WHERE FORUM_ID=@p0"
Line 57: ,forumid))
Line 58: {
Line 59: sda.Fill(table);
Line 60: }
Line 61: if(table.Rows.Count==0)
Line 62: {
Line 63: throw (new Exception("Not Found"));
Line 64: }
Line 65:
Line 66: string inkey = "Forum:" + forumid;
Line 67: foreach (CuteSoft.Chat.CuteChatLobby eachlobby in CuteSoft.Chat.ChatApi.GetLobbyArray())
Line 68: {
Line 69: if (eachlobby.Integration == inkey)
Line 70: {
Line 71: Response.Redirect("~/CuteSoft_Client/CuteChat/CH_MainForm.Aspx?Location=Lobby&LocationId="+eachlobby.LobbyId);
Line 72: Response.End();
Line 73: return;
Line 74: }
Line 75: }
Line 76:
Line 77: // create an new lobby , if you do not use this feature , don't copy this file to website .
Line 78: // throw (new Exception("Please modify this file and remove this exception if you want to make the forum has chat!"));
Line 79:
Line 80: DataRow row=table.Rows[0];
Line 81:
Line 82: CuteSoft.Chat.CuteChatLobby lobby = new CuteSoft.Chat.CuteChatLobby();
Line 83: lobby.Name = row["F_SUBJECT"].ToString();
Line 84: lobby.Integration = inkey;
Line 85: CuteSoft.Chat.ChatApi.CreateLobby(ref lobby);
Line 86:
Line 87: Response.Redirect("~/CuteSoft_Client/CuteChat/CH_MainForm.Aspx?Location=Lobby&LocationId=" + lobby.LobbyId);
Line 88: Response.End();
Line 89: }
Line 90:
Line 91: #line default
Line 92: #line hidden
Line 93:
Line 94: public RedirectForumToChat_Aspx() {
Line 95: System.Collections.ArrayList dependencies;
Line 96: if ((ASP.RedirectForumToChat_Aspx.__initialized == false)) {
Line 97: dependencies = new System.Collections.ArrayList();
Line 98: dependencies.Add("c:\\inetpub\\wwwroot\\forum\\RedirectForumToChat.Aspx");
Line 99: ASP.RedirectForumToChat_Aspx.__fileDependencies = dependencies;
Line 100: ASP.RedirectForumToChat_Aspx.__initialized = true;
Line 101: }
Line 102: }
Line 103:
Line 104: protected override int AutoHandlers {
Line 105: get {
Line 106: return ASP.RedirectForumToChat_Aspx.__autoHandlers;
Line 107: }
Line 108: set {
Line 109: ASP.RedirectForumToChat_Aspx.__autoHandlers = value;
Line 110: }
Line 111: }
Line 112:
Line 113: protected System.Web.HttpApplication ApplicationInstance {
Line 114: get {
Line 115: return ((System.Web.HttpApplication)(this.Context.ApplicationInstance));
Line 116: }
Line 117: }
Line 118:
Line 119: public override string TemplateSourceDirectory {
Line 120: get {
Line 121: return "/forum";
Line 122: }
Line 123: }
Line 124:
Line 125: private void __BuildControlTree(System.Web.UI.Control __ctrl) {
Line 126: }
Line 127:
Line 128: protected override void FrameworkInitialize() {
Line 129: this.__BuildControlTree(this);
Line 130: this.FileDependencies = ASP.RedirectForumToChat_Aspx.__fileDependencies;
Line 131: this.EnableViewStateMac = true;
Line 132: this.Request.ValidateInput();
Line 133: }
Line 134:
Line 135: public override int GetTypeHashCode() {
Line 136: return 5381;
Line 137: }
Line 138: }
Line 139: }
Line 140:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I have direct access to the server it's dedicated so if any changes you recomend making to the server I can do. Thanks