This is a server program that is very similar to a number of other server programs I have developed and had no trouble running as a standalone.
When it starts it shows the "Stopped working" messagebox with the option to debug. When I run debug after the crash, it comes up with a message saying "InvalidCastException was unhandled, Conversion from string "" to type 'Integer' is not valid."
I have no idea where to find where this is occurring. I placed an error handling routine inside the ApplicationEvents to log the error, but it's not working. Other Application Events are being triggered, just not this.
The program is running inside its native folder, so it can't be that it's missing any dependencies.
Any advice would be appreciated!
Related
I want LoadLibrary() to show which DLLs are missing when it fails. According to the documentation, as long as you call SetErrorMode(0), Windows should automatically pop up an error message box showing the 1st missing DLL.
This does happen on Windows Server 2012: The program can't start because DLL2.dll is missing from your computer. Please reinstall the program to fix this problem
But it doesn't happen on Windows 10 Pro & Enterprise, and Windows 7 Enterprise. Is there some function or registry entry to turn it on? Or can I programmatically get the missing/unloadable DLL? GetLastError() doesn't seem to return that.
Some more details about what I'm trying to do. Earlier, all the DLLs used were loaded at startup. If a DLL couldn't load, there will be an error message in every version of Windows. Then I started using delay DLL loading which uses LoadLibrary(), but then the error message no longer shows, which is very frustrating for debugging problems in the field.
I'm using VBCCR14.dll Activex Common Control in order to support Unicode. In the developed machine it works perfectly but when the program is running from a different machine it gives an error saying that, "Error loading dll". I've also registered the dll in the other machine but still it gives the error. I've also tried to solve this problem, by referring this article.
http://www.vbforums.com/showthread.php?841929-VB6-ActiveX-CommonControls-(Replacement-of-the-MS-common-controls)
But still the error occurs. Could someone help me regarding this issue?
I've tried it with Visual basic 6.0 in Windows 10.
I'm using Visual Studio 2015 to debug a website running on a .NET framework. When setting break points in one of my .aspx.vb files it gives me an error saying:
"The break point will not be hit. No symbols have been loaded for this document."
Now I have solved how to fix this error by going to Debug -> Attach to Process then attaching it to the process of my IIS.
The issue is I have to do this every time I stop and restart debug mode. Is there anyway to get this process to automatically attach when I begin debugging?
The ReAttach extension gives you an easy way to ReAttaching your prior debug targets.
I am working on a project, when I deployed my project to a windows 7 workstation I am prompted with this error message. Any help is very well appreciated.. Thank you
Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click QUIT, the application will close prematurely.
An error occured creating the form. See Exception.InnerException for details. The error is: Method not found: 'Void CrystalDecisions.Windows.Forms.CrystalReportViewer.set_SHowCopyButton(Boolean)'.
If you're making a report for a 32-bit machine, you should try using the 32-bit version of the software. There could be some incompatibilities between the two which is a frequent issue when sharing files between 32-bit and 64-bit applications. This isn't to say it's the only possible issue, but it's a decent guess anyway.
You could also make sure that you have all dependencies for CR installed. Things like Visual studios redistributables and VB\C++ redistributables. Also, make sure that all of the dependencies are 32-bit, although my understanding is this occurring on the 32-bit machine anyway.
I just started developing for Windows 8 store. Even though I open a sample project and start debugging it displays this error.
An unhandled exception of type System.Exception occurred in Unknown Module.
Activation of the Windows Store app 'a9c71d52-8ba1-460a-aa8f-df5ea89f1efa_qpttb2q7b6s4m!App' failed with error The app didn't start.
The program '[2520] App8.exe: Managed (v4.0.30319)' has exited with code -532462766 (0xe0434352).
I have tried to remove references and adding them but they aren't happening. Kindly help me with this weird problem.
After lot of searching and not able to get an answer. I reinstalled Windows 8 and with a new version of VisualStudio everything is in rhythm now.