How to run ASP file from Client machine in an intranet??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • winash
    New Member
    • Nov 2008
    • 6

    #1

    How to run ASP file from Client machine in an intranet??

    Hi all,
    I am working on an ASP application and the code is almost ready..but i am unable to run those files from the clients browser. I was testing the files as
    http://localhost/<file_name>.a sp

    Please tell me how can run ASP file from another machine on the same network without actually installing IIS on client machine.

    Please help !!
  • DrBunchman
    Recognized Expert Contributor
    • Jan 2008
    • 979

    #2
    Hi winash,

    Welcome to Bytes.com! I hope you find the site useful.

    ASP pages will only run through IIS so if you want another machine to be able to browse your pages you will need to set up your website on a server that the machine has access to or install IIS on that machine and copy the files to it.

    Hope this helps,

    Dr B

    Comment

    • winash
      New Member
      • Nov 2008
      • 6

      #3
      Thanks Dr. B,
      But I have already set up all my files on the server n I have given users all the permissions. I am using Access at the back end. When I try to open asp file from user's machine asp code does not get executed and browser displays that.
      Please reply!!

      Comment

      • DrBunchman
        Recognized Expert Contributor
        • Jan 2008
        • 979

        #4
        How are you trying to browse the site from the users machine? To browse a site located on the IIS of a different machine you need to use the following url pattern:

        //<server name or IP address>/<virtual directory or website name>/<page name.asp>

        Is this how you've been browsing the site? If not give that a go. If you have done this then what is the message that is displayed in the browser?

        Dr B

        Comment

        • winash
          New Member
          • Nov 2008
          • 6

          #5
          Originally posted by DrBunchman
          How are you trying to browse the site from the users machine? To browse a site located on the IIS of a different machine you need to use the following url pattern:

          //<server name or IP address>/<virtual directory or website name>/<page name.asp>

          Is this how you've been browsing the site? If not give that a go. If you have done this then what is the message that is displayed in the browser?

          Dr B
          I installed IIS on my machine (windows XP) and created one folder "SRTS" in the wwwroot directory. From there I was running asp file as

          localhost/SRTS/login.asp

          Now I dont know how to run it from another machine without actually installing IIS. I believe tht IIS is not required on every machine.
          I tried following url:
          192.168.1.206/localhost/SRTS/login.html
          This gave me Page Not Found error!!

          Comment

          • winash
            New Member
            • Nov 2008
            • 6

            #6
            I also tried to run it as
            192.168.1.206/c:/inetpub/wwwroot/SRTS/login.asp

            this loads my page but without running the asp code!!

            Help me !

            Comment

            • DrBunchman
              Recognized Expert Contributor
              • Jan 2008
              • 979

              #7
              Try 192.168.1.206/SRTS/login.html

              localhost is the servername when you are browsing the site from the machine that the IIS is on - you don't use it when browsing it remotely.

              Let me know if that works

              Dr B

              Comment

              • winash
                New Member
                • Nov 2008
                • 6

                #8
                I tried following url:

                192.168.1.206/SRTS/login.html
                But it gives error:

                "Page can not be displayed"

                Please tell me what all access permission settings I need to do at the client side.

                Thanks a lot

                Comment

                • winash
                  New Member
                  • Nov 2008
                  • 6

                  #9
                  Thanks Dr. B

                  I got it!!!!

                  Windows Firewall on my server was not set to allow HTTP.
                  I set it to allow HTTP and added default.asp page in wwwroot folder. and Thats it!!!!!!!!!!!

                  Thank u a lot!!!
                  winash

                  Comment

                  • DrBunchman
                    Recognized Expert Contributor
                    • Jan 2008
                    • 979

                    #10
                    No problem winash, glad you got it sorted :-)

                    Comment

                    Working...