.Net Remoting [FieldAccessException]



Hi

I have an application written in .Net 2.0 using remoting. When remoting
is turned on at the client side I get the FieldAccessException. The
server is hosted in IIS and is therefore using http channel. The remote
class derives from MarshalByRefObject. The remote method just returns a
string. Here is some more information about the exception:

Source Error:

Line 24: 'Return aString
Line 25: Return "Test"
Line 26: End Function
Line 27:


Source File:
C:\Source\Reconciliation\App\BP2S.IT.Recs.App\ADFRemotingInterface.vb
Line: 26

Stack Trace:

[FieldAccessException: Attempted to access a field that is not
accessible by the caller.]

System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg) +1779522
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type) +826
BP2S.IT.Recs.App.ADFRemotingInterface.GetMenuJS(Int32 MenuId, Object
Principal) in
C:\Source\Reconciliation\App\BP2S.IT.Recs.App\ADFRemotingInterface.vb:26
BP2S.IT.Recs.Web.Menu_page.Page_Load(Object sender, EventArgs e) in
C:\Source\Reconciliation\Web\BNP.Is.Recs.Web\Menu_page.aspx.vb:55
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1061




Regards
AC

.



Relevant Pages

  • Re: .Net Remoting [FieldAccessException] - Workaround / Fix
    ... we are using .Net framework 2.0. ... for all the code in web and app tiers. ... Menus, Remoting and so on... ... parameters and return values in the remote method signatures. ...
    (microsoft.public.dotnet.framework.remoting)
  • passing object ByRef not updating object references
    ... I'm fairly new to remoting, and I'm running into problems passing ... objects as arguments to a remote method when there are multiple ... references to that object on the client. ...
    (microsoft.public.dotnet.framework.remoting)

Loading