Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# Remoting

C# Remoting

Scheduled Pinned Locked Moved C#
csharphelpquestionwcfcom
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jdkulkarni
    wrote on last edited by
    #1

    Can anybody tell me that, if i'm using .NET remoting server with SAO, how can i raise an event across different application domains? the application wors fine when on the same machine but creates problem when I try using server and client on different machine. The error description and stack trace is: I tried with microsoft solution which says that u create an abstract class and override it in client and handle events there. But it does not work for me. Here is the error: Exception occured at server. Message: Server encountered an internal error. For more information, turn on customError s in the server's .config file. Stack trace: Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage req Msg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgDa ta, Int32 type) at Coordinator.RemotableDelegate.WelComeMessage(ChatArgs ca) in E:\Jayant\Pra ctice\MyChatArchitecture\Coordinator\IMediator.cs:line 139 at MarshalByRefClass.Mediator.ConnectMe(String userName) in E:\Jayant\Practic e\MyChatArchitecture\MarshalByRefClass\Mediator.cs:line 49 I'm not using any App.config file. My server code is as follows. // For Http channel try { SoapClientFormatterSinkProvider scl = null; SoapServerFormatterSinkProvider ssr = new SoapServerFormatterSinkProvider(); ssr.TypeFilterLevel = TypeFilterLevel.Full; IWebProxy proxy = new WebProxy("proxy.sharda.mahindrabt.com", 80); ICredentials ic = new NetworkCredential("myself", "123"); proxy.Credentials = ic; IDictionary id = new Hashtable(); id["port"] = 9113; id["typeFilterLevel"] = TypeFilterLevel.Full; id["name"] = System.Guid.NewGuid().ToString(); id["proxyName"] = "proxy.sharda.mahindrabt.com"; id["proxyPort"] = 80; id["machineName"] = "DSCP01214Jayant"; id["credentials"] = ic; id["unsafeAuthenticatedConnectionSharing"] = true; HttpChannel htc = new HttpChannel(id, scl, ssr); ChannelServices.RegisterChannel(htc); RemotingConfiguration.RegisterWellKnownServiceType(typeof (Mediator), "Chat.soap", WellKnownObjectMode.Singleton); Console.Wr

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups