简体   繁体   中英

Deploying WPF Application with database

我制作了一个 Wpf 应用程序,我正在使用 linq to SQL 类,我也在 SQL Server 2012 中制作了我的数据库,所以有什么方法可以部署我的应用程序,使其可以在其他 PC 上运行?

Check your app.config file. Make sure your connection string contains:

  1. valid DataBase address
  2. Valid credential for the db

As your update:

whenever i make setup file and run on another pc it give me exception because sql server isnt installed on that pc

Either you need to deploy a database in internet, accessable by your app. Or you have to use an embedded sql db (eg add a db.mdf to your solution). I think this suit you better.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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