# SoftwareAG.EntireX.NETWrapper.Runtime.XException: 20020000

**URL:** <https://techcommunity.softwareag.com/t/softwareag-entirex-netwrapper-runtime-xexception-20020000/79835>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [December 23, 2008, 4:44pm UTC](https://techcommunity.softwareag.com/t/softwareag-entirex-netwrapper-runtime-xexception-20020000/79835 "2008-12-23T16:44:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luiz\_Mattos](https://avatars.discourse-cdn.com/v4/letter/l/22d042/32.png) [@Luiz\_Mattos](https://techcommunity.softwareag.com/u/Luiz_Mattos)\
**Post date:** [December 23, 2008, 4:44pm UTC](https://techcommunity.softwareag.com/t/softwareag-entirex-netwrapper-runtime-xexception-20020000/79835/1 "2008-12-23T16:44:54Z")

</div>

Hi. I am trying to make an .NET Windows Form app to run in a server running Windows 2003 Standard x64 Edition and I keep getting the following error:

```auto

SoftwareAG.EntireX.NETWrapper.Runtime.XException: 20020000: Internal error, The type initializer for 'SoftwareAG.EntireX.NETWrapper.Runtime.ERX' threw an exception.
```

This very same application has been tested in several other machines and it works fine, but none of them is running a 64 bits OS. Is there anything else that I should do to make it work in such environment?

Thanks in advance,

Luiz Mattos.

---

<div class="post-metadata">

**Author:** ![Finn\_the\_Dane1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/finn_the_dane1/32/132_2.png) [@Finn\_the\_Dane1](https://techcommunity.softwareag.com/u/Finn_the_Dane1)\
**Post date:** [December 23, 2008, 5:13pm UTC](https://techcommunity.softwareag.com/t/softwareag-entirex-netwrapper-runtime-xexception-20020000/79835/2 "2008-12-23T17:13:00Z")

</div>

Looks like the problem described in Servline24 under docid 556965  
It might look like a path problem.  
Finn

---

<div class="post-metadata">

**Author:** ![Luiz\_Mattos](https://avatars.discourse-cdn.com/v4/letter/l/22d042/32.png) [@Luiz\_Mattos](https://techcommunity.softwareag.com/u/Luiz_Mattos)\
**Post date:** [January 8, 2009, 5:59pm UTC](https://techcommunity.softwareag.com/t/softwareag-entirex-netwrapper-runtime-xexception-20020000/79835/3 "2009-01-08T17:59:05Z")

</div>

Thanks for the answer Finn.

I’ve tried the workaround described in the docid above and I’m still having the same exception. Also, that document is related to Win2003 Standard edition, but not the 64bit version. The 64bit version creates the Software AG folder under Program Files (x86)/Common Files directory, which is not mentioned on the referred document.

Is there another suggestion that I should follow?

---

<div class="post-metadata">

**Author:** ![Finn\_the\_Dane1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/finn_the_dane1/32/132_2.png) [@Finn\_the\_Dane1](https://techcommunity.softwareag.com/u/Finn_the_Dane1)\
**Post date:** [January 8, 2009, 6:04pm UTC](https://techcommunity.softwareag.com/t/softwareag-entirex-netwrapper-runtime-xexception-20020000/79835/4 "2009-01-08T18:04:46Z")

</div>

Hi Luiz,  
and where does the SAG\_COMMON environment-var. then point to ?

- also the …(x86).… ?  
Finn

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [January 8, 2009, 6:19pm UTC](https://techcommunity.softwareag.com/t/softwareag-entirex-netwrapper-runtime-xexception-20020000/79835/5 "2009-01-08T18:19:01Z")

</div>

I think this will not work in a 64 bit environment because the required DLLs are 32 bit DLLs and the .Net component is 64 bit.

---

<div class="post-metadata">

**Author:** ![Luiz\_Mattos](https://avatars.discourse-cdn.com/v4/letter/l/22d042/32.png) [@Luiz\_Mattos](https://techcommunity.softwareag.com/u/Luiz_Mattos)\
**Post date:** [January 26, 2009, 7:32pm UTC](https://techcommunity.softwareag.com/t/softwareag-entirex-netwrapper-runtime-xexception-20020000/79835/6 "2009-01-26T19:32:12Z")

</div>

Finn:  
The variable is pointing to ‘C:\Program Files (x86)\Common Files\Software AG’

Rolf:  
Yes, as it turns out, the customer support told us that the .NET component is not validated for 64 bits environment, so thats the problem.

Thanks for the answers.

Regards.

---

<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, 2:51pm UTC](https://techcommunity.softwareag.com/t/softwareag-entirex-netwrapper-runtime-xexception-20020000/79835/7 "2021-04-02T14:51:18Z")

</div>


