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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to find the Application path of a Window application through Web Service

How to find the Application path of a Window application through Web Service

Scheduled Pinned Locked Moved ASP.NET
helpsysadmintutorialquestion
2 Posts 1 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.
  • K Offline
    K Offline
    K Safvi
    wrote on last edited by
    #1

    Hi, I am using a Web service beween a Window application running on client and server mechines.The web service uploades the files and images on the server mechine. But i am having problem to find the application path on the server mechine. I used the following code but this returns the path of the web service rather than window application. System.Reflection.Module[] modules = System.Reflection.Assembly.GetExecutingAssembly().GetModules(); strApplicationPath = System.IO.Path.GetDirectoryName(modules[0].FullyQualifiedName); I need to find the path of window application through web service. can anybody help me?

    K 1 Reply Last reply
    0
    • K K Safvi

      Hi, I am using a Web service beween a Window application running on client and server mechines.The web service uploades the files and images on the server mechine. But i am having problem to find the application path on the server mechine. I used the following code but this returns the path of the web service rather than window application. System.Reflection.Module[] modules = System.Reflection.Assembly.GetExecutingAssembly().GetModules(); strApplicationPath = System.IO.Path.GetDirectoryName(modules[0].FullyQualifiedName); I need to find the path of window application through web service. can anybody help me?

      K Offline
      K Offline
      K Safvi
      wrote on last edited by
      #2

      Hi, For the time being i have found a solution. i am putting the window application path in the web.config of the webservice. As the application will be installed on the server mechine or the path changes, the web.config of the webservice will be updated. How is the solution.? Is it right appraoch? Thanks in advance.

      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