Windows应用程序中的安装问题 [英] Setup Problem in windows application

查看:89
本文介绍了Windows应用程序中的安装问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



我已经在我的系统中开发了windows应用程序并将其部署为我的连接字符串..但是我安装了另一个系统出现了2个问题:



1.此系统需要.Net框架4

2.连接字符串问题和

3.我怎么样make setup sqlserver进入我的应用程序..我如何在我的应用程序中给出连接字符串







有了问候,

Vivek .R

Dear Frnds,

I have developed windows appliction in my system and deployed it my connection string.. but i installed another system 2 problems arised:

1. .Net framework 4 is needed to this system
2. connection string problem and
3. how i make Setup sqlserver into my application.. how i give connectionstring in my application



With Regards,
Vivek .R

推荐答案

检查我过去对类似问题的答案

如何使用Sql Server部署C#windows应用程序? [ ^ ]

问题在Windows应用程序设置C#.net [ ^ ]
Check my past answers for similar questions
How to deploy C# windows application With Sql Server?[^]
Problem In windows application setup C#.net[^]


要解决与.net框架工作相关的问题,您应该从属性的先决条件选项卡中选择.Net框架4你安装文件项目。另外,请确保在先决条件选项卡下选择从我的应用程序的相同位置下载先决条件。



要解决连接字符串相关问题,请更换数据源名称在带有点符号或(localhost)的连接字符串中(当前数据源名称表示您的系统名称),因此您的连接字符串如下所示

数据源=。\sqlexpress;初始目录= Dbname;集成安全性=假;用户ID = sa;密码=密码
For solving issue related to .net frame work u should select .Net framework 4 in the 'Prerequisites' tab from the properties of you setup file project . Also make sure that u select 'Download prerequisites from the same location as my application' under the prerequisites tab.

For solving connection string related issue u should replace the datasource name in connection string with a dot symbol or (localhost) (currently datasource name denotes your system name) so your connection string becomes as follows
"Data Source=.\sqlexpress;Initial Catalog=Dbname;Integrated Security=False;User ID=sa;Password=password"


这篇关于Windows应用程序中的安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