VB6 Run-time error 429 - vb6

I'm running an old VB6 report. When I run it I get Run-time error '429': ActiveX component can't create object.
After clicking ok, I get: Error 2108: An error occurred while executing control script.
I've narrowed it down to in the .rpt object I'm getting the date with =Now(), the page number with ="Page " & rpt.txtPageNumber.DataValue & " of" (so it says "Page 1 of...").
These are Field objects in the report object with the "DataField" property set to those two scripts respectively.
I have tried registering any and all .ocx and .dll files that I have found on while looking for an answer online, but I don't know what file controls these specifically.
The other confusing thing is that in the same VB project I am calling these scripts on many reports in the exact same way, but this is the only report that throws the error. If I remove these scripts on the report, it will run without issue. I would appreciate any direction that anyone can give me.
If you would find any other information helpful to the issue, let me know and I will provide it.

wiaaut.dll was missing out of the System32 folder. I used Process Monitor to get the GUID that my application was looking for and tracked it back to this assembly.
Copying this assembly into the system folder and registering it with regsvr32 solved my problem.

Related

i am facing error while running uipath bot related to Excel

I am facing the issue while running EXCEL related bot in the UIPATH tool. The error which I am facing is given here[20.4.1
Message: Job stopped with an unexpected exit code: 0xC0000005
Exception Type: System.Exception
RemoteException wrapping System.Exception: Job stopped with an unexpected exit code: 0xC0000005]
How can I resolve this issue?
Lots of questions in your question...but I've had issues similar to yours before and they were caused by the following:
Kill Excel - doing a kill Excel process while Excel was doing something at the time or in the background. I usually add Delays of 5-10 seconds before doing any kill Excel.
Accessing/performing an Excel activity or action without the necessary data present. So the example that comes to mind is if you try to update a Pivot Table, but the pivot table is linked to another file (call it Source.xlsx)...so if this Source.xlsx was not downloaded, then Excel would prompt an error while performing the update Pivot table activity. So pretty much, if you try to perform an Excel activity without the necessary files or data that you would use on a real scenario, then it will give you an error.
Settings...so from your antivirus to Excel itself, there can be settings "blocking" something that is used to perform the process you want and that could be why you are getting the error.
These are all general answers to a very broad question...my advice is to check again the logic of your bot...debug and check that all files are downloaded/data is present accordingly before doing the Excel activity (you can use break points). You can also try googling about the error# you-re getting :)
Finally, If you decide to use macros of Excel in your bot, make sure that these macros have error handling, otherwise your bot might give unexpected errors or get trapped in a loop...https://excelmacromastery.com/vba-error-handling/ can be used as reference.
Go to Manage Package and select the excel package and install 2.7.2 package and save it.
I faced the same problem and installed v2.7.2 package and it worked for me.
Refer below link for more info.
https://forum.uipath.com/t/remoteexception-wrapping-system-exception-job-stopped-with-an-unexpected-exit-code-0xc0000005/173595/16
screenshot

VB6 code not running on other machines with "Error in loading DLL" error

I modified my vb6 project to support unicode by using CyberActiveX UniListView100 (UniListView.ocx) controller. I updated my listview with uniListview and project is working well on my machine. But when I try to run it on another machine, it is giving 'Error in Loading DLL' error right after I click on the 'Step into' or 'Start' button.
Once I tried with VB Common Controls Replacement 1.4 Library and the similar scenario happened there as well, code is only running on the machine where it created. But all machines I tried to run this code are equally set-up.
What can be the cause of this error? I even have registered the UniListView.ocx file in the Windows/SysWOW64 folder.
I tried to identified what is happening here with Microsoft Process Monitor, but I was unable to find anything from its logs yet.
Please tell me what can be the cause for this..
Often, the DLL in question is a dependency of the DLL you're trying to load. Find and use the Depends utility to see who requires what. You run Depends, Depends runs your process. First run it on your machine, then on a failing machine. The differences are usually obvious.

Loading Visual Basic application

