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. Web Development
  3. ASP.NET
  4. pointing to the outside folder

pointing to the outside folder

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
8 Posts 2 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.
  • H Offline
    H Offline
    hurrem
    wrote on last edited by
    #1

    Hi, I need to point to the folder that is outside of the root directory. For example, if my project name is SWB and it is located in SWB folder I need to point to the folder that is outside of SWB folder. Can I use Server.MapPath for that? Thanks!

    P 1 Reply Last reply
    0
    • H hurrem

      Hi, I need to point to the folder that is outside of the root directory. For example, if my project name is SWB and it is located in SWB folder I need to point to the folder that is outside of SWB folder. Can I use Server.MapPath for that? Thanks!

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      You could set this folder up in IIS as a virtual directory within your website.

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      H 1 Reply Last reply
      0
      • P pmarfleet

        You could set this folder up in IIS as a virtual directory within your website.

        Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

        H Offline
        H Offline
        hurrem
        wrote on last edited by
        #3

        Thanks for reply, Is the re any other way to do it without IIS, cause I don't have it.

        P 1 Reply Last reply
        0
        • H hurrem

          Thanks for reply, Is the re any other way to do it without IIS, cause I don't have it.

          P Offline
          P Offline
          pmarfleet
          wrote on last edited by
          #4

          What web server are you using to host your ASP.NET application if you're not using IIS?

          Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

          H 1 Reply Last reply
          0
          • P pmarfleet

            What web server are you using to host your ASP.NET application if you're not using IIS?

            Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

            H Offline
            H Offline
            hurrem
            wrote on last edited by
            #5

            I'm using Web Developer 2005, on Windows XP Media

            P 1 Reply Last reply
            0
            • H hurrem

              I'm using Web Developer 2005, on Windows XP Media

              P Offline
              P Offline
              pmarfleet
              wrote on last edited by
              #6

              asem0525 wrote:

              I'm using Web Developer 2005, on Windows XP Media

              You are confusing a web development tool with a web server. Visual Web Developer 2005 is a web development tool that allows you to create ASP.NET website. When you come to deploy your website to a production environment, you would need to install a web server such as IIS to host your website. IIS would be the obvious choice as it is a Microsoft product and has features specifically designed for running ASP.NET websites.

              Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

              H 1 Reply Last reply
              0
              • P pmarfleet

                asem0525 wrote:

                I'm using Web Developer 2005, on Windows XP Media

                You are confusing a web development tool with a web server. Visual Web Developer 2005 is a web development tool that allows you to create ASP.NET website. When you come to deploy your website to a production environment, you would need to install a web server such as IIS to host your website. IIS would be the obvious choice as it is a Microsoft product and has features specifically designed for running ASP.NET websites.

                Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

                H Offline
                H Offline
                hurrem
                wrote on last edited by
                #7

                well, yes, it is actually my school project and I don't think I'm gonna upload it to the Internet. is there a way to point to the folder outside of the root folder on my local computer?

                P 1 Reply Last reply
                0
                • H hurrem

                  well, yes, it is actually my school project and I don't think I'm gonna upload it to the Internet. is there a way to point to the folder outside of the root folder on my local computer?

                  P Offline
                  P Offline
                  pmarfleet
                  wrote on last edited by
                  #8

                  Unless you use a web server such as IIS to define an external folder as a virtual directory within your own website, I don't think you can do this.

                  Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

                  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