简体   繁体   English

Installshield安装后缺少文件或目录

[英]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.

相关问题 installshield在安装过程中写入文件 - installshield write to file during installation 使用InstallShield安装我的应用程序后,我的sqlite .db文件被保存在AppData目录中。 这是为什么? - After using InstallShield to install my app my sqlite .db file is being saved in the AppData directory. Why is that? InstallShield exe应在安装后静默启动特定的exe - InstallShield exe should silently start specific exe after installation C#项目-InstallShield,安装后运行时出现MySql错误 - C# Project - InstallShield , MySql error when run after installation 使用InstallShield Limited Edition Project生成.exe文件后,缺少System.Data.SqlServerCe.dll SQL Server CE 3.5参考 - System.Data.SqlServerCe.dll SQL Server CE 3.5 reference missing after generating .exe file using InstallShield Limited Edition Project InstallShield缺少依赖项 - InstallShield Missing Dependencies 缺少目录和文件信息 - Missing directory and file info 使用installshield安装Windows服务 - Windows Service Installation using installshield 在 InstallShield 安装期间导入 SSL 证书后,无法以编程方式将 SSL 证书与 IIS 中的绑定关联 - Unable to associate an SSL certificate with a binding in IIS programmatically after importing it during an InstallShield installation 使用VS 2013安装InstallShield LE后,Windows服务未出现在服务列表中 - Windows Service is not appearing in services list after installation using InstallShield LE From VS 2013
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM