ClassFactory failed due to the following error: 80070422

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashish1985s
    New Member
    • Jan 2008
    • 32

    #1

    ClassFactory failed due to the following error: 80070422

    I am using Windows 2003 and i am getting this error when i am initilize the class object of DeviceManger that

    "Creating an instance of the COM component with CLSID {E1C5D730-7E97-4D8A-9E42-BBAE87C2059F} from the IClassFactory failed due to the following error: 80070422."

    Please if any help from your side!
  • MetalTim
    New Member
    • Jan 2008
    • 1

    #2
    Originally posted by ashish1985s
    I am using Windows 2003 and i am getting this error when i am initilize the class object of DeviceManger that

    "Creating an instance of the COM component with CLSID {E1C5D730-7E97-4D8A-9E42-BBAE87C2059F} from the IClassFactory failed due to the following error: 80070422."

    Please if any help from your side!
    I am getting the same thing in VS2005. The tooltip says something to the effect that it's trying to cast a variable with a number that is greater than infinity. To me, it sounds like the component itself is trying to do that and not the act of declaring the component, but I need to prove it before I can send a defect report back to development. This sucks!

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Are you guys running on Vista?
      This error seems to be common with Vista updates...I also found a few mentions of it occurring in Visual Studio 2008...

      I've read that if you have the "Windows Modules Installer" disabled that you will encounter this error.

      To fix this:
      • Go to service management console (Start -> Run -> Services.msc)
      • Make sure that the 'Windows Modules Installer' is enabled
      • Then check for updates.

      After updating hopefully your issues will be resolved.

      -Frinny

      Comment

      • ashish1985s
        New Member
        • Jan 2008
        • 32

        #4
        I have resolved this error by enable the service WIA in windows 2003 ..
        but now i am getting the following exception.

        Exception Details: System.Unauthor izedAccessExcep tion: Creating an instance of the COM component with CLSID {4EC4272E-2E6F-4EEB-91D0-EBC4D58E8DEE} from the IClassFactory failed due to the following error: 80070005.

        What to do now????

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          Originally posted by ashish1985s
          I have resolved this error by enable the service WIA in windows 2003 ..
          but now i am getting the following exception.

          Exception Details: System.Unauthor izedAccessExcep tion: Creating an instance of the COM component with CLSID {4EC4272E-2E6F-4EEB-91D0-EBC4D58E8DEE} from the IClassFactory failed due to the following error: 80070005.

          What to do now????
          This is happening because your application does not have sufficient security rites to use the COM component.

          You should look up Security in .NET...check out this article to get you started.

          Comment

          • ashish1985s
            New Member
            • Jan 2008
            • 32

            #6
            Originally posted by Frinavale
            This is happening because your application does not have sufficient security rites to use the COM component.

            You should look up Security in .NET...check out this article to get you started.

            I am not getting much for security exception..
            is any configuration i have to set for asp.net project for solving this error...

            Comment

            • Prachiv
              New Member
              • Nov 2008
              • 1

              #7
              I am getting the same error . I have activated WIA servicethru service.msc and have done the Launch and Access settings in Dcomcnfg tool on Windows 2003 for WIA devie manager component

              Still Error is there while instantiating WIA manager class. It works fine on development machine but gives error on web server

              Comment

              • xmoonrakerx
                New Member
                • Sep 2009
                • 1

                #8
                If you are using the wiaaut.dll you need to do a regsvr32 in the server.

                Comment

                • Frinavale
                  Recognized Expert Expert
                  • Oct 2006
                  • 9749

                  #9
                  You also need to make sure that the ASP.NET account and worker process have permissions to use the DLL and likely the directory that it's in.

                  Give ASPNET permissions to read, write, and execute for now and see if it works

                  Comment

                  • Mandoleen
                    New Member
                    • Mar 2012
                    • 2

                    #10
                    for the main post => I face the same issue and this is the solution :check the windows service => WIA => and shart it

                    Comment

                    Working...