Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have coded a software that runs smoothly on windows 10 but it doesn't run on windows 7 for some reason and it shows me an error,and database on server

What I have tried:

https://s6.uupload.ir/files/untitled_soqj.png[^]
Posted
Updated 6-Nov-22 4:24am
v2
Comments
0x01AA 6-Nov-22 9:15am    
<deleted>
Dave Kreskowiak 6-Nov-22 11:14am    
This has nothing to do with the machine being either Windows 7 or Windows 10. This comes down to your network layout, whether the Win7 machine has a network route to the SQL Server. Your Win10 machine has a route to the server, but not the Win7 machine.

You haven't said anything about where the server is, and where these client machines are, or the network setup, if you've got the clients trying to connect over the internet, where these machines physically are in relation to each other, the network configuration of the SQL Server, ... nothing.

Read the error message, it's really very clear: "the server was not found or is not accessible".

So start by looking at your connection string and comparing that with your Win10 version, then use this: Simple SQL Connection String Creation[^] to build one that works.
 
Share this answer
 
Maybe one of the answers here applies to your situation: sql-connection-error-system-data-sqlclient-sqlexception-0x80131904[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900