C# application in visual Studio does not connect to Sql database via network

Asked

Viewed 186 times

2

I’m facing a problem with my application. I made the application without any error, managed the installer, but when I run it, it does not connect to the bank via network, but in Visual Studio it connects.

I have already made the settings to enable TCP/IP and PIPES, put the door 1433 and a secondary in the Sql, I added the output and input to firewall ports, already activated the sharing in windows, and etc...

Note: I can connect from my machine via Sql to the database on the server, but the executable application cannot.

  • 2

    Victor, could you put your string Connection?

  • could you put your connection string to analyze us? and check if app.config has the same connection address as your connection string.

  • You need to recover the error code (debug) while displaying the message "DATABASE ERROR!". This will help identify the cause of the problem.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.