web.config connection string for typed dataset in different assemb

Discussion in 'ASP .Net' started by =?Utf-8?B?VGVuRG90?=, May 12, 2006.

  1. I'm using a Object Data Source to provide data to an ASP control. The object
    dataset is a member of a separate assembly (project). All works well in test.

    When I deploy to production, I want to change the connection string to point
    to the production SQLServer. I don't see how to change the connection string
    in web.config. In the DataSet's project there's an app.config where all the
    connection strings are. However, when the website is compiled, at app.config
    is not available.

    Any ideas?

    Thanks in advance...
    --
    TenDot
    =?Utf-8?B?VGVuRG90?=, May 12, 2006
    #1
    1. Advertising

  2. Hi, I found an answer to this at:

    http://forums.asp.net/thread/1231319.aspx

    --
    TenDot


    "TenDot" wrote:

    > I'm using a Object Data Source to provide data to an ASP control. The object
    > dataset is a member of a separate assembly (project). All works well in test.
    >
    > When I deploy to production, I want to change the connection string to point
    > to the production SQLServer. I don't see how to change the connection string
    > in web.config. In the DataSet's project there's an app.config where all the
    > connection strings are. However, when the website is compiled, at app.config
    > is not available.
    >
    > Any ideas?
    >
    > Thanks in advance...
    > --
    > TenDot
    =?Utf-8?B?VGVuRG90?=, May 15, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nedu N
    Replies:
    1
    Views:
    1,775
    Chris Taylor
    Oct 31, 2003
  2. Nedu N
    Replies:
    2
    Views:
    2,142
  3. Replies:
    0
    Views:
    767
  4. coolconfidence
    Replies:
    5
    Views:
    338
    Richard Bos
    Sep 28, 2005
  5. =?Utf-8?B?Z2VvZ3J1dmVu?=
    Replies:
    1
    Views:
    506
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Oct 9, 2007
Loading...

Share This Page