ASP.NET sample RFA.NET_ConsumerWebSite is not building

Hi , from the examples when i try to build sample asp.net project ASP.NET\RFA.NET_ConsumerWebSite it doesnt build and gives below errors. I have copied all the dll's to both system32/inetserv and syswow64/inetserv


image

Best Answer

  • @RSuryasetty

    Please make sure that you are using 32-bit RFA.NET as Zoya said. ASP.NET Development Server on Visual Studio only works with 32-bit lib.

    I did a quick test with VS2017 and it works correctly when choosing 32-bit lib.

    imageChoosing 32-bit RFA.NET and TS1 libs.

    image

    Then it fixed the lib errors in Visual Studio.


Answers

  • Hi @RSuryasetty,

    Please follow the instructions in the "Setup Enviroment" section in the ReadMe.txt file of the example. From my testing, I have found issues loading DACS libraries (DACS8...). Currently, please copy all DLL except the DACS libraries to RFA.NET_ConsumerWebSite\bin folder and Msg File library (i.e. RFA8_MsgFile140.dll) to Windows System folder (i.e. C:\Windows\SysWOW64 for 64-bit Windows and C:\Windows\System32 for 32-bit Windows)

    2.2 Setup Environme
        2.2.1 Configurati
            One configuration file is used:
            RFA.NET_ConsumerWebSite/etc/ExampleRFA.c
            Note: The configuration file can be copied from
                  ../ExampleRFA.cfg path. See the RFA Configuration Guide for
                  information about how to configure the RFA librarie
        2.2.2 Data dictiona
            Make sure the RDMFieldDictionary and enumtype.def files are in
            the RFA.NET_ConsumerWebSite/etc director
            Note: Data dictionary files can be copied from
                  ../../etc/RDM/ director
        2.2.3 Dependency library fi
            - Make sure RFA8_NET and TS1_NET library files are in
              the RFA.NET_ConsumerWebSite/Bin director
              Note: Only one version of RFA .NET assembly can exist in
                    the RFA.NET_ConsumerWebSite/Bin director
            - Make sure the RFA8_MsgFile library file is either in the machine's
              path or installed to the system folde
        2.2.4 Runni
            Host the website on ASP.NET Development Server provided by
            Visual Studio by openning Debug->Start Without Debuggin
            Note: Hosting website on ASP.NET Development Server only works with
                  RFA .NET 32-bit library because ASP.NET Development Server is
                  a 32-bit application as well as Visual Studio.


  • Hi Sir, I have done this and I get below error. ( I have restarted the system as well).

    image

  • Hi @RSuryasetty,

    Verify adding DLL references: RFA7_NET and TS1_NET:

    Menu Debug-> ... Properties-> References-> Add-> Browse->

    Select folder

    ...\rfanet7.5.0.L1.win.rrg\Libs\WIN_32_VS110

    Select DLLs

    image

    Try building again.

    Let us know how this works for you?

  • Hi Zoya, I'm using VS 2017 and I dont see this option.

  • @Zoya, was able to add reference but no use.. still same errors.