locked
Class not registered - FSRM in C# RRS feed

  • Question

  • I am trying to use FSRM api on c#: http://msdn.microsoft.com/en-us/library/bb972746(v=vs.85).aspx

    I am running my program on windows server 2008 R2.

    I registered the srm.dll with: "regsvr32 srm.dll" from c:\windows\system32 since my machine is 64 bit. I got successful message for this registration.

    I also included the srmlib.dll in my project in visual studio.

    Both of the dll are 64 bit.

    The code I am using is:

    public static bool AddDiskQKDuota(string Folder, double quota)
    
            {
    
                FsrmQuotaManager quotao = new FsrmQuotaManager();
    
                IFsrmQuota quotadef = quotao.CreateQuota(Folder);
    
                quotadef.QuotaLimit = quota * (1024 * 1024);
    
                quotadef.Commit();
    
                return true;
    
            }

    I am getting this error:

    Retrieving the COM class factory for component with CLSID {90DCAB7F-347C-4BFC-B543-540326305FBE} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

    How can I fix this problem?

    Wednesday, December 12, 2012 9:27 AM

Answers

  • Hi,

    I resolved this problem by installing File Server Resource Manager on the server (first in the Features and then in the role services).

    • Marked as answer by MiritK Sunday, December 16, 2012 8:01 AM
    Sunday, December 16, 2012 8:01 AM

All replies

  • Hi MiritK,

    I'm trying to involve some senior engineers into this issue and it will take some time. Your patience will be greatly appreciated.


    Bob Shen
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, December 14, 2012 6:11 AM
    Moderator
  • Hi,

    Run Regsvr32.exe from the %SystemRoot%\Syswow64 folder. For example, type the following commands to register the DLL:

    cd \windows\syswow64
    regsvr32 filename.dll

    Thanks.

    -------------------------------------------------------

    This behavior occurs because the Regsvr32.exe file in the System32 folder is a 64-bit version. When you run Regsvr32 to register a DLL, you are using the 64-bit version by default.

    Try to register dll again by syswow64.

    -------------------------------------------------------------------

    Friday, December 14, 2012 6:32 AM
  • Hi,

    I resolved this problem by installing File Server Resource Manager on the server (first in the Features and then in the role services).

    • Marked as answer by MiritK Sunday, December 16, 2012 8:01 AM
    Sunday, December 16, 2012 8:01 AM