PassMark Logo
Home » Forum

Beginners Question - ASP code showing in browser

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Neil Hanrahan
    Junior Member
    • Sep 2008
    • 7

    #1

    Beginners Question - ASP code showing in browser

    Hello,

    I am new to using zoom search so please bare with me. I have an intranet which has been created and I want to use zoom search to search my storage servers which are on seperate computers to the intranet.

    I indexed the sotrage computers and then directed the output file to a folder called Search on my intranet server. The zoom files where created. I then read the userguide and it said to start using the search you sipmly load search.asp into your browser. I did this and all it did was show me the code from search.asp.
    When I load the search_template the search field is not there.

    I then noticed on the userguide there was a part that said enter this code into the searh_template.htm :

    <form method="GET" action="search.asp">
    <input type="text" name="zoom_query" size="20">
    <input type="submit" value="Search">
    Results per page:
    <select name="zoom_per_page">
    <option selected>10</option>
    <option >20</option>
    <option >100</option>
    </select>
    <br><br>
    Match:
    <input type="radio" name="zoom_and" value="0" checked>
    any search words
    <input type="radio" name="zoom_and" value="1">
    all search words
    </form>

    I then loaded the search_template and was given a search bar to use. I entered a simple search called "test" and all i got given was the code from search.asp?

    Can any one help?
  • David
    Administrator
    • Dec 2004
    • 4714

    #2
    See this FAQ.
    Q. I've indexed the site, uploaded the files, but I only see the search script code when I open the search page in my browser (or get a prompt asking if i want to download it)

    Comment

    • Neil Hanrahan
      Junior Member
      • Sep 2008
      • 7

      #3
      I have IIS on my machine so I dont know why the page is not loading?

      Comment

      • David
        Administrator
        • Dec 2004
        • 4714

        #4
        If you are seeing ASP code in the browser then the server is not executing the ASP code. Have you checked your IIS configuration? (Or contacted the hosting company / server admin person)

        Comment

        • Neil Hanrahan
          Junior Member
          • Sep 2008
          • 7

          #5
          Its an intranet and I am the Admin of the server that runs IIS. I have just gone into the IIS options and ASP is Allowed on the Webservice Extensions tab

          Comment

          • David
            Administrator
            • Dec 2004
            • 4714

            #6
            Make a simple ASP "hello world" script.
            <% Response.Write("Hello World!") %>
            and place it in the same folder as the search.asp script and see if it works.

            Comment

            • Ray
              Administrator
              • Dec 2004
              • 4357

              #7
              If you're using IIS 7, you need to enable and install "Classic ASP". ASP.NET is not the same as ASP. Consult Microsoft documentation for help on configuring your IIS server.
              --Ray
              Wrensoft Web Software
              Sydney, Australia
              Zoom Search Engine

              Comment

              • Neil Hanrahan
                Junior Member
                • Sep 2008
                • 7

                #8
                Im using IIS6, I keep getting the prompt to download the search.asp script. ASP is definately enabled :

                http://img516.imageshack.us/my.php?image=54033998lr5.jpg

                Comment

                • David
                  Administrator
                  • Dec 2004
                  • 4714

                  #9
                  Your screen shot of the IIS configuration shows ASP to be prohibited. But ASP.NET to be allowed.
                  As Ray already pointed out ASP is not the same as ASP.NET.

                  Comment

                  • Neil Hanrahan
                    Junior Member
                    • Sep 2008
                    • 7

                    #10
                    Even with "Active Server Pages" AND "ASP.Net" enabled the same problem occurs

                    Comment

                    • Ray
                      Administrator
                      • Dec 2004
                      • 4357

                      #11
                      As pointed out, what you are describing indicates very clearly that ASP is not correctly enabled or configured on your server.

                      The only other possibility is if you are not accessing your Intranet web server at all and you are accessing the server via a local file path.

                      For example, to access your web server, you should be using a URL like:
                      http://myserver/mysite/search.asp

                      And not a path like
                      \\myserver\mysite\search.asp

                      The latter would not be accessing the web server at all, and you'd be accessing the file via the file system.

                      Having said that, if it's not the above, then I would recommend consulting IIS documentation to see what has gone wrong with your IIS setup and configuration.
                      --Ray
                      Wrensoft Web Software
                      Sydney, Australia
                      Zoom Search Engine

                      Comment

                      • Ray
                        Administrator
                        • Dec 2004
                        • 4357

                        #12
                        Another tip: try restarting the machine after you change IIS configuration.
                        --Ray
                        Wrensoft Web Software
                        Sydney, Australia
                        Zoom Search Engine

                        Comment

                        • Neil Hanrahan
                          Junior Member
                          • Sep 2008
                          • 7

                          #13
                          Thanks for the help Ray, problem fixed! the Base Url i was using was wrong, Thanks again Ray

                          Comment

                          Working...