connectionstring
-
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?
-
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?
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
-
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