Missing appSetting:CuteChat.SqlClient.ConnectionString

Last post 04-26-2007, 3:48 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  04-21-2007, 11:32 AM 28666

    Missing appSetting:CuteChat.SqlClient.ConnectionString

    whileupgradign to ASP.net 2 i got this error
    "Missing appSetting:CuteChat.SqlClient.ConnectionString "
    i use SQL 2005 , ASP.net2 , Win 2003
    i have added the ap settings in my web.config on the root:

    <add key="ConnectionString" value="Server=xxxxxx;Database=yyyyyyy;Persist Security Info=True ;integrated security=sspi;" />

    My Global .asax looks like this :

    <%@ Application Language="C#" %>

    <%@ Import Namespace="System.Threading"%>

    <%@ Import Namespace="System.Globalization"%>

    <%@ Import Namespace="System.Security.Principal"%>

    <%@ Import Namespace="System.Data.SqlClient" %>

    <%@ Import Namespace="Utils" %>

    <script runat="server">

     

    #region Code - CuteChat Interfaces Implementation - For Integration

    public string GetConnectionString(CuteSoft.Chat.UserIdentity user)

    {

    return Utils.strConnection; // this is the global connection strin thta the whole system uses

    }

    .......... the other part is almost as is  the demo i got.

    bu still it never run ,any help in that .

  •  04-26-2007, 3:48 PM 28898 in reply to 28666

    Re: Missing appSetting:CuteChat.SqlClient.ConnectionString

    alir,


    Change:

    public string GetConnectionString(CuteSoft.Chat.UserIdentity user)

    {

    return Utils.strConnection; // this is the global connection strin thta the whole system uses

    }


    to:

    public string GetConnectionString(CuteSoft.Chat.UserIdentity user)

    {

        return System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"];

    }



    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

View as RSS news feed in XML