Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Remoting / May 2005

Tip: Looking for answers? Try searching our database.

Public member 'App' on type 'MarshalByRefObject' not found

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Great Hackomania - 19 May 2005 09:45 GMT
Hello Everyone,

I have converted a webservice to a remote class.
and now i am trying to call methods.
I need some parameters to pass in those function.
for that i have made a class in the client Program which can hold these
paramenters now i am passing this class object to the remote method.

but it is giving me an error
"Public member 'App' on type 'MarshalByRefObject' not found"

Please somebody help me out.
I need it most urgent.
Please let me know how i can pass parameters to the remote class's method.

ASP HUNTER
Dan Kelley - 19 May 2005 16:36 GMT
You will need to post some code to demonstrate your problem.

Passing parameters to a remote object is performed in exactly the same way
as a passing parameters to a local method.

However, if your parameters are of types you have defined (i.e. classes you
have defined) then these classes must be marked as Serializable to be able to
leave your local AppDomain.

HTH
Dan

> Hello Everyone,
>
[quoted text clipped - 12 lines]
>
> ASP HUNTER
Great Hackomania - 23 May 2005 10:14 GMT
Hello,

Thanks for your help.

I have made some methods that use the HttpApplicationState Object.
I have made a remoting class, now what i have to do is to pass my webforms
application state into that method with a string parameter.

But when I try to do this it gives me error.

My Program structure is like
1.Server Program: That will wait for client.It Uses the Http Channel and
the Binary formatter.

2.Remote Class: Basically this will declare and define all the methods that
were in my WebService.

3.Client Program: That is a WebBased Application, and will call these
methods on user request.

Now I have to Pass my HttpApplicationState Object of the Web App to the
Remote class's Method.

Can you please tell me how I can do this?

Thanks

ASP HUNTER

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.