Trying to access VB.Net dll from excel get 429 error

bonkey

New Member
Joined
Jan 11, 2010
Messages
33
I am trying to create a DLL in VB.net to parse a very large XML file.
By Large I mean it takes excel 3 hours to open it. I have my own XML reading code that can deserialize it in an hour. In VB.net the built in deserializer can deserialize it in a few minutes.

So, I make a simple DLL (hello world) app and make sure i can register it and use it in excel and I can.

Then I start adding my custom code.

Little by little I add code and test, add code and test.

Eventually I get error 429:

Run-Time error '429':
ActiveX component can't create object

Once I get this error I am toast. I can never run my code again without getting this error.

I unregister the DLL. I deselect it from excel. I clear all references in the registery. I even rebooted.

How can I clean up after the 429 error and get my code working again?

Here is my basic hello world code
Code:
Imports System
Imports System.Collections.Generic
Imports System.Text






Namespace DotNetLibrary
    Public Class DotNetClass
        Public Function DotNetMethod(input As String) As String
            Return "Hello " & input
        End Function
End Namespace
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,216,074
Messages
6,128,653
Members
449,462
Latest member
Chislobog

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top