[lnkForumImage]
TotalShareware - Download Free Software

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


 

Allen Anderson

7/6/2004 3:31:00 AM

are you sure you are actually getting the remote object in the first
place? Have you put breakpoints in the server?

On Sat, 3 Jul 2004 21:38:55 +0500, "Jalal Akram"
<jalal_akram@hotmail.com> wrote:

>My WindowsForm client app access my remote server application hosted by IIS. The problem is that client is not accessing server through remoting mechanism, because if I stop IIS service even after that both keep working, although server should have to stop responding. So it looks like that server is not being served by IIS but it's being served directly as a simple DLL service. can anyone help me resolve?
>
>some of my main code stuff are following
>
> WEB.CONFIG File
><configuration>
> <system.runtime.remoting>
> <application>
>
> <service>
> <wellknown
> mode="SingleCall"
> objectUri="MYService.rem"
> type="CardBuzz.Server.CardBuzzServer, CardBuzz.Server"/>
> </service>
>
> </application>
> </system.runtime.remoting>
></configuration>
>
><configuration>
> <system.runtime.remoting>
> <application>
>
>CARDBUZZ.CLIENT.EXE.CONFIG File
> <client>
> <wellknown
> type="CardBuzz.Server.CardBuzzServer, CardBuzz.Server"
> url="HTTP://localhost:80/CardBuzzServer/MYService.rem"/>
> </client>
>
> <channels>
> <channel ref="http">
> <clientProviders>
> <formatter ref="binary"/>
> </clientProviders>
> </channel>
> </channels>
>
> </application>
> </system.runtime.remoting>
></configuration>
>
>Coding at client
>RemotingConfiguration.Configure("CardBuzz.Client.exe.config");
>CardBuzzServer service = new CardBuzzServer();
>MessageBox.Show("Server time is: " + obj.GetServerTime());
>
>Server Coding
>namespace CardBuzz.Server
>{
> public class CardBuzzServer: MarshalByRefObject
>
> {
> public CardBuzzServer()
> {
> Console.WriteLine("New Object created");
> }
> }
>}
>
>
>Thanking all in anticipation