configuration error authentication mode ="None" line

Last post 11-26-2010, 5:26 AM by dslm65. 9 replies.
Sort Posts: Previous Next
  •  05-13-2006, 3:57 PM 19113

    configuration error authentication mode ="None" line

     I am getting the following error messag. What am I doing wrong or what can I do to fix it? Thanks :)

    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 13: 		<compilation defaultLanguage="c#" debug="false" />
    Line 14: 		<customErrors mode="Off" />
    Line 15: 		<authentication mode="None" />
    Line 16: 		<trace enabled="false" requestLimit="100" pageOutput="false" localOnly="true" />
    Line 17: 		<sessionState mode="Off" />

    Source File: c:\inetpub\wwwroot\forum\web.config    Line: 15


    Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
  •  05-13-2006, 8:47 PM 19116 in reply to 19113

    Re: configuration error authentication mode ="None" line

    Hello
     
    Your server do not allow this section put into the web.config .
    (which defined in windir\microsoft.net\framework\version\config\machine.config)
     
    You could just remove it (<authentication mode="None" />).
     
    Regards , Terry
  •  05-14-2006, 4:44 AM 19118 in reply to 19116

    Re: configuration error authentication mode ="None" line

    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
  •  05-14-2006, 10:46 AM 19119 in reply to 19113

    Re: configuration error authentication mode ="None" line

    Hello:
     
    I think you haven't created IIS application for the wwwroot/forum ??
     
    Ohter wise you should put the web.config to wwwroot/ insead ?
     
    please check where the BIN direcory is ? wwwroot/bin ? wwwroot/forum/bin ?
     
    Regards , Terry .
  •  05-14-2006, 2:17 PM 19124 in reply to 19119

    Re: configuration error authentication mode ="None" line

    wwwroot/forum is not an iis application
    BIN directory is at wwwroot/forum/bin

    I made the change you suggested and now I get-- yes I know what 404 error is but I tripple checked and everything is there...:

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

    The resource cannot be found.
    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

    Requested Url: /forum/RedirectForumToChat.Aspx


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032




    after re-reading instructions I see it says snitz_folder as the destination for all these, is it necessary to be named as such or can the folder be called anything, my forum folder is called "forum" simply. Thanks.
  •  05-14-2006, 10:36 PM 19129 in reply to 19124

    Re: configuration error authentication mode ="None" line

    Slap :
     
    If you don't want to set the wwwroot/forum to IIS application , that you need to move the file to wwwroot/ instead of wwwroot/forum.
     
    so the bin directory should be wwwroot/bin , the web.config should be wwwroot/web.config ,
    the CuteSoft_Client should be wwwroot/CuteSoft_Client ..  etc .
     
    And you need change the asp code for the path changing too .
     
    Hope this helps .
     
    Regards ,Terry .
  •  05-15-2006, 2:43 AM 19138 in reply to 19129

    Re: configuration error authentication mode ="None" line

    <BLOCKQUOTE><table width="85%"><tr><td class="txt4"><img src="/Themes/default/images/icon-quote.gif">&nbsp;<strong>cutechat wrote:</strong></td></tr><tr><td class="quoteTable"><table width="100%"><tr><td width="100%" valign="top" class="txt4"><div>Slap :</div>
    <div>&#160;</div>
    <div>If you don't want to set the wwwroot/forum to IIS application , that you need to move the file to wwwroot/ instead of wwwroot/forum. </div>
    <div>&#160;</div>
    <div>so the bin directory should be wwwroot/bin , the web.config should be wwwroot/web.config , </div>
    <div>the CuteSoft_Client should be wwwroot/CuteSoft_Client ..&#160; etc .</div>
    <div>&#160;</div>
    <div>And you need change the asp code for the path changing too .</div>
    <div>&#160;</div>
    <div>Hope this helps .</div>
    <div>&#160;</div>
    <div>Regards ,Terry .</div></td></tr></table></td></tr></table></BLOCKQUOTE>

    I did set the wwroot/forum as an IIS application, I will move everything to wwwroot and and set wwwroot as an iis application and report back with what I get. As for the asp code for the path changing it's simply the way I access the chat I assume which will be: http://www.weeweeslap.com/RedirectForumToChat.Aspx?ForumId=4
    I shall reply ASAP. Thanks!
  •  05-15-2006, 3:58 AM 19140 in reply to 19138

    Re: configuration error authentication mode ="None" line

    worked flawlessly moving everything to the root folder I wonder why it wont work in the subfolder though :\ Thanks for the help, I will stress test the chat to see how much it can handle as far as users and server performance the next few days and decide on a purchase. Thanks again.
  •  05-17-2006, 1:32 AM 19233 in reply to 19140

    Re: configuration error authentication mode ="None" line

    Slap,
     
    First the integration instruction for Snitz forum is updated based the client feedbacks (included your feedbacks).
     
    Please check:
     
     
    Like terry said, it's not necessary to install CuteChat in the root of your site.
     
    You can install Cute Chat under a virtual directory, like abc.com/forums. Just make sure forums folder is configured as a virtual directory. Otherwise IIS will look for the CuteChat.DLL in the root bin folder.
     
    Hope it helps.
     
     

     
    If your forum is installed under a virtual directory, like abc.com/forums, you should copy files to the virtual directory (abc.com/forums/...).

    If your forum is located at the root of your subdomain, like forums.abc.com, you should copy files to the root of your subdomain (forums.abc.com/...).

    If your forum is located at the root of your domain, like abc.com, you should copy files to the root of your domain (abc.com/...).
     
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  11-26-2010, 5:26 AM 65170 in reply to 19116

    Re: configuration error authentication mode ="None" line

    Hi Terry
     
    You wouldnt believe how useful this contribution of yours has been !!
     
    I was interacting between hosting company and website programmer trying to sort this problem out for last 1 week.
     
    Thanks again !!
View as RSS news feed in XML