Missing File Crash on Crystal Reports C# Application?
Posted on 2010-09-07
Hello again everyone. I built an application for a client in C++ which writes to an access database and opens a separate executable written in C# when the user prints (the easiest way I found to add in crystal reports support). Since the database and C# executable are written to, they are located in a publicly accessible folder (C:\Users\Public\Documents\) on Windows 7, and All Users on Windows XP.
The problem is that whenever the user attempts to run the C# program, it crashes. A generic error message pops up saying that the program as stopped working. One of the clients machines indicated that there was a "FileNotFound" exception, so I used Dependency walker to see what might be missing. The typical suspects of "IEFRAME.dll" and "SHLWAPI.dll" come up, but that's all it tells me. I then confirmed on the internet that these were harmless suspects. Dependency Checker says it isn't missing anything. I tried using WinDB after getting a Kernal dump from one of the clients, but it said the error was in Sys32 (which likely means the system was asked to do something it couldn't). Trying to run the C# program directory (as opposed to through the main program) results in the same error. The C++ program works perfectly, and the necessary support files (.NET Framework 3.5, VS Redistributable 2008) work on a variety of client PCs without problem. The C# executable used to work just fine until I edited it to add a few new columns but as far as I know this shouldn't have changed requirements.
Any suggestions on what I can do from here to narrow down the problem? If you would like more information, whether it be details of the dump, or anything along those lines, please ask. I'd be happy to provide it. Thanks in advance for your help.