Application behaves differently when running in VS2005 and direct from exe file
-
Hi all , My app connects via remoting to a different server. Suddenly it stopped connecting. I tried to debug it and it connects perfectly . :wtf: running it directly from the exe file causes it not to establish connection my guess was the myapp.vshost.exe of course, but I dont know where to go from there. any suggestion ? A bit more info about my system : A. windows 2003 servers (both client and server ) B. VS2005 and let's assume that my server name and port (strings) are hardcoded cause I double checked them on runtime. C. as always, this bug happend suddenly :cool:
-
Hi all , My app connects via remoting to a different server. Suddenly it stopped connecting. I tried to debug it and it connects perfectly . :wtf: running it directly from the exe file causes it not to establish connection my guess was the myapp.vshost.exe of course, but I dont know where to go from there. any suggestion ? A bit more info about my system : A. windows 2003 servers (both client and server ) B. VS2005 and let's assume that my server name and port (strings) are hardcoded cause I double checked them on runtime. C. as always, this bug happend suddenly :cool:
What error do you get? You need to catch and log any exception that occurs so you get some clue as to what went wrong.
Simon
-
What error do you get? You need to catch and log any exception that occurs so you get some clue as to what went wrong.
Simon
ok, i get the following exception "Unable to establish connection to server via RemotingAn error occurred while processing the request on the server: Server encountered an internal error. To get more info turn on customErrors in the server's config file." It occurs in the client whenever I call one of my proxy's method. The weird thing is that sometimes I dont get it when I run from the exe file. usually when the client is inactive and for a long time. then I connect to the remote successfully. but most of the times I get that exception. I Never get it when I run from debug, and that's what I am trying to figure out . 10x.
-
ok, i get the following exception "Unable to establish connection to server via RemotingAn error occurred while processing the request on the server: Server encountered an internal error. To get more info turn on customErrors in the server's config file." It occurs in the client whenever I call one of my proxy's method. The weird thing is that sometimes I dont get it when I run from the exe file. usually when the client is inactive and for a long time. then I connect to the remote successfully. but most of the times I get that exception. I Never get it when I run from debug, and that's what I am trying to figure out . 10x.
I suggest you do exactly what it says. It suggests the error is occurring on the server. Turn on logging on the server. If possible, run the server in debug mode (with VS attached) and see if the server methods are actually getting hit. At a guess I'd say it's could be some kind of authorisation problem. Maybe a firewall? blocking the app, but not when run through VS. Or perhaps security permissions on the server or remote objects.
Simon
-
ok, i get the following exception "Unable to establish connection to server via RemotingAn error occurred while processing the request on the server: Server encountered an internal error. To get more info turn on customErrors in the server's config file." It occurs in the client whenever I call one of my proxy's method. The weird thing is that sometimes I dont get it when I run from the exe file. usually when the client is inactive and for a long time. then I connect to the remote successfully. but most of the times I get that exception. I Never get it when I run from debug, and that's what I am trying to figure out . 10x.
From what you have explained, it looks like the connection is timing out. Increasing the timeout time might fix the problem. Hope this helps :), Prateek