0

I'm a web developer building a windows console app for the first time in years. It reads a database, uses ClosedXML to create an Excel workbook, then mails the workbook.

App runs fine on my laptop. I'm using 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. 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.

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. Shouldn't app.config be included as part of the .EXE when I "Add Files" in IS?

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.

StanfordK
  • 64
  • 7
Nolo Problemo
  • 201
  • 3
  • 14

1 Answers1

0

The app.config is a separate file from the .exe.
You'll need to add the app.config to the installer as well.

Broots Waymb
  • 4,713
  • 3
  • 28
  • 51