none
dll app.config and application app.config RRS feed

  • Question

  • dll1 = database access layer(linq to sql)

    dll2 = save data to database(reference dll1)

    Application = start and stop jobs using dll2(reference dll1 and dll2)

    hi, i 3 project in a solution dll1, dll2, and Application, but when i debug my Application, all the dll still loads the config from the dll project and not the config from the application project. shouldn't the dll be using the connectionString from the application config file? thanks in advance....

    • Edited by satuday Thursday, February 14, 2013 10:31 PM
    Thursday, February 14, 2013 9:28 PM

Answers

  • after hours of hair putting...finally found it...http://www.knowdotnet.com/articles/settingsdesigner.html
    • Edited by satuday Friday, February 15, 2013 5:08 PM
    • Marked as answer by satuday Friday, February 15, 2013 5:08 PM
    Friday, February 15, 2013 5:08 PM

All replies

  • By default it should be application configuration file of the executable. Are you sure it's the dll configuration file that is read? You can test it by changing expected configuration so that it won't work, for example by clearing all the connection string configurations from it if you have not tried that yet.

    Friday, February 15, 2013 6:07 AM
  • yes, i changed the connstring in the dll config file to a empty string and the application time out when it start.  i even copied the debug folder to my desktop, deleted every other file except the app.exe, app.exe.config and the dlls and still the same, its like the dll somehow retain the connstring from the config file of its own project....
    Friday, February 15, 2013 2:29 PM
  • after hours of hair putting...finally found it...http://www.knowdotnet.com/articles/settingsdesigner.html
    • Edited by satuday Friday, February 15, 2013 5:08 PM
    • Marked as answer by satuday Friday, February 15, 2013 5:08 PM
    Friday, February 15, 2013 5:08 PM