Search code examples
c#wcfdllcom+component-services

COM+ dll component name is missing after adding it to Component Services


I made a COM+ dll in C++ using an ATL project. After the COM+ dll was added to the component services, it doesn't show the component name. A link for the screen shot is given below,

https://www.flickr.com/photos/100661150@N07/16832241851/in/set-72157649061069133

I went through lot of tutorials but couldn't find a proper solution. Is there a way to make the name appear because the name is needed in order to use the COM+ dll as an WCF.


Solution

  • The name doesn't appear because it is not set in the .rgs file. I have given a sample below, change the code accordingly then it should show the component name

    HKCR
    {
        FEDTab = s 'RepDO Class'
    {
        CLSID = s '{8949D894-3C9B-4430-8C66-7B2DC3DE7F2D}'
    }
        DataObjects.RepDO = s 'RepDO Class'
    {
        CLSID = s '{8949D894-3C9B-4430-8C66-7B2DC3DE7F2D}'
        CurVer = s 'FEDTab'
    }
    NoRemove CLSID
    {
        ForceRemove {8949D894-3C9B-4430-8C66-7B2DC3DE7F2D} = s 'ProcessImage Class'
        {
            ProgID = s 'FEDTab'
            VersionIndependentProgID = s 'DataObjects.RepDO'
            ForceRemove Programmable
            InprocServer32 = s '%MODULE%'
            {
                val ThreadingModel = s 'Both'
            }
            TypeLib = s '{C40C7D67-7D49-4291-B0C2-10DAA7824FD0}'
            Version = s '1.0'
        }
    }
    

    .rgs file could be found inside the ATL project folder