简体   繁体   English

部署包含实体框架和SQL Server 2014的项目

[英]Deploy a project that includes entity framework and sql server 2014

I have Visual Studio 2015, and I am trying to create an installation package for a product of mine for selling purpose. 我有Visual Studio 2015,并且试图为我的产品创建安装包以进行销售。

I have tried Installshield Limited Edition for Visual Studio but with that, the installer can't access the database on my client's computer. 我尝试了Visual Studio的Installshield限量版,但与此同时,安装程​​序无法访问客户端计算机上的数据库。 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 我已经在客户端计算机上安装了sql server 2014,并向其附加了数据库文件,但遇到以下错误

在此处输入图片说明

I am not sure how to add the Entity Framework library and SQL Server database as they are not picked up or accessed automatically. 我不确定如何添加实体框架库和SQL Server数据库,因为它们不会自动拾取或访问。

From the error message you can clearly see: 从错误消息中,您可以清楚地看到:

.... Login failed for user 'SAWLAIN-PC...' ....用户“ SAWLAIN-PC ...”的登录失败

Your problem is a hard-coded connection string. 您的问题是硬编码的连接字符串。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM