vb6 dll in .net REGDB_E_CLASSNOTREG - vb.net

Hope someone could help me..
I created a vb6 dll which suppose to use the printer.print method since i want an easier printer functions.. it runs smoothly in same computer using vb.net 2012 , the problem is after publishing it in newly installed OS with prerequisite installed computers
p.s. already tried installing vb6 IDE and tried the actual printer.print without a problem

Be sure your installer properly registers the DLL. Given your Title, this is probably the first culprit. But there will also be some (many?) VB6 runtimes which need to be installed as well. I am not sure if the standard .NET setup maker knows how to determine what they are and newer machines you install on may not already have them.
When you installed the VB6 IDE you probably fixed the runtimes issue for THAT machine, so it probably has to do with the DLL being registerd. For more installs, you may have to create a mini VB6 installer for the project to install the runtimes.
What is the target OS?

Related

VB.NET Application can't be installed - BouncyCastle.Crypto has to be installed in GAC

I'm kind of unexperienced in programming. I built a small software, that enables the user to store data, that are manually entered in my software, into a MySQL database. So far so good - during debugging and after release and installation on my computer it works just fine.
But as soon as it is installed on another computer, it can't be installed due to an error that says (translated from german):
The application can't be installed and startet. The application requires, that the Assembly BouncyCastle.Crypto Version 1.8.3.0 has to be installed in the global Assemblycache (GAC) first. Please contact the system administrator.
I have just no idea, what the problem is. As I said, on my computer it works perfectly fine. I did some research, but I wasn't able to find sources that I understand to solve the problem.
Here are some details:
Language: VB.NET
Environment: Visual Studio 2013
Framework: .NET Framework 4.5.2
I would really appreciate, if you could help me with this problem!
Thanks in advance!
Jonas
This appears to be an issue with MySql.Data v8.0.27 for me. Try installing v8.0.25 which seems to not require these extra unneeded bouncycastle .dll's

VB program does not run on older XP machine

