The Problem
I have a dll compiled under VS2015.
I have a source code(that using the above dll) at VS2008.
The project compiled but not running (get run time error).
when i try to debug it, i got error at CDialog::OnInitdialog()
i got the follow exception:
Unhandled exception at 0x788b2db6 (mfc90u.dll) in prog.exe: 0xC0000005: Access violation reading location 0x00000000.
i try to update my project to 2015 and its work well, but for compatibility with other project i need to run it under vs2008.
Any suggestions?
Related
I am trying to add a reference to a dll, but when I compile the project I get:
Compiler Error Message: The compiler failed with error code -1073741819.
I have tried:
changing the security permissions on the dll to allow full control
running visual studio as administrator.
I have added the dll with copylocal = false, but it fails at runtime with a "file not found" error.
I created a separate project with the same framework version (4.5) and was able to add the dll without any trouble, but unfortunately I need to add it to the existing legacy project.
The legacy project source files are in GitHub, but the bin folder where I am adding the DLL to is not in Github.
I am currently updating a VB.NET application with Visual Studio 2013 that possibly was originally created on VS2010 or VS2012.
This application uses a Network SQL Database
Everything goes fine up to the point of installing when just shows an error message. that says the Assembly 'Microsoft.VisualBasic.Shell.9.0' version 2.0.0.0
is required and then will not let me finish the installation.
The project has been exported using the Visual Basic tool [OneClick]
I have already checked the References list on the Project menu, and is not included there. Also not available to be added.
The project requires the Microsoft Framework 4.5, so it seems that the Shell v2.0.0.0 is pretty old...
Do you have any suggestions, this kept me scratching my head already quite a while...
I finally figured it out.
I am not too sure if this is the right solution or not but it worked for me. Hopefully this will help someone else.
It turn out to be a error with the framework I was compiling the project (v4.5),
I was trying to install it on a Windows 7 machine with a framework installed up to v4.0. I cant understand why this error message showed up instead of telling me the framework version required for the software was not installed.
But anyways, I changed the version on the compiler, build and export again. Another error pop up but it was because references to the DLL for the different framework version were not included in the project. After including them and set the value for "Copy to Local" to true, the installation worked like a charm.
So I got my program up and working.
I encountered a Visual Studio error while using Visual Basic. All my programs refuse to compile and run. here is the error stated
Error while trying to run project. Could not load life or assembly
'myprogram' or one of its dependencies. The module was expected to
contain an assembly manifest
I tried switching the framework etc. but to no avail.
Try this :
Turn off your firewall and/or antivirus and create a new project with NOTHING added to it.
Try to run the project, clean.
If you still have that error, it means that your VB.NET is corrupted or broken. You will have to reinstall.
If you do not get the error when your firewall/antivirus is off, then it's your firewall/antivirus causing the problem.
I've got a project that uses a third party OCX. The OCX was recently updated with a new method. I'm trying to insert code that utilizes that new method:
EPS.Refresh_IO_Link(ControllerRow("ControllerPort"), ControllerRow("ControllerSettings"))
It compiles fine, but when I try to run it from within VS2010 it generates the following error:
'Refresh_IO_Link' is not a member of 'AxEPSIO.AxctlEPSIO'.
This is not true. It shows up in Intellisense, and if I do a rebuild the error goes away. However running it in debug mode always generates the error.
I've tried cleaning and rebuilding the solution, but have the same error each time.
DLL Hell. Remove the reference to the .ocx in the project, and then re-add it. If the .ocx was not compiled with binary compatibility, then you are likely still referencing the old version of the .ocx. Also, make sure the new .ocx is registered on your PC (regsrv32.exe).
I installed VB6 onto my machine.
Whenever I open VB6 editor, it is asking for a "Dell Resource" CD
When I open VB6 Project. It gives me errors saying
SVGControl.dll could not be loaded
Googling tells that Adobe SVG viewer needs to be present. But installing that does not solve the problem. This dll is present in System32, but when I register, it throws a LoadError.
Another error saying crystl32.dll could not be found. I installed Crystl32.exe from VB installer. But that was not successful. It shows error like Ordinal 1132 could not be located in DLL CRPE32.dll. Also, upon copying this dll to system32 and registering, it throws LoadError.
Any ideas on how to solve these errors?
What OS are you using? If Vista/Win7 uninstall and rerun the install "As Administrator"
Possible fix for the crystl32 error
I installed VB6 on a machine without .NET. The Crystl32.exe installation was successful. Now the error 1 is solved.
However when i open a VB 6 project I get the following errors:
1. SVGControl cannot be loaded
2. Crst32.ocx cannot be loaded