I recently moved one of the old Visual basic application from one computer to another computer (windows 10). When I tried to load the application on the new computer. I get the following errors:
ACTBar.ocx could not be loaded-- Continue loading projects.
I clicked Yes then I got another error saying:
Resize32.ocx could not be loaded-- Continue loading projects.
I said Yes again Then I got another error saying :
TDBG5.OCX and then Crystl32.OCX and then Comctl32.OCX could not be loaded
In order to start rsolving the first .OCX error, I copied this ACTBAR.OCX from my old computer and put it in windows/system32 manually. I tried to register the .OCX regsvr32 command, but got an error saying "The module "ACTBAR.OCX" failed to load. Make sure the binary is stored at the specified path or debug it to check for problems. I tried to unregister then and got the same error. How can I overcome these .ocx issues. This application was written by another developer.
Any help will be greatly appreciated.
I found the solution. In windows 10, I need to put these .ocx files in c:\windows\syswow64 directory and then register them and the error will go away.

404 Error when exporting Excel from ActiveReports 8

I've been struggling with this off and on for two weeks, most of that time having been spent waiting for responses to my support issue. I have the solution, which I will post here in the hopes that it helps the next person who runs into this issue. I'm going to throw in a lot of unnecessary detail to increase the odds of the next guy finding this.
I am working on an MVC5 site, and using the ActiveReports 8 HTML5 viewer to display an IList-bound code-based section report. I have enabled PDF, Word, and Excel exports using the availableExports parameter to the GrapeCity.ActiveReports.Viewer javascript function. The viewer renders properly on the page, and makes the expected call to ActiveReports.ReportSerice.asmx, which returns the information needed to render the report, including the URL to stream the data from. The report displays in the viewer just fine. So far so good.
On my development machine, I can export to PDF, Word, and Excel. When deployed to the test server, however, the Excel export stops working, and the browser just shows a save file dialog attempting to save a file called ActiveReports.ar8?blahblahblah. Digging in with Fiddler, I determined that this is almost exactly the same as the URL returned from the call to the report service above except for a few parameters such as "Command=Export" and "ExportFormat=Xls".
Saving this "file" results in a 0-byte file called ActiveReports.xls. I can simulate this behavior for other export types by removing key dlls such as GrapeCity.ActiveReports.Export.Pdf and then asking for a PDF export, for example. It appears to me that ActiveReports (at least as of version 8.1.414.0) swallows certain server-side errors, such as missing dlls, and returns a 404 error code to the client. I think a 500 error with details about what's missing would be preferable to a generic 404.
This leads me to believe that there is something missing on the test server. Since I have "copy local" set on all the ActiveReports dlls, and I can see that they all successfully deployed to the test server, the missing piece must be something present in the GAC of my local machine, but not on the server.
Using Fiddler, I have determined that the response to the ActiveReports.ar8?blahblahblah URL has a return code of 404. The content-disposition header on the resulting 404 response has been set to "attachment; filename=ActiveReports.xls", but the Content-Type is "text/html" rather than the expected "application/vnd.ms-excel". This tells me that the export made it at least partway through processing before giving up.
What's missing on the server that's preventing Excel exports from completing?
The missing piece of the puzzle is the DocumentFormat.OpenXml.dll, a copy of which can be found in the "C:\Program Files (x86)\Common Files\ComponentOne\ActiveReports 8" folder. Ironically, it alphabetizes right next to all of the GrapeCity.ActiveReports assemblies, but without any indication of which other assemblies use it, you can easily look right past it as I did, figuring it was a dependency of something else in that folder such as the license generator.
Adding a reference to DocumentFormal.OpenXml.dll to the web project, and setting Copy Local to true ensures that the dll gets deployed along with everything else. My Excel exports work just fine now.
I apologize for the inconvenience you were facing. You are right that the 'DocumentFormat.OpenXml.dll' is also required on the server when using Excel export with ActiveReports. I've placed a request for this to be added to the documentation.
Thank you for bringing this to our notice.
Regards

Run time error Cannot find database dll in vb6

Hi all I have an software running on a machine where it was developed. Now i make a setup.exe and try to install it on other machine.
It was successfully installed without any error. All the function are running properly i.e. adding the records in the database fetching it in the dropdown but the problem occurred when I generate the report.
As soon as I click on to generate the report the error message comes saying that
Run time error'20532'
Cannot find Database DLL.
I have no idea why this is occurring it is running perfectly on the first system but why on the other system it is showing error.
I am using MS Access 97 as a database.
I check the dll's if there is some thing missing but not find anything. all the dlls are present in the system32 folder.
Now what can I do... any one have any idea please help me...
Thanks.
The error is due to the crystal reports.
I just install the crystal report on the target machine and its done.

Resources