[英]Missing file or directory after Installshield installation
I'm a web developer building a windows console app for the first time in years. 我是一名网络开发人员,多年来第一次构建Windows控制台应用程序。 It reads a database, uses ClosedXML to create an Excel workbook, then mails the workbook. 它读取数据库,使用ClosedXML创建Excel工作簿,然后邮寄该工作簿。
App runs fine on my laptop. 应用在我的笔记本电脑上运行良好。 I'm using Installshield LE with VS2015
. 我在Installshield LE with VS2015
使用Installshield LE with VS2015
。 I pointed the "Add Files" dialog to my bin\\Release
directory, and it got all my .DLLS, .XML, .EXE, etc. I copied the DiskImages\\DISK1
directory to my server. 我将“添加文件”对话框指向bin\\Release
目录,它获得了我所有的.DLLS,.XML,.EXE等。我将DiskImages\\DISK1
目录复制到了我的服务器。 It installs without error on my server, but when I RDP and execute from its shortcut, I get a System.ArgumentNullException: Value cannot be null
. 它安装在我的服务器上没有错误,但是当我RDP并从其快捷方式执行时,我得到了System.ArgumentNullException: Value cannot be null
。
I can't tell where the error is popping, but I suspect that since I get a lot of string values from the App.config file, it can't find that file, so it passes an empty string to a MailAddress constructor. 我无法确定错误发生的位置,但是我怀疑由于我从App.config文件中获取了很多字符串值,因此找不到该文件,因此它将空字符串传递给MailAddress构造函数。 Shouldn't app.config be included as part of the .EXE when I "Add Files" in IS? 当我在IS中“添加文件”时,app.config是否不应该作为.EXE的一部分包含在内?
Also on the "Add Folders" dialog I added a folder named "Documents", but it is nowhere to be found on the server file system. 同样在“添加文件夹”对话框中,我添加了一个名为“文档”的文件夹,但是在服务器文件系统上找不到该文件夹。 I must be configuring the setup wrong, but I don't know how. 我一定配置错误,但是我不知道如何。
The app.config is a separate file from the .exe. app.config是与.exe分开的文件。
You'll need to add the app.config to the installer as well. 您还需要将app.config添加到安装程序中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.