First off, I do most my programming as tools for myself and know just enough to get by. I wrote a VB program which uses a vender's API DLL to communicate with a serial port device. I used VS Express. Works great on my Win 7 32-bit machine.
I handed my program off to a co-worker (didn't expect to share my tools) who has a XP 32-bit machine. I get a windows error that it "is not a valid win32 application" I made sure to include the vender's DLL with my executable.
I really don't want to have to install VS Express on his computer as that is how I have solved the issue in the past. I could use some pointers on cross-platform compatibility. Not looking to make my software universal, just to get it running on a XP machine.
Thank you,
Xp only supports up to .NET framework 2.0 if you want to use it on all versions of xp.
So you need to check with version he has or you want to support.
So if you want it to run on Xp "All versions" you need to make it .NET framework 2.0
Is .NET 4.0 Compatible with Windows XP SP2 or below?

Installing simplest plugin on German Windows XP

I'm trying to figure out why the simplest firebreath plugin wont install on a German Windows XP SP3. I'm running Windows XP as a virtual machine.
The event viewer in Windows XP tells me something about the Windows Installer aborting but not why. I'm logged in as the administrator.
The installer works on Windows 7.
For development I use Windows 7, Visual Studio 2010 and some one months old firebreath trunk.
Is this is known problem? What are the typical steps I could use to track down the issue?
Regards,
Christian
If you get an error saying module can't be found it means that you are missing a .dll file needed to make the plugin work. The most common if it works on most computers (or many) but not that one is that your .dll was compiled with a dynamic runtime, in which case you'll have to install the common runtime for whatever version of visual studio you compiled it with.
For example, the runtime distributable for vs2008 is at http://www.microsoft.com/en-us/download/details.aspx?id=29
Dependency Walker might help you to find out which dll is missing.

How do I resolve "Run-time error '429': ActiveX component can't create object"?

My company has a VB6 application using Crystal Reports 7 which a client has asked to be installed on Windows 7 32 bit. It is currently installed on Windows XP 32bit SP2 machines at the client. Connection to the DB is done via ODBC to SQL Server 2000 instance on another server.
On Windows 7, the installation works fine, however when you try to open the application, the error is given.
I have looked at the following:
Registering all the dll's and ocx files using regsvr32. Some will not register as they either are registered already or the following message is given "Make sure that "[name].dll" is valid DLL or OCX file and then try again." I read this forum thread regarding this: http://social.msdn.microsoft.com/forums/en-US/vblanguage/thread/0653f685-4526-45d9-89f3-8c479a6b4c62
Monitored the opening of the application using a ProcessMonitor application to try and spot if there is a missing dll or ocx file - this does not seem to be the case.
Reviewed the application according to this list and nothing seems to be against these guidelines
I've noticed two items in the knowledge base that relate to this
http://support.microsoft.com/kb/281848 - the comdlg32.ocx bundled with the application is version 6.0.81.69 and the one in the system32 folder on the dev machine (WinXP 32 bit) is 6.1.97.82. However if this was the issue then surely it would not work currently?
http://support.microsoft.com/kb/184898 - I'm not sure how to confirm that this is the issue
Finally, due to complexities, I am not allowed to make code changes to this application. Even if I was, I'm not a VB6 programmer, just the guy who got the terribly support project! If code changes are required, then I'll have to investigate using WinXP mode.
Update: I get the same error in XP Mode. That's a Win XP with SP3 VM. This runs on a Win XP SP2 VM, is there potentially something in SP3 that would have caused this to occur? Or is it just a fact of it being XP Mode?
I got the same error but I solved by using regsvr32.exe in C:\Windows\SysWOW64.
Because we use x64 system. So if your machine is also x64, the ocx/dll must registered also with regsvr32 x64 version
The file msrdo20.dll is missing from the installation.
According to the Support Statement for Visual Basic 6.0 on Windows Vista, Windows Server 2008 and Windows 7 this file should be distributed with the application.
I'm not sure why it isn't, but my solution is to place the file somewhere on the machine, and register it using regsvr32 in the command line, eg:
regsvr32 c:\windows\system32\msrdo20.dll
In an ideal world you would package this up with the redistributable.
This download fixed my VB6 EXE and Access 2016 (using ACEDAO.DLL) run-time error 429. Took me 2 long days to get it resolved because there are so many causes of 429.
http://www.microsoft.com/en-ca/download/details.aspx?id=13255
QUOTE from link:
"This download will install a set of components that can be used to facilitate transfer of data between 2010 Microsoft Office System files and non-Microsoft Office applications"
You say it works once you install the VB6 IDE so the problem is likely to be that the components you are trying to use depend on the VB6 runtime being installed.
The VB6 runtime isn't installed on Windows by default.
Installing the IDE is one way to get the runtime. For non-developer machines, a "redistributable" installer package from Microsoft should be used instead.
Here is one VB6 runtime installer from Microsoft. I'm not sure if it will be the right version for your components:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=7b9ba261-7a9c-43e7-9117-f673077ffb3c

From where to download compiled and ready to use MonoDev for Mono 2 under Windows?

I have heard a lot about Mono and its usability compared to .NET and its cross platform support.
I tried to find a working version of MonoDev which will give me a visual way (like MS visual Studio) of working with Mono 2.x.
Have we to compile it from code or has someone provided a link to download a working and precompiled version of MonoDev that works in Win 2000 and higher?
You don't need MonoDevelop to build applications that run on Mono. The main feature of Mono is that it runs .NET assemblies without need for re-compilation. You can build in Visual Studio (including any of the free versions of Visual Studio Express) and run your applications under Mono without change, providing Mono supports the API's you're using.
You can use the Mono Migration Analyzer (MOMA) to test your assemblies to see if Mono will support them. It inspects the MSIL code directly, so it's very quick to test them.
I believe it is possible to run MonoDevelop on Win32: http://www.monodevelop.com/MonoDevelopWin32
You can run MonoDevelop on Windows using AndLinux.
You can either:
Download one of the completely free Visual Studio Express versions: http://www.microsoft.com/express/product/default.aspx
Use SharpDevelop. There is no need to 'support' Mono, just develop like you normally would, and then copy your binaries over and Mono will run them.
Like others said, the point of Mono is to work the same as MS's .NET. You can develop in VS, then run it on Mono. That being said, if you really want to run MonoDevelop on Windows, don't let anyone tell you it can't be done. If you're curious about it, with a little bit of Cygwin hackery, I've been able to get MonoDevelop to compile cleanly on Windows, and run in an acceptable way. http://monodevelop.com/MonoDevelopWin32 has some instructions on how to get it working, but they are out of date. The current SVN trunk for MonoDevelop has better support for Windows, so try compiling with Cygwin if you're feeling daring.
MonoDevelop does not currently run on Windows. It currently runs on Linux and OSX.
On Windows, you can use Visual Studio or SharpDevelop and copy your binaries over to Linux or OSX to run them.