DLL registring problem

Posted on 2009-04-25
Last Modified: 2013-12-14

I have recently find a solution to limit users session per connection.
Its a dll file which I have find it in RRAS official blog itself.
It sounds like there is a problem in the source and I cant get it to work.
Since I have no knowledge about Visual Studio 2005 and its my 1st time using it, I might have some mistake in compiling the source and make the DLL file and it could result in not working of my DLL file.

Anyways, here is the link:

Also there is some more details in another blog post which is related to this issue from same blog and I am completely not understand it LOL.

Here is the link:

Now, When I finish all the steps (after 100 times checking and all goes well) and I get the DLL file and try to make it work as described in this link or any other way (regsvr32) I will get the error in attached picture.

Any Idea experts ?

Thank you.
Question by:iranmatrix
    LVL 39

    Expert Comment

    First, you shouldn't invoke the regsvr32 from Run applet of the start menu. From there you have no chance to set the default folder properly. Better open a command window (dos box, e. g. by typing cmd from 'run') and change directory (cd ...) to the folder the dll resides. Then try again to call regsvr32.

    Not all dlls need to be registered using regsvr32.exe. Only those which have an entry point (function) DllRegisterServer (respectivelly DllUnregisterServer). Some of the dlls which have these entry points nevertheless don't need to be registered using regsvr32 cause they do a self-registering when being called. If the latter they may not run from regsvr32 cause they need some other dlls or initializations which regsvr32 can not supply.

    If you built the dll yourself you might check from the sources whether the registering/unregistering functions exist. If not, you simply may try to use the dll without registering it.


    Author Comment


    As you can see in my screen shot, 1st of all I have done the way that blog said, by adding a registry key in regedit and bla ...

    By the way, that was not the answer. I have contacted the blog poster and she was one of the official microsoft software managers. she told me that I have to check the Framework version and OS architecture to confirm that its compatible with my target OS which I want to use this dll on it.

    Probably, this problem is not completely solved but its on the way of getting the right solution. I am still waiting for the final answer from the blog poster and I will describe the solution here. meanwhile if you found any solution for it, please share with us and of course get the points.

    Thank you
    LVL 39

    Expert Comment

    Below is the definition of error 14001 in winerror.h

    // MessageText:
    //  This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
    #define ERROR_SXS_CANT_GEN_ACTCTX        14001L


    Accepted Solution


    We actually found the problem.

    It was in our .def file which was not included in source code.

    Its now working like a charm.

    Thanks you all.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
    The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now