6 Replies Latest reply on May 8, 2014 1:27 PM by David Hearn

    using RegPlugIn.exe to register Visual Studio .Net 4.5 DLL

    bslinker

      We are trying to add a method that will return a value when a given pressure and temperature are provided. The code below works great but now i want to add it as functionality to AF where one of the engineers can access the data references in AF and see the methods that have been created in the DLL. The DLL is just a bunch of methods that call the steam functions in Pi ACE.

       

      We have tried running the RegPlugIn.exe using the following syntax but get errors.

       

      RegPlugIn.exe LibraryName.dll /PISystem:PISystemName /Owner:LibraryName

       

      This gives the error: Owning assembly 'LibraryName' for support assembly 'LibraryName.dll' is not currently registered. May need to specify the 'PISystem' argument or the 'Owner' argument.

       

      has anyone used the RegPlugIn.exe utility before? what could i be missing?

       

      I'm running VS 2012 .Net4.5

       

      Thanks for any help that can be provided

       

       

       

      #region StmEng_SPTL

       

      public static double GetStmEng_SPTL(double Pressure, double Temperature)

       

      {

       

                           double result = -1;

       

                           try

       

                           {

       

                                 PISTFunctions PiStm = new PISTFunctions();

       

                                 result = PiStm.StmEng_SPTL(Pressure, Temperature);

       

                           }

       

                           catch (Exception ex)

       

                           {

       

                                 // TODO: Output error message at some point

       

                           }

       

                           return result;

       

      }

       

      #endregion

        • Re: using RegPlugIn.exe to register Visual Studio .Net 4.5 DLL
          Marcos Vainer Loeff

          Hi Brandon,

           

          I think that this thread might be able to help you. Based on the suggestions from the thread, please post your results.

           

           

            • Re: using RegPlugIn.exe to register Visual Studio .Net 4.5 DLL
              bslinker

              the properties of the AFSDK has "Specific version" is set to false

               

              I have tried just the name as well as the full file path in the RegPlugIn.exe commands

               

              I have tried the /Owner: option with both the full path and just the name.

               

              See commands tried below and the responses I have gotten.

               


              E:\Program Files (x86)\PIPC\AF>RegPlugIn.exe "e:\Program Files (x86)\PIPC\AF\srp
              AFTestLibrary.dll"
              PISystem (AF Server)'SRPPGS01', (002afc0c-dc01-4f5b-ac58-23f925ecbb4b).
                  Found support assembly 'srpAFTestLibrary.dll [NET4]'.

               

              Owning assembly for support assembly 'srpAFTestLibrary.dll' is not defined. May
                  need to specify the owner using the 'Owner' argument.

               

              E:\Program Files (x86)\PIPC\AF>RegPlugIn.exe "e:\Program Files (x86)\PIPC\AF\srp
              AFTestLibrary.dll" /Owner:SRPAFTestLibrary.dll
              PISystem (AF Server)'SRPPGS01', (002afc0c-dc01-4f5b-ac58-23f925ecbb4b).
                  Found support assembly 'srpAFTestLibrary.dll [NET4]'.

               

              Owning assembly 'SRPAFTestLibrary.dll' for support assembly
                  'srpAFTestLibrary.dll' is not currently registered. May need to specify the
                  'PISystem' argument or the 'Owner' argument.

               

              E:\Program Files (x86)\PIPC\AF>RegPlugIn.exe "e:\Program Files (x86)\PIPC\AF\srp
              AFTestLibrary.dll" /Owner:SRPAFTestLibrary
              PISystem (AF Server)'SRPPGS01', (002afc0c-dc01-4f5b-ac58-23f925ecbb4b).
                  Found support assembly 'srpAFTestLibrary.dll [NET4]'.

               

              Owning assembly 'SRPAFTestLibrary' for support assembly 'srpAFTestLibrary.dll'
                  is not currently registered. May need to specify the 'PISystem' argument or
                  the 'Owner' argument.

               

              E:\Program Files (x86)\PIPC\AF>RegPlugIn.exe "e:\Program Files (x86)\PIPC\AF\srp
              AFTestLibrary.dll" /Owner:"e:\Program Files (x86)\PIPC\AF\SRPAFTestLibrary.dll"
              PISystem (AF Server)'SRPPGS01', (002afc0c-dc01-4f5b-ac58-23f925ecbb4b).
                  Found support assembly 'srpAFTestLibrary.dll [NET4]'.

               

              Owning assembly 'SRPAFTestLibrary.dll' for support assembly
                  'srpAFTestLibrary.dll' is not currently registered. May need to specify the
                  'PISystem' argument or the 'Owner' argument.

               

              E:\Program Files (x86)\PIPC\AF>RegPlugIn.exe "e:\Program Files (x86)\PIPC\AF\srp
              AFTestLibrary.dll" /Owner:"e:\Program Files (x86)\PIPC\AF\SRPAFTestLibrary.dll"
              /PISystem:SRPPGS01
              PISystem (AF Server)'SRPPGS01', (002afc0c-dc01-4f5b-ac58-23f925ecbb4b).
                  Found support assembly 'srpAFTestLibrary.dll [NET4]'.

               

              Owning assembly 'SRPAFTestLibrary.dll' for support assembly
                  'srpAFTestLibrary.dll' is not currently registered. May need to specify the
                  'PISystem' argument or the 'Owner' argument.

               

              E:\Program Files (x86)\PIPC\AF>RegPlugIn.exe "e:\Program Files (x86)\PIPC\AF\srp
              AFTestLibrary.dll" /Owner:"e:\Program Files (x86)\PIPC\AF\SRPAFTestLibrary" /PIS
              ystem:SRPPGS01
              PISystem (AF Server)'SRPPGS01', (002afc0c-dc01-4f5b-ac58-23f925ecbb4b).
                  Found support assembly 'srpAFTestLibrary.dll [NET4]'.

               

              Owning assembly 'SRPAFTestLibrary' for support assembly 'srpAFTestLibrary.dll'
                  is not currently registered. May need to specify the 'PISystem' argument or
                  the 'Owner' argument.

               

              E:\Program Files (x86)\PIPC\AF>RegPlugIn.exe "e:\Program Files (x86)\PIPC\AF\srp
              AFTestLibrary.dll" /Owner:SRPAFTestLibrary /PISystem:SRPPGS01
              PISystem (AF Server)'SRPPGS01', (002afc0c-dc01-4f5b-ac58-23f925ecbb4b).
                  Found support assembly 'srpAFTestLibrary.dll [NET4]'.

               

              Owning assembly 'SRPAFTestLibrary' for support assembly 'srpAFTestLibrary.dll'
                  is not currently registered. May need to specify the 'PISystem' argument or
                  the 'Owner' argument.

               

              E:\Program Files (x86)\PIPC\AF>RegPlugIn.exe srpAFTestLibrary.dll /Owner:SRPAFTe
              stLibrary /PISystem:SRPPGS01
              PISystem (AF Server)'SRPPGS01', (002afc0c-dc01-4f5b-ac58-23f925ecbb4b).
                  Found support assembly 'srpAFTestLibrary.dll [NET4]'.

               

              Owning assembly 'SRPAFTestLibrary' for support assembly 'srpAFTestLibrary.dll'
                  is not currently registered. May need to specify the 'PISystem' argument or
                  the 'Owner' argument.

               

              I am using Visual studio 2012 to create the dll file and i have tried using .Net 3.5, .Net 4.0, and .Net 4.5.

               

              Please help!

               

              thanks

               

              Brandon Slinker