title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Error when attempting to convert?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abe
    • May 2014
    • 8

    Error when attempting to convert?

    I have a .NET application where I am attempting to convert audio files to mp3. I have installed dBpoweramp Reference R15, on my machine and I included a reference to the DLL: C:\Program Files\dbpoweramp\dmcscriptting.dll in my project. This DLL shows as DMCSCRIPTINGLib in my references folder and has the following information in properties:

    Name: Interop.DMCSCRIPTINGLib
    Identity: {E0F7789A-88C0-450B-AD6C-A7EB6D227127}\1.0\0\tlbimp
    Embed Interop Types: False
    (and some others as well)

    In my application I am using the following lines to attempt to convert:

    Code:
                    DMCSCRIPTINGLib.Converter dMC = new DMCSCRIPTINGLib.ConverterClass();
                    dMC.Convert(OrigFilePath, OrigFileFolder + "\\" + NewFileName, "mp3 (Lame)", "-b=128", "");
    When I hit the first line I get the following error:

    Retrieving the COM class factory for component with CLSID {1C2E0932-61B5-4EAB-A832-06EE6564047D} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
    Any idea why this would be happening? Suggestions on how to fix?
  • Spoon
    Administrator
    • Apr 2002
    • 43888

    #2
    Re: Error when attempting to convert?

    Does the example .vbs script work?
    Spoon
    www.dbpoweramp.com

    Comment

    • abe
      • May 2014
      • 8

      #3
      Re: Error when attempting to convert?

      Hrrm, where would I find the example script?

      Comment

      • abe
        • May 2014
        • 8

        #4
        Re: Error when attempting to convert?

        I looked around in:
        C:\Program Files\dbpoweramp\

        But there doesn't appear to be any vbs scripts in there. Should I be looking somewhere else?

        Comment

        • Spoon
          Administrator
          • Apr 2002
          • 43888

          #5
          Re: Error when attempting to convert?

          On this page:

          Spoon
          www.dbpoweramp.com

          Comment

          • abe
            • May 2014
            • 8

            #6
            Re: Error when attempting to convert?

            Ok, when I run that I get a bunch of popup windows that display information, but the file that I plugged in to be converted to MP3 does not get converted. It isn't throwing an error or anything, but I wouldn't say it's working. Does that answer your question?

            Comment

            • Spoon
              Administrator
              • Apr 2002
              • 43888

              #7
              Re: Error when attempting to convert?

              What does the popup windows say? if it shows the codec lists and codec settings then the com object is working as should.
              Spoon
              www.dbpoweramp.com

              Comment

              • abe
                • May 2014
                • 8

                #8
                Re: Error when attempting to convert?

                I get a number of popups with the heading: "Codes installed" that contain the various codecs.

                Then an application window comes up that says "mp3(Lame) Compression Settings". It has a few radio buttons and a slider bar.

                When I click OK on that window a popup is displayed that has the heading "Returned Compression CLI" and says "-b 128".

                When I click OK on that window a final popup is displayed with the heading "Returned Audio Properties", but this popup is blank.

                Does that make sense?

                Comment

                • dbfan
                  dBpoweramp Guru
                  • Jan 2011
                  • 937

                  #9
                  Re: Error when attempting to convert?

                  The com object is all working as should because each of those pop ups is supplied through the com object.

                  Comment

                  • abe
                    • May 2014
                    • 8

                    #10
                    Re: Error when attempting to convert?

                    Interesting, so what could be the cause of the error that I am getting?

                    Comment

                    • Spoon
                      Administrator
                      • Apr 2002
                      • 43888

                      #11
                      Re: Error when attempting to convert?

                      Try:

                      I developed a Windows service using C#.NET to generate PDF report. To generate PDF file I am using a third party dll. The application is running in my Windows XP platform. When I deployed the servi...
                      Spoon
                      www.dbpoweramp.com

                      Comment

                      • abe
                        • May 2014
                        • 8

                        #12
                        Re: Error when attempting to convert?

                        Yeah, I tried all of the solutions I found on StackOverflow before I came here, but to no avail. Any other ideas?

                        Comment

                        • Spoon
                          Administrator
                          • Apr 2002
                          • 43888

                          #13
                          Re: Error when attempting to convert?

                          Just tried myself, had exactly the same error as yours, but when I go Properties >> Platform Target >> Any CPU

                          then it runs as should.
                          Spoon
                          www.dbpoweramp.com

                          Comment

                          Working...

                          ]]>