[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

Exception: cannot call non-public or static methods remotely

ajafry

7/21/2004 3:01:00 PM

Hi,
I am trying to call a method on an SAO which contains the following
lines of code:
.....lines removed.....
SqlDataAdapter da = new SqlDataAdapter(cmd);
da.Fill(myDataTable); // Exception is thrown here
.....lines removed.....
An exception gets thrown at da.Fill, reading:
***begin exception text***
Got an exception Permission denied: cannot call non-public or static
methods remotely.
***end exception text***

Fill is not a static or non-public method at all. What is going on
with this?

Is this not allowed while remoting? Is there a workaround?

Thanks,

Ali