I made a program using C# and Winforms. For that program I created simple sql database on that same computer (local server). When program start it connect to database and read some data. Select, insert and update also works. But, when I come to part of program
that use reports something goes wrong, and when I start report, it load into report viewer (empty). When I click button to fill it with data i get error message:
"Unhandled exception has occurred... A network-related or instance-specific error occurred while establishing a connection to SQL server. The server was not found or was not accessible. Verify that the instance name is correct and that sql server is
configured to allow remote connection. (Provider SQL Network interfaces, error: 26 - error locating server/instance specified)"
So, program connect to database, which means that database exist and that connection string is ok. By the way, connection string is from app.config (after installing MyProgram.exe.config). I have 5 different reports and non of them work... Even the simplest
report, which have only one select query (without any other parameter) can't run.
On my computer everything works, every report, every other option. On client computer every other option works but all reports have problem. Client have different server name, but I changed that in config file. Is there any other file that I need to change?
I tried so far: uninstall server and make a new one, replace generic dataset with manually created, replace generic report with manually created, load report by code, and I am now without any other ideas.
Can someone help me? Considering that everything works on my comp, I think that code is ok, and considering that on client comp all other options work I think that connection string and database is not problem. So, where is problem? What am I missing?