Access DB

Last post 02-21-2008, 3:18 PM by Scottswe. 7 replies.
Sort Posts: Previous Next
  •  02-20-2008, 10:39 AM 37187

    Access DB

    I am trying to make sense of your documentation for using LiveSupport with an Access DB.
     
    Here is what the documentaion states:
     

    Download Cute Chat and Web Messenger integration package

    Cute Chat and Web Messenger integration package can be downloaded at
    http://CuteSoft.net/download/CuteChat3IntegrationPackage.zip.

    Download Cute Chat and Web Messenger Access Database

    Cute Chat and Web Messenger Access Database can be downloaded at
    http://CuteSoft.net/download/Access_CuteChat.mdb.

    Modify Cute Chat queryProviderName.


    Open CDQ.config under CuteSoft_Client\CuteChat\CDQ folder and change

    <configuration queryProviderName="SqlClient"></configuration>

    to

    <configuration queryProviderName="MSAccess"></configuration>
     
    I don't quite understand what to do with the Integration Package.  Do I copy it over my LiveSupport installation or  just the CDQ folder? 
    Do I rename the "Access_cutechat.mdb" to "Cutechat4.mdb"
     
    Please clarify the steps.
     
    Just as a comment, it seems to me that editing the web.config file to point to the acces DB would do the trick, but that is maybe wishful thinking? :)
     

    Scott
  •  02-20-2008, 10:51 AM 37189 in reply to 37187

    Re: Access DB

  •  02-21-2008, 10:20 AM 37231 in reply to 37189

    Re: Access DB

    Adam,
    There has got to be a step missing in your Access DB soultion page.
     
    Correct me if I am doing something wrong.
     
    I downloaded http://CuteSoft.net/download/Access_CuteChat.zip and renamed it to CuteChat4.mdb then copied the file to the /access directory.
    I then checked the Web.Config file and made sure the path was set correctly.
     

    <?xml version="1.0"?>
    <configuration>
     <appSettings> 
      <add key="DefaultAdminUsername" value="admin" />  
      <add key="ConnectionString" value="server=(local)\portal;uid=test;pwd=test;database=CuteChat4;connection reset=false;"/>

        <!--
     <add key="DatabaseType" value="MSAccess" />
      <add key="MSAccessFilePath" value="./access/CuteChat4.mdb" />
      -->   
        <!--
      <add key="DatabaseType" value="OracleOleDb" />
      <add key="ConnectionString" value="Provider=OraOLEDB.Oracle;Data Source=orcl;User Id=sysman;Password=admin;"/>
      -->
     </appSettings>
     
     
    Now I am getting the error:
     
       

    Server Error in '/fastchat/access' Application.

    An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

    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.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

    Source Error:

    Line 209:			using(System.Data.IDbConnection conn=Instance.CreateConnection())
                Line 210:			{
                Line 211:				conn.Open();
                Line 212:
                Line 213:				using(System.Data.IDbCommand cmd=conn.CreateCommand())

    Source File: d:\hosting\inetguys\fastchat\access\Global.asax    Line: 211

    Stack Trace:

    [SqlException (0x80131904): An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)]
                System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +739123
                System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
                System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +685966
                System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +109
                System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +383
                System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +181
                System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170
                System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +359
                System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28
                System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424
                System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
                System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +496
                System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
                System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
                System.Data.SqlClient.SqlConnection.Open() +111
                ASP.ExampleProvider.GetUserInfo(String loginName, String& nickName, String& password, Boolean& isAdmin) in d:\hosting\inetguys\fastchat\access\Global.asax:211
                ASP.ExampleProvider.GetUserInfo(String loginName, String& nickName, Boolean& isAdmin) in d:\hosting\inetguys\fastchat\access\Global.asax:177
                CuteChat.ChatProvider.GetUserInfo(String loginName, String& nickName) +26
                ASP.login_aspx.LoginButton_Click(Object sender, EventArgs e) in d:\hosting\inetguys\fastchat\access\Login.aspx:84
                System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
                System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
                System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
                System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
                System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
                System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
                


    Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

    Scott
  •  02-21-2008, 10:47 AM 37236 in reply to 37231

    Re: Access DB

    You didn't set DatabaseType to MSAccess.
     
     <add key="DatabaseType" value="MSAccess" />

    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

  •  02-21-2008, 12:04 PM 37242 in reply to 37236

    Re: Access DB

    I didn't?
     
    If you look at my previous post I have the line:
     
        <!--
     <add key="DatabaseType" value="MSAccess" />
      <add key="MSAccessFilePath" value="./access/CuteChat4.mdb" />
      -->   
     
    Did I miss putting it in somwhere else?

    Scott
  •  02-21-2008, 2:46 PM 37253 in reply to 37242

    Re: Access DB

      <!--
     <add key="DatabaseType" value="MSAccess" />
      <add key="MSAccessFilePath" value="./access/CuteChat4.mdb" />
      -->   
     
    Should be:
     
      <!--
     <add key="DatabaseType" value="MSAccess" />
      <add key="MSAccessFilePath" value="./access/CuteChat4.mdb" />
      -->   

    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

  •  02-21-2008, 3:18 PM 37256 in reply to 37253

    Re: Access DB

    Adam you rock!
     
    Sorry I missed that the first time around.
     
    It now works like a champ!
     
     

    Scott
View as RSS news feed in XML