Assemblies: System.Text.UTF8Encoding, mscorlib ... was not f

Posted by clopes on 23-Sep-2010 05:52

Client Software:

Windows server 2003

FrameWork v2.0 and v3.0

Progress 10.1B license only OE Studio

Environment Variables:
Path=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;....
DLC=C:\OE10
IDLC=%DLC%\BIN

"System.Text.UTF8Encoding, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" was not found. (293)

MyProgram.cls

USING Progress.Lang.*.
USING System.Text.*.

CLASS MyProgram:
   
    CONSTRUCTOR PUBLIC MyProgram (  ):
        SUPER ().
    END CONSTRUCTOR.
   
METHOD PUBLIC CHAR GetTMP(cString AS CHAR):
  DEFINE VARIABLE data             AS  CLASS "System.Byte[]"            NO-UNDO.
  DEFINE VARIABLE encoding      AS  CLASS "System.Text.UTF8Encoding" NO-UNDO.

    encoding = NEW System.Text.UTF8Encoding().
    data = encoding:GetBytes(cString).
    RETURN System.Convert:ToBase64String(data).
END METHOD.


END CLASS.

if System.Text.UTFA comment and leave only the System.Byte[], its works..

I am not able to understand the basic problem behind it. If you are having any solution for that, then please provide that to me.

All Replies

Posted by Admin on 23-Sep-2010 06:01

Progress 10.1B license only OE Studio

 

10.1B or 10.2B?

.NET Access has only been added in 10.2A and wasn't available in 10.1B...

Posted by clopes on 23-Sep-2010 13:18

Hi Mike,

The client is the version 10.1b.

Leaving the System.Byte Class the program work fine, but if i leave the class system.text.utf8encoding don't work. If you say the ".NET Access has only been added in 10.2A and wasn't available in 10.1B..." why runing the class System.Byte the program can acess to .Net and why not acess system.text.... ?

Any ideas ?

Thks.

Posted by Admin on 23-Sep-2010 13:31

The client is the version 10.1b.

 

Sorry.

When that's really the version used to compile and/or run this I can't believe that's supposed to work. Both with System.Byte[] and the UTF8Encoding.

This thread is closed