Hello, I have a singleton remote object hosted under IIS. I have a winform client which invokes method on the remote object . This triggers an event on the remote object and invokes the call back function on various client subscribed to it. But when the windows control library hosted under IE is a client, an exception is thrown displaying object reference not set. On debugging, i realized that the event object is null in the Remote Object. Is my approach correct of excepting a callback on a Winform control hosted under IE from a Remote Object hosted in IIS ...........
I feel though the Server Object is singleton , the state is not being retained between client invocations. i,e between the Winform client and the WIndows Control hosted in IE. The Stack trace is as shown below ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at HelloWorldObject.Hello.HelloWorld(String str) at WindowsControl.UserControl1.UserControl1_Load(Object sender, EventArgs e) in c:\documents and settings\giriktv\my documents\visual studio projects\remoting\windowscontrol\usercontrol.cs:line 138 at System.Windows.Forms.UserControl.OnLoad(EventArgs e) at System.Windows.Forms.UserControl.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) The web.config is shown below <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application> <service> <wellknown mode="Singleton" type="HelloWorldObject.Hello,HelloWorldObject" objectUri="Hello.soap" /> </service> <channels> <channel ref="http" /> </channels> </application> </system.runtime.remoting> </configuration> Regards Giri You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.