473,382 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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

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.


Nov 16 '05 #1
3 1905
BTW my server dll installed in the GAC
Do I need to use a Qualified Name name or something?!?

Thanks

"Julia" <co********@012.net.il> wrote in message
news:eJ**************@tk2msftngp13.phx.gbl...
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.

Nov 16 '05 #2
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" <co********@012.net.il> wrote in message
news:eJ**************@tk2msftngp13.phx.gbl...
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.

Nov 16 '05 #3
The problems appears only when the dll server is installed in the GAC!!
"Ken Kolda" <ke*******@elliemae-nospamplease.com> wrote in message
news:uJ**************@TK2MSFTNGP11.phx.gbl...
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" <co********@012.net.il> wrote in message
news:eJ**************@tk2msftngp13.phx.gbl...
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.


Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Jorgen Haukland, Norway | last post by:
Hi, I have created a Java webservice which runs in IBM WebSphere appserver. I take the WSDL-file and create a VS.NET WinForm application and calls the service running on my PC and everything...
1
by: Davidhere40 | last post by:
I'm using a visual studio generated proxy to use the web services, but I can't seem to get it to switch from using a local version to the actual web based web service. It always always always uses...
0
by: gengyue | last post by:
Hi, Refer to my previous post "Calling web serive from JSP", I found an article on msfn2.microsoft.com. "Using the WebService behavior, it is not possible to call a remote method directly on a...
5
Sl1ver
by: Sl1ver | last post by:
I have this piece of code public bool Write(string KeyName, object Value) { try { // Setting string subKey1 =...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.