[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

microsoft.public.dotnet.framework.remoting

Remoting Through IIS ....... some correction here

Jalal Akram

7/3/2004 9:01:00 PM

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 obj = 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