Today I faced a problem while registring the Business Logic Layer (Bll) using regasm from command prompt. Error was something related to Access rights while writting registry key i.e. somthing like "Unable to write............ HKEY_CLASSES_ROOT\PostNexusNET_BLL.XMLProcessor\CLSID"
My first opinion was that there must be some access related problem as I have installed a genuine Windows XP (Service Pack 2) in my PC and often branded PCs wont allow you to modify registry entries as a normal user.
When opened registry from run menu using regedit command and reached at the above described location, I found an empty entry named "PostNexusNET_BLL.XMLProcessor" with a child key "CLSID" with no values. I tried to delete, edit and rename that key but could not succeed. I restarted the computer in safe mode and tried the same options, but even then could not succeed. Note that I have assigned full rights/permissions to the "PostNexusNET_BLL.XMLProcessor" key.
After trying so mnay options and reading so many blogs on the interent, found NO solution for two days. I'll consider myself lucky that I found one solution which is described below:
1) Right click the registry key which you are not able to manipulate (edit, delete or rename), then click on Permissions.
2) Select your username from the list, if not present in the list, click add and type the name of the user, Click OK.
3) Then click Advanced, select your user from the list and check the box with "Replace permission entries........". Make sure that other check box is also checked/selected.
Before implementing this methodology make sure that you are logged in as an Administrator.
This solved my problem and now I can register all my dlls.
No comments:
Post a Comment