Hello, All-
As a new person here, I appreciate the guidance I've gotten from the forum. I'd like to make a contribution of my own.
I have a website that for many reasons MUST use .NET. Here's a summary of what I learned and how I got the thing to work, which will hopefully help out some other poor miscreant soul.
Using: XP Professional, Visual Studio .NET 2008, Zoom 5.x
Step 1: You can't run the CGI under "Cassini", the micro-webserver that comes with .NET. For that matter, you can't run .asp pages either. So make sure you install Microsoft IIS on your workstation before continuing. The install will create a c:\inetpub\wwwroot directory automatically.
Step 2: For the sake of clarity, let's create a directory called "siteSearch" in the inetpub\wwwroot directory. Using the IIS Admin panel, right-click on the "siteSearch" folder, select "properties" and make sure "Execute Premissions" is set to "Scripts and Executables".
Step 3: Do that Zoom thing (select CGI as output type), and then copy all of your files to the directory from Step 2.
Step 4: Test it by going to http://localhost/siteSearch/search.cgi. Enter a couple of search terms to test it out. You should get results now. If not, check steps 1-3.
Step 5: THIS HELD ME UP FOR HOURS! If you're using an ASP.NET page as directed in the FAQs on this site, DO NOT place the code in the FAQ inside your <form id=whatever runat=server></form> tags. You CAN do just about whatever else you want with the ASPX page, but if you place the code inside the form tags you WILL NOT see search results.
Step 5 Explained: The very confusing thing is that if you do include it inside the <form> tags, you'll still see the search form and everything BUT search results. I do not know if this is true for forms that do not have the runat attribute set to "server". (I suspect not.)
After you get it working, it's amazing.
I hope this helps someone as much as I've been helped by all here. If I've made any misstatements or have left anything out, feel free to jump in.
As a new person here, I appreciate the guidance I've gotten from the forum. I'd like to make a contribution of my own.
I have a website that for many reasons MUST use .NET. Here's a summary of what I learned and how I got the thing to work, which will hopefully help out some other poor miscreant soul.
Using: XP Professional, Visual Studio .NET 2008, Zoom 5.x
Step 1: You can't run the CGI under "Cassini", the micro-webserver that comes with .NET. For that matter, you can't run .asp pages either. So make sure you install Microsoft IIS on your workstation before continuing. The install will create a c:\inetpub\wwwroot directory automatically.
Step 2: For the sake of clarity, let's create a directory called "siteSearch" in the inetpub\wwwroot directory. Using the IIS Admin panel, right-click on the "siteSearch" folder, select "properties" and make sure "Execute Premissions" is set to "Scripts and Executables".
Step 3: Do that Zoom thing (select CGI as output type), and then copy all of your files to the directory from Step 2.
Step 4: Test it by going to http://localhost/siteSearch/search.cgi. Enter a couple of search terms to test it out. You should get results now. If not, check steps 1-3.
Step 5: THIS HELD ME UP FOR HOURS! If you're using an ASP.NET page as directed in the FAQs on this site, DO NOT place the code in the FAQ inside your <form id=whatever runat=server></form> tags. You CAN do just about whatever else you want with the ASPX page, but if you place the code inside the form tags you WILL NOT see search results.
Step 5 Explained: The very confusing thing is that if you do include it inside the <form> tags, you'll still see the search form and everything BUT search results. I do not know if this is true for forms that do not have the runat attribute set to "server". (I suspect not.)
After you get it working, it's amazing.
I hope this helps someone as much as I've been helped by all here. If I've made any misstatements or have left anything out, feel free to jump in.
Comment