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.
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.
Yesterday, I could work with Visual Studio 2010 without any problem. However, today after I turned on the computer and tried to open my project (Web application with Visual Basic.NET) on VS2010 again, I got a message box showing as below:
Later, I found out after I tried deleting suo file that this message box will show up whenever I open some file in Visual Studio so I tried to run the application. Then, I found another message box popped up as below:
And after I close the message box, I finally got this window
It says:
Compilation Error
Compiler Error Message: The compiler failed with error code -1073741511.
I have searched for the solution through the internet. I have found a few methods that might solve the solution such as scanning for virus, using clean boot. I have also tried repairing and uninstalling VS2010 and .NET framework but none still work. Right now, I have no idea what I should to do make it work again.
Anyway, I realized that there is Windows auto update when I turned off the computer. Not so sure if this related to the problem (I used Window 8.1).
After formatting Drive C to reinstalling everything again, I found out that the reason might be Windows update. I have started from reinstalling Windows 8, all necessary programs (except Visual Studio and SQL Management Studio) and all window updates required for upgrading to Windows 8.1.
When I successfully got to Windows 8.1, I created system restore point and try installing VS2010 and all windows update. The result had caused the same error I posted in this thread.
After that, I restored back to original state and installed VS2010 first. Then installed some of windows updates. This time, I decided to install all updates except the ones that have publish date after 10/11/2015. The result is satisfied. I don't get this error again.
Later, Hans Passant help me find the actual cause of this problem. Please see this link:
Why do I get an error for "__CrtGetFileInformationByHandleEx " when I try to compile
I would like to run a .exe file made with visual studio 2003 but I get an error every time I run it on a windows 7 machine, vista machine, and xp machine. The error on Windows 7 and vista says "application has stopped working" and then makes me close the error box.
In windows xp it's a little different error, "the application failed to operate (0xc0000135) Click on OK to terminate the application."
That error code seems to indicate the application failed to initialize correctly.
It is possible that the anticipated .NET version is not present.
As far as I know, VS 2003 by default compiles against the .NET 1.1 library. There is no straightforward way of installing this on a Windows 7 or Vista box. Do you need to compile it against the .NET 1.1 library, or can you load it in VS2005, change the output .net version to 2.0 or higher, and recompile the application?
If you have the source code to the application, try running the application in debug mode and stepping through line by line until you find the exception. If you do not have the source code, possibly try running the application in a couple different compatibility modes. Another option to try is to check the windows event log for anything more specific.
If you want to get really deep into it, you can use SysInternals ProcMon.exe and filter on the failing exe to view the WinAPI calls that are happening during the failure.
Also, a basic search of forums shows that error is usually accompanied with framework issues. Either recompile the application or check out what your required framework is in the VS2003 project settings.
The question really says it all. For one project I am working on, the Visual Basic Compiler crashes resulting in me having to restart my IDE.
It looks like it crashes when copying a PDB file and XML file for the web site for obj/debug to the output folder.
Has anyone experienced similar crashes? If so how did you repair it?
Are there any crash logs stored anywhere??
I am using visual Studio version
8.0.50727.762 (SP .050727-7600)
After contincually hitting send error report to microsoft I finally got a little message box saying "We think this might be your problem" with this Link
I believe this is my problem... I have still to obtain the hot fix
Do you actually get an error message or code when it crashes, or do you just get the "Visual Studio stopped working" error message?
I'd second trying to uninstall, reinstall, and reapply SP1, just to make sure it isn't something with your installation. I've never had the VB compiler crash on me, and I'd imagine that permissions problems and other exceptions moving a file would be completely covered within the compiler's internals.
You can try using the event viewer in Administrative Tools to see if any logs were recorded.
Looks like you aren't running Visual Studio 2005 SP1. We had tons of VBC crashes before SP1 -- it was a wonder they even made to RTM on the product. Just terrible. Install Service Pack 1 and your problems will most likely go away.
Have you already tried cleaning your solution/project?
Sometimes the .suo, .ncb and other files maintained by Visual Studio get corrupted resulting in crashes during complilation or debugging.
Simply delete .SUO file and get Nirvana :)