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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,809
Messages
6,174,759
Members
452,581
Latest member
ruby9c

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