Answered by:
Publishing?

Question
-
I've published my project from Visual Studio. But when I test it on another computer, it comes up with an exception and it doesn't show any of the sql database information. How do I fix this? I put it on a thumb drive and transfered it from my computer to a different one. Does that have something to do with it?
As always, any help is appreciated. :)
Saturday, April 19, 2014 7:32 PM
Answers
-
It gave me a "Microsoft .Net Framework error has occured" "establishing connection to sql server. Server was not found, or was not accessible." "Error 52 - Unable to locate a local database Runtime installation".
You must have suitable support for your database installed on the computer where you installed the application. How you do this depends on the database that you are using. Here is one example (last topic):
http://msdn.microsoft.com/en-us/library/aa983340(v=vs.110).aspx
The details for your database provider will be similar.
- Proposed as answer by Frank L. Smith Sunday, April 20, 2014 12:53 AM
- Marked as answer by Leo (Apple) Yang Monday, April 28, 2014 6:50 AM
Saturday, April 19, 2014 11:03 PM
All replies
-
I've published my project from Visual Studio. But when I test it on another computer, it comes up with an exception and it doesn't show any of the sql database information. How do I fix this? I put it on a thumb drive and transfered it from my computer to a different one. Does that have something to do with it?
Information that is needed for a response to your query includes.
How did you publish the application?
Did you install it on the other computer (or just copy it)?
How did you install the database and what location is it at?
What is the error message?Saturday, April 19, 2014 9:20 PM -
How did you publish the Applicaiton?
I clicked Build > Publish... In the menu bar.
Did you install it on the other computer(or just copy it)?
What is the error message?
I put the Application Files Folder, the Application Reference, and the setup Files in a folder on my desktop, then copied it all onto a jump drive. Then put the drive to another computer, doubleclicked setup.
It gave me a "Microsoft .Net Framework error has occured" "establishing connection to sql server. Server was not found, or was not accessible." "Error 52 - Unable to locate a local database Runtime installation".
"How did you install the database and what location is it at?"
I honestly thought the setup would take care of that and I didn't specify any spot for the database, which might be my issue.
Saturday, April 19, 2014 9:41 PM -
It gave me a "Microsoft .Net Framework error has occured" "establishing connection to sql server. Server was not found, or was not accessible." "Error 52 - Unable to locate a local database Runtime installation".
You must have suitable support for your database installed on the computer where you installed the application. How you do this depends on the database that you are using. Here is one example (last topic):
http://msdn.microsoft.com/en-us/library/aa983340(v=vs.110).aspx
The details for your database provider will be similar.
- Proposed as answer by Frank L. Smith Sunday, April 20, 2014 12:53 AM
- Marked as answer by Leo (Apple) Yang Monday, April 28, 2014 6:50 AM
Saturday, April 19, 2014 11:03 PM