How to change ConnectionString name in web.config.

Last post 11-26-2007, 2:27 PM by vziukas. 4 replies.
Sort Posts: Previous Next
  •  11-13-2007, 11:04 AM 35033

    How to change ConnectionString name in web.config.

    Hi,

    I trying to merge Cute Live with our website. We are using oracle as a backend.
    The way how is Cute Live accesing Oracle is different from that that we use in our project
    thats why I need to have 2 ConnectionString. I try to use that CuteChat.OracleOleDb.ConnectionString
    but it is not working. Cute Live still looking for default ConnectionString.
    How to force Cute Live to work without default ConnectionString ?

    Thanks
  •  11-14-2007, 2:20 PM 35075 in reply to 35033

    Re: How to change ConnectionString name in web.config.

  •  11-14-2007, 3:04 PM 35076 in reply to 35075

    Re: How to change ConnectionString name in web.config.

    Guys,
    you are trying to create serious product but did not spend so much time on testing.
    Did you try your self to install live support on .NET 2.0 + oracle.
    All you advices are not good. And stanalone sample is not right in this case.
    Contact me if you want consultation how to do that. Because I run it under 2.0 + Oracle.
     
    Thanks
     
    Vytas

  •  11-20-2007, 9:57 AM 35232 in reply to 35076

    Re: How to change ConnectionString name in web.config.

     
    In the ChatProvider implementation code ,
    You can override the method and use another way to return the connection string :
    for example:
     
    public class ExampleProvider : ChatProvider
    {
     
    public override string GetConnectionString()
     {
      //return base.GetConnectionString();//the default implementation is "ConnectionString"
     
      //now use another way to return the string :
      return System.Configuration.ConfigurationSettings.AppSettings["AnotherConnectionString"];

     }
     
    ....
     
    }
     
     
  •  11-26-2007, 2:27 PM 35380 in reply to 35232

    Re: How to change ConnectionString name in web.config.

    Problem was that .NET 2.0 expect Global file in different location and did not take it if its in mail folder.
    Update your manuals in case if people using .net 2.0.

View as RSS news feed in XML