[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

microsoft.public.dotnet.framework.remoting

Mapping virtual paths from a remote object

sprungli

9/13/2004 4:21:00 PM

My remote object is hosted in an ASP.NET web application on an IIS server.
The two are developed as independent modules. What links them is the
reference to the remote object in the <system.runtime.remoting> element of
the web.config file of the web app and the DLL of the remote object in its
/bin folder. In one scenario, a remote object's client wants to access
another server resource - a file - within the web app. Of course, the client
ignores the real path to the resource and passes just its virtual path to
the remote proxy. It is up to the remote object to map the virtual to the
physical path on the server. To do this I intended using the MapPath method
on the web application's Server object, but it is not accessible from the
remote object since they are not part of the same application domain. So my
question: how to make the remote object talk to the host web app and obtain
the mapping from it.

Many thanks in advance.