Am i calling a local proxy or a remote object?!

  • Thread starter Thread starter Julia
  • Start date Start date
J

Julia

Hi,

I have a windows application which create a singleton remote object
And a net application which call the remote object

both on the same machine(windows 2000,iis 5.0)

here is the code in the webapplication:

try

{


MyServer server = new MyServer();

server.Update(this.Request.Params["Password"],this.Request.Params);

this.Response.Write(GetRefreshScript());

}

catch(Exception ex)

{

Response.Write("There was an error updaing the server ,please\r\n" +

"Make sure it is running and then try again");

Response.Write(ex.Message);

Response.Write(ex.StackTrace);

}


-It appears that there is no exception but the server doesn't get called!!!
-the server doesnot throw custom exceptions
-It is working fine on our development machines
-The web.config is the same as my devlopment web.config.

Thanks in advance.
 
BTW my server dll installed in the GAC
Do I need to use a Qualified Name name or something?!?

Thanks
 
If you want to verify that you have created a local instance instead of
getting a proxy to a remote instance, use
RemotingServices.IsTransparentProxy(). You would need to post your
web.config in order to help diagnose why this wouldn't be calling your
server.

Ken
 
The problems appears only when the dll server is installed in the GAC!!


Ken Kolda said:
If you want to verify that you have created a local instance instead of
getting a proxy to a remote instance, use
RemotingServices.IsTransparentProxy(). You would need to post your
web.config in order to help diagnose why this wouldn't be calling your
server.

Ken


Julia said:
Hi,

I have a windows application which create a singleton remote object
And a net application which call the remote object

both on the same machine(windows 2000,iis 5.0)

here is the code in the webapplication:

try

{


MyServer server = new MyServer();

server.Update(this.Request.Params["Password"],this.Request.Params);

this.Response.Write(GetRefreshScript());

}

catch(Exception ex)

{

Response.Write("There was an error updaing the server ,please\r\n" +

"Make sure it is running and then try again");

Response.Write(ex.Message);

Response.Write(ex.StackTrace);

}


-It appears that there is no exception but the server doesn't get called!!!
-the server doesnot throw custom exceptions
-It is working fine on our development machines
-The web.config is the same as my devlopment web.config.

Thanks in advance.
 
Back
Top