Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. connectionstring

connectionstring

Scheduled Pinned Locked Moved WPF
csharpdatabasequestionsql-serverwcf
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    arkiboys
    wrote on last edited by
    #1

    I am developing a silverlight application. Project1 is the webhost i.e. wheer the default.aspx page is Project2 holds the silverlight pages. Project3 holds the wcf. I have set the connectionstring to sql server inside Project3 in the web.config All works fine. There is a separate project called DataLayer which I currently use inside my .net windows applications to connect to the database, etc. This project has the connectionstring to sql server saved inside the App.config Question: In the Project3, where wcf is used, I try to call the separate project I mentioned above to connect to the database. But the error message is The connection has not been initialized. Any thoughts on how to solve this please?

    D 1 Reply Last reply
    0
    • A arkiboys

      I am developing a silverlight application. Project1 is the webhost i.e. wheer the default.aspx page is Project2 holds the silverlight pages. Project3 holds the wcf. I have set the connectionstring to sql server inside Project3 in the web.config All works fine. There is a separate project called DataLayer which I currently use inside my .net windows applications to connect to the database, etc. This project has the connectionstring to sql server saved inside the App.config Question: In the Project3, where wcf is used, I try to call the separate project I mentioned above to connect to the database. But the error message is The connection has not been initialized. Any thoughts on how to solve this please?

      D Offline
      D Offline
      Dean Oliver
      wrote on last edited by
      #2

      Hi could you please supply the code. where you are directly calling the other project. because somewhere you are not initializing or opening the connection or that connectionstring from the app.config is not in your web.config in project 3. And the only way I can diagnose the problem. Is to see what you are doing else it's all based on assumptions on my part. thanks

      A 1 Reply Last reply
      0
      • D Dean Oliver

        Hi could you please supply the code. where you are directly calling the other project. because somewhere you are not initializing or opening the connection or that connectionstring from the app.config is not in your web.config in project 3. And the only way I can diagnose the problem. Is to see what you are doing else it's all based on assumptions on my part. thanks

        A Offline
        A Offline
        arkiboys
        wrote on last edited by
        #3

        Solved. thanks

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups