# Path to erx.dll

**URL:** <https://techcommunity.softwareag.com/t/path-to-erx-dll/195971>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [August 9, 2017, 6:23pm UTC](https://techcommunity.softwareag.com/t/path-to-erx-dll/195971 "2017-08-09T18:23:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Yu1](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@Nick\_Yu1](https://techcommunity.softwareag.com/u/Nick_Yu1)\
**Post date:** [August 9, 2017, 6:23pm UTC](https://techcommunity.softwareag.com/t/path-to-erx-dll/195971/1 "2017-08-09T18:23:15Z")

</div>

We are using EntireX to communicate between our Web application and mainframe, and it works fine when we tested it on our developer’s workstation. The setting of SoftwareAG.EntireX.NETWrapper.Runtime.ERX.Location seems critical. If an absolute path to the erx.dll is not set in SoftwareAG.EntireX.NETWrapper.Runtime.xml, you get the 20020011: Cannot load erx.dll error.

The default value of this key in the XML is ERX\_LOCATION. I suppose it is a system variable. We modified it to point to where the erx.dll is. However, as we are ready to deploy the solution, there is a problem. We are deploying to Azure as an app service, where we cannot install EntireX nor can we use an absolute path.

Has anyone come across the same challenge? Is there a known solution out there?

Thanks.

---

<div class="post-metadata">

**Author:** ![jmr](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@jmr](https://techcommunity.softwareag.com/u/jmr)\
**Post date:** [August 10, 2017, 11:06am UTC](https://techcommunity.softwareag.com/t/path-to-erx-dll/195971/2 "2017-08-10T11:06:58Z")

</div>

There is a fallback for such cases. Please copy erx.dll and broker.dll to the location of SoftwareAG.EntireX.NETWrapper.Runtime.dll. You should note, that all these files have to be from the same EntireX installation. If there is a fix for any of the files involved, it is your responsibility to keep the files in sync.

---

<div class="post-metadata">

**Author:** ![Nick\_Yu1](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@Nick\_Yu1](https://techcommunity.softwareag.com/u/Nick_Yu1)\
**Post date:** [August 11, 2017, 1:14am UTC](https://techcommunity.softwareag.com/t/path-to-erx-dll/195971/3 "2017-08-11T01:14:11Z")

</div>

@jmr, thank you for sharing your thoughts.

We would like that behavior as we can copy all the needed files to the same directory. However, we didn’t know how we can make the fallback work. We have tried a few different values,

1. empty (shows the .xml file is missing)
2. . (dot, shows Cannot load erx.dll)
3. ./ (same error, cannot load erx.dll)
4. .\ (same error, cannot load erx.dll)
5. delete the ERX.Location key all together. Same error, cannot load erx.dll.

We just don’t know how to make it look in the same directory.

---

<div class="post-metadata">

**Author:** ![jmr](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@jmr](https://techcommunity.softwareag.com/u/jmr)\
**Post date:** [August 11, 2017, 3:34pm UTC](https://techcommunity.softwareag.com/t/path-to-erx-dll/195971/4 "2017-08-11T15:34:45Z")

</div>

You don’t need the XML file in this case. It is enough, if you have SoftwareAG.EntireX.NETWrapper.Runtime.dll, erx.dll and broker.dll at the same location. In this case erx.dll is loaded by path. May be you need a “.” in the Path environment variable of your Web application.  
If your problem persists, please contact me by Software AG support. Please provide the EnitreX Windows eventlog of the system running your Web application. Tell the supporter, that you had already contact with the EntireX development team.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:39pm UTC](https://techcommunity.softwareag.com/t/path-to-erx-dll/195971/5 "2021-04-02T15:39:05Z")

</div>


