INumberProvider–Error 4112 ’NumberingSchemeProviderCouldNotBeLoaded’ when using VB

<?xml encoding=”UTF-8″>

By Sajith Subramanian

When converting the sample code for Custom Numbering that comes along with the SDK from C# to VB, one of our users reported that he was now facing the error 4112, i.e. NumberingSchemeProviderCouldNotBeLoaded.

Solution:

In case of VB, it seems that there is a Root Namespace that is added before every Namespace, which should also be included in the ‘type’ attribute in web.config. If you add that, it should be able to initialize correctly. So the following should get it to work:

<numberproviders><br><numberprovider name="CustomProvider" type="CustomNumberingProvider.CustomNumberingProvider.CustomNumberingProvider, CustomNumberingProvider" cancache="false"><br><!-- <initializationParm value="somethingImportant" /> -–><br></numberprovider><br></numberproviders>

Comments

One response to “INumberProvider–Error 4112 ’NumberingSchemeProviderCouldNotBeLoaded’ when using VB”

  1. Thanks, the above solution solved my problem

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading