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. Application behaves differently when running in VS2005 and direct from exe file

Application behaves differently when running in VS2005 and direct from exe file

Scheduled Pinned Locked Moved C#
sysadmindebugginghelpquestionlearning
5 Posts 3 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.
  • S Offline
    S Offline
    stammailbox
    wrote on last edited by
    #1

    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:

    S 1 Reply Last reply
    0
    • S stammailbox

      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:

      S Offline
      S Offline
      Simon P Stevens
      wrote on last edited by
      #2

      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

      S 1 Reply Last reply
      0
      • S Simon P Stevens

        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

        S Offline
        S Offline
        stammailbox
        wrote on last edited by
        #3

        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.

        S P 2 Replies Last reply
        0
        • S stammailbox

          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.

          S Offline
          S Offline
          Simon P Stevens
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • S stammailbox

            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.

            P Offline
            P Offline
            Pr teek B h
            wrote on last edited by
            #5

            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

            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