# .net RPC logon problem

**URL:** <https://techcommunity.softwareag.com/t/net-rpc-logon-problem/58971>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [March 11, 2004, 11:43pm UTC](https://techcommunity.softwareag.com/t/net-rpc-logon-problem/58971 "2004-03-11T23:43:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Euro](https://avatars.discourse-cdn.com/v4/letter/e/4da419/32.png) [@Euro](https://techcommunity.softwareag.com/u/Euro)\
**Post date:** [March 11, 2004, 11:43pm UTC](https://techcommunity.softwareag.com/t/net-rpc-logon-problem/58971/1 "2004-03-11T23:43:11Z")

</div>

Hi,   
   
I am making a call to a Nat Subprogram via RPC and .net wrapper using the logon opcion   
  
The RPC Server has LOGONRQ=ON  
  
My .net code look like this   
  
  
#region Constructor(s) etc for LIBRARY ‘SISAUT’  
  
 public bool NaturalLogon=true;  
 public SISAUT() : base() {}  
 public SISAUT(Broker broker) : base ( broker ) {}  
 public SISAUT(Service service) : base ( service ) {}  
  
#endregion  
#region Method/Function for LIBRARY ‘SISAUT’ PROGRAM ‘ARBAW050’  
  
 [Program(“ARBAW050”)]  
  
 public void Arbaw050(  
 [SendAs(IdlType.A, Length=13f, Dim=1f, Dim2=200f)][Out] out StringBuilder[,] arregl  
 ){  
 arregl = new StringBuilder[1,200] ;  
  
 service.UserIDAndPassword(“PRAMM6”,“XML001”);  
 service.Send(  
 this.GetType().GetMethod(“Arbaw050”),  
 arregl  
 );  
 }  
  
#endregion  
  
and as a result I get the following error  
  
  
10010012: Authorization or initialization failed. Lib=SYSRPC,Pgm=ARBAW050,(NATURAL Error Info: Program=ARBAW050,Error=6975,Line=9999,Status=O,Level=01).   
  
  
  
Any clue will be appreciate…

---

<div class="post-metadata">

**Author:** ![Dietmar\_Gartner](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/dietmar_gartner/32/127_2.png) [@Dietmar\_Gartner](https://techcommunity.softwareag.com/u/Dietmar_Gartner)\
**Post date:** [March 12, 2004, 5:13pm UTC](https://techcommunity.softwareag.com/t/net-rpc-logon-problem/58971/2 "2004-03-12T17:13:11Z")

</div>

Hi Euridici,  
  
I’m trying to reproduce the problem and am following a trace. Are you using conversational calls?  
  
Regards, Dietmar.

---

<div class="post-metadata">

**Author:** ![Dietmar\_Gartner](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/dietmar_gartner/32/127_2.png) [@Dietmar\_Gartner](https://techcommunity.softwareag.com/u/Dietmar_Gartner)\
**Post date:** [March 12, 2004, 8:49pm UTC](https://techcommunity.softwareag.com/t/net-rpc-logon-problem/58971/3 "2004-03-12T20:49:19Z")

</div>

Hi Euridici,  
  
it seems like there is missing a  
  
 service.NaturalLogon = true;  
  
statement in your code.  
  
Regards, Dietmar.

---

<div class="post-metadata">

**Author:** ![Euro](https://avatars.discourse-cdn.com/v4/letter/e/4da419/32.png) [@Euro](https://techcommunity.softwareag.com/u/Euro)\
**Post date:** [March 12, 2004, 9:54pm UTC](https://techcommunity.softwareag.com/t/net-rpc-logon-problem/58971/4 "2004-03-12T21:54:16Z")

</div>

Ups… You are totally right   
  
Now it works  
  
Thanks Mr. Dietmar.

---

<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:39pm UTC](https://techcommunity.softwareag.com/t/net-rpc-logon-problem/58971/5 "2021-04-02T14:39:34Z")

</div>


