Click here to Skip to main content
15,891,938 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi everybody ... i want ur help about this problem ... i created a tiny project of Company Stores and it's run very well on my Computer, But when i run it on another computer, this message appears .

( 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 connections. (provider; Named Pipes provider, error: 40 - Could not open a connection to SQL Server )

or this

( An attempt to attach an auto-named database for file ( Folder path\xCompany.mdf ) failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. )
- i want run my application in any client machine without any problems and without move my application files to previous folder..
Posted
Updated 23-Jul-13 16:30pm
v2
Comments
Garth J Lancaster 23-Jul-13 22:46pm    
How is connectivity defined between your 'tiny' project and the database ?

It seems that when you've deployed your project to the 'other computer', you havnt edited the config to point to wherever your databse is hosted
Sergey Alexandrovich Kryukov 23-Jul-13 22:48pm    
Well, such things happen, especially if you did something incorrectly. I would say, not enough information...
—SA
beljk 24-Jul-13 1:27am    
i want run my application in any client machine without any problems and without move my application files to previous folder..
Sergey Alexandrovich Kryukov 24-Jul-13 1:45am    
I know that you want that, and that would be easy enough, but face it: right now you screwed up something, and we cannot see what exactly. As I say, not enough information.
—SA
ahmad zrein 24-Jul-13 1:23am    
check the connecting string, change it to the new deployed database server

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