0

I have Visual Studio 2015, and I am trying to create an installation package for a product of mine for selling purpose.

I have tried Installshield Limited Edition for Visual Studio but with that, the installer can't access the database on my client's computer. i have installed sql server 2014 on client's computer and attatched the database file to it but i am faced with the following error

enter image description here

I am not sure how to add the Entity Framework library and SQL Server database as they are not picked up or accessed automatically.

1
  • Do you use EF or ADO.NET? They are completely different data-access technologies Commented Jan 8, 2017 at 20:48

1 Answer 1

1

From the error message you can clearly see:

.... Login failed for user 'SAWLAIN-PC...'

Your problem is a hard-coded connection string.

Sign up to request clarification or add additional context in comments.

6 Comments

how can i manupulate my conection string on the client's computer without having visual studio?????
@SaqlainNawaz Either use the app.config or make the connection string dynamic
using entity model, the connection string is made according to my PC. thats why when it is installed on any other PC it gives this error. i'm not getting how to execute my project on that PC without having visualstudio. Please help me in this regard.... i'm stuck here for too long...
if i edit only the app.config file then i have to rebuild the solution on client's PC. for which i need the visual studio... which i hav'nt
@SaqlainNawaz but still facing the same error. After doing what? Did you do what Camilo suggested? I.e. install the application. Then edit the app.config on the client's machine and supply the correct connection string.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.