Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.remoting
Re: Remoting Error (Urgent Stuck up
Ken Kolda
9/15/2004 10:12:00 PM
You've declared your object as a <wellknown> object in the server's config
file and as an <activated> object in the client's config file -- these are
not compatible declarations. Given that you're using Activator.GetObject(),
you probably want a well-known object, so you need to fix your client's
config file to use <wellknown> as well.
Also, you need to specify the objectURI for your wellknown object in the
server's config file, e.g.
<wellknown ... objectUri="ClassMasters.ClsCountry"/>
Ken
"Manish Joisar via .NET 247" <anonymous@dotnet247.com> wrote in message
news:O%23nDWS1mEHA.3452@TK2MSFTNGP15.phx.gbl...
> My object has been actviated thru activator.Getobject
>
> Obj_ClsCountry = Activator.GetObject(GetType(ClassMasters.ClsCountry),
"http://M43:8228/ClassMasters.ClsCountry")
>
> But when i refer to any method in it it gives erro as
>
> Run-time exception thrown : System.Runtime.Remoting.RemotingException -
Requested Service not found
>
> Server Config.file
>
> <configuration>
> <system.runtime.remoting>
> <application>
> <channels>
> <channel ref="http" port="8228">
> <serverProviders>
> <provider ref="wsdl" />
> <formatter ref="soap" typeFilterLevel="Full" />
> <formatter ref="binary" typeFilterLevel="Full" />
> </serverProviders>
> <clientProviders>
> <formatter ref="binary" />
> </clientProviders>
> </channel>
> </channels>
> <service>
> <wellknown mode="Singleton"
type="ClassMaster.ClsCountry,ClsCountry"/>
> </service>
> </application>
> </system.runtime.remoting>
> </configuration>
>
>
> Client side Config
> ------------------
> <configuration>
> <system.runtime.remoting>
> <application>
> <channels>
> <channel ref="http">
> </channel>
> </channels>
> <client url="http://M43:8228">
> <activated type="ClassMasters.ClsCountry, ClsCountry"/>
> </client>
> </application>
> </system.runtime.remoting>
> </configuration>
>
>
>
>
>
>
> From: Manish Joisar
>
> -----------------------
> Posted by a user from .NET 247 (
http://www.dotn...
)
>
> <Id>moS/6M9QREWkNARPQnkIXQ==</Id>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Remoting Error (Urgent Stuck up
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password