Run time error Cannot find database dll in vb6 - 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.

Related

Getting "Could not find stored procedure 'dbo.AuthCookies_Update' " Error When Running DNN from Visual Studio

Im trying to run DNN 9.4.1 from Visual Studio.
And Im gettin the following error;
"progress":54,"details":"ERROR:Could not find stored procedure dbo.AuthCookies_Update"
Firstly Ive created dnndev.me database and Ive checked and completed the permissions.
Ive created an app pool on iis named dnndev.me and Ive set the path like ...\Dnn.Platform-9.4.1\Website
Ive checked the folder permissions.
After that Ive run the project from Visual Studio.
In the first step Ive filled Account Informations properly.
In the second step when creating stored procedures, dbo.AuthCookies_Update couldnt be created
error-capture
The way Ive tried to solve the error but I couldnt success is;
Ive created a new database with the same name (dnndev.me) and the same permissions
Ive created an app pool with the same name and the same path with controling folder permissions
And I've commented the lines following on the Visual Studio
( ...\Dnn.Platform-9.4.1\Website\Providers\DataProviders\SqlDataProvider --> 09.02.00.SqlProvider file)
commented-lines
Before running project on Visual Studio I've create that procedure on SSMS and it has been created successfully
succeeded-command
Then when I run the project Ive got the same error and when I checked the database I couldnt see dbo.AuthCookies_Update on the Stored Procedure files
Ive checked out about this error, its a common error I guess.
I hope there is someone who can help me to solve this.
Thanks in advance
I'm not quite clear on what you are trying to do.
Are you trying to compile and run DNN with VS? If so, you probably need to do some other things, too. Building DNN is not recommended. So ... what exactly are you trying to do?
I'm not sure why you are looking for that stored procedure, unless you are looking because the error is that it doesn't exist?
When you "install" DNN, it builds out the database with tables, stored procedures, etc. That is the first step of doing an install, and it's not going to run unless you've installed it properly.
To install DNN on a local machine, give nvQuickSite a try. It will do all of that work for you.
Still, why are you doing this with VS? It's really not the thing to do. But, it might make more sense if I understaood what you are trying to accomplish?

VS2017 - Build returns D8050: failed to get command line into debug records

I'm using VS2017 (Enterprise) to build a project. I'm pretty new to VS and especially to setting up my machine for a big project, so please do let me know if you need more info.
A while ago, my build was working fine, all cpp files were compiling well. Then I made some changes to a few cpp files (harmless little changes). But after I restarted my machine, I keep getting a
D8050: failed to get command line into debug records
The full error message is:
D8050 cannot execute 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\c1xx.dll': failed to get command line into debug records projectnameC:\Users\username\Documents\reponame\projectname\cl 1
However, this seems to be a really outdated error. I can't find the official support doc for this error (when I click on the error code on VS, it leads me to the support main page) and all the S/O questions are from 3-4 years ago. This question's answer suggests changing the TMP variable, but this can't be found under Properties anymore.
Just fyi, my OS is Windows 8, and my computer shut down abruptly while the project was building (it's a borrowed laptop, battery is old). I'm wondering if that has anything to do with this issue.
Again, please let me know if you need more details (eg logs).
I was able to solve this by switching to a user with admin rights, I had a feeling this was something related to user-permission rights
I was suggested by a friend to do a clean build (clean + rebuild), but this also failed.
What did solve my problem was deleting and reinstalling VS all over again. This reset the program files folder for VS and my build is working again.
I did uninstall McAfee at the same time, because I saw somewhere that antivirus software might be disturbing the build, but I'm not sure if this affected the build.

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.

Installing and creating instance of SQL Server 2012

I am running SQLManagementStudio_x86_2012_ENU.exe to install SQL Server 2012. I came across a problem and I was hunged on it too long.
I have seen the same problem in SO and they are give a solution for that. I also over come that problem but again stuck again in half way through. So I am going to ask this again(not a spam)
Problem: When I ran above mentioned exe it was installed fine, Then I tried to create a instance of the server. I used SQL Server Installation Center in configuration tools. then I selected new SQL Server and it asks me to select the SQL Server Installation Media. I selected C:\Program Files (x86)\Microsoft SQL Server but it was invalied.
then I figured out that it is asking for the Installation media itself. So I extracted the .exe file to a folder and selected that path. that was taken as a valid media.
I refered to this link.
some have mentioned that this was a bug here.
when I clicked next it gives the following error. so that I can not proceed and create a instance. Can some one help me on this.
thanks in advance.
I have tried lot of things to come up with a solution for this. As you can see in the picture, there are only 2 check boxes which are already checked and disabled. This is not the right .exe file to run(I was unable to create a server instance using this). I downloaded the right SQL server installation file from here.
There are several .exe files that gives different functionality enhancements. I chose SQL server with tools which is about 1GB. I did not have to uninstall the existing sql server installation. I installed this and it worked fine. I will post back if I found a way to create a SQL server form the given installation. If you have the same problem as described above, most probably you are using the wrong .exe file.
Good luck with your fix.

Resources