c#winform应用程序中的部署问题 [英] Deployment issue in c# winform application

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

问题描述

您好我已经在c#中开发了winform应用程序它在may开发中工作正常我已经创建了安装程序包并部署在另一台PC(Server 2008)模块的一部分是获取excel文件显示数据网格中的所有记录能够做到所有这些,从某个位置获取excel文件,能够登录但是当保存到数据库时出现错误(System.IO.Filenotfoundexeption)。





请帮忙。

Hi I have developed winform application in c# it was working fine in may development pc i have created installer package and deployed in another pc (Server 2008) part of the module is to get excel file display all records in a datagrid and was able to do all of these, get the excel file from a certain location,was able to logged in but when saving to the database it got an error(System.IO.Filenotfoundexeption).


Please help.

推荐答案

由于完全缺乏,您无法确切地告诉您代码有什么问题详细说明您在错误发生时应该选择的内容以及该代码的外观。



错误的含义非常明显。你试图打开一个文件并且你的文件路径不存在。
There's no way to tell you exactly what's wrong with your code because of the complete lack of detail on what your choice is supposed to be found at the time of the error and what that code looks like.

The meaning of the error is quite obvious. You tried to open a file someway and the file path you have doesn't exist.


检查你的连接字符串...你使用数据集吗?
check your connection string...do you using dataset ??


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

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