Last post Sep 16, 2008 09:29 PM by mydreams
Jun 22, 2008 11:36 PM|chinnybloke|LINK
IIS was installed when I installed XP Pro but never used. I have VS Pro 2003 and VS Pro 2008 installed. I wanted to try out some C# ASP.Net programming (I usually do winforms and CompactFramework projects) but I failed at the first hurdle. I cannot get
anything from the default web site. IE gives a cannot display page error.
I have googled and found articles suggesting adding the web server to my network connections exceptions in Windows Firewall plus I've followed the instructions in another post about checking asp.net was registered by checking for the aspuser account. Everything
looks as it should be from what I have seen but I am getting nowhere still. I've even uninstalled IIS, reinstalled and re-registered iis with .net without any difference. I am sure it is something simple, but I just don't know what it is!
Here is a paste from a log file, I am using .net framework 2.
#Software: Microsoft Internet Information Services 5.1
#Date: 2008-06-23 02:17:18
#Fields: time c-ip cs-method cs-uri-stem sc-status
02:17:18 192.168.2.2 GET /iisstart.asp 302
02:17:18 192.168.2.2 GET /localstart.asp 401
02:17:46 192.168.2.2 GET /localstart.asp 500
02:17:56 192.168.2.2 GET /localhost 404
02:18:01 192.168.2.2 GET /iisstart.asp 302
02:18:01 192.168.2.2 GET /localstart.asp 401
02:18:01 192.168.2.2 GET /localstart.asp 500
02:18:03 192.168.2.2 GET /iisstart.asp 302
02:18:03 192.168.2.2 GET /localstart.asp 401
02:18:03 192.168.2.2 GET /localstart.asp 500
02:18:05 192.168.2.2 GET /iisstart.asp 302
02:18:05 192.168.2.2 GET /localstart.asp 401
02:18:05 192.168.2.2 GET /localstart.asp 500
02:18:26 192.168.2.2 GET /iisstart.asp 302
02:18:26 192.168.2.2 GET /localstart.asp 401
02:19:05 192.168.2.2 GET /localstart.asp 500
02:23:24 192.168.2.2 GET /iisstart.asp 302
02:23:24 192.168.2.2 GET /localstart.asp 401
02:23:34 192.168.2.2 GET /favicon.ico 404
Jun 23, 2008 09:39 AMfirstname.lastname@example.org|LINK
First, the localstart.asp file isn't ASP.NET, so you're not even trying your file. Create a simple Hello World application to test. Make sure IIS is cconfigured with the ASP.NET framework, and call the files on the URL, as in
http://localhost/HelloWorld.aspx. Make sure port 80 is open on the firewall or disable the firewall to test.
Jun 23, 2008 01:01 PM|chinnybloke|LINK
IIS is configured for .Net 2 framework.
I am working through a booked called Build Your Own ASP.Net 2.0 Web Site Using C# and VB published by Sitepoint.
I follow all of their steps and still no joy. Windows Firewall is now off. I have a learning virtual directory setup. In there I've put an index.htm to test and hello.aspx. Neither of which can be displayed. I've got SQL 2005 Developer installed, could
that be causing problems?
Jun 24, 2008 09:01 AM|christiandev|LINK
You have set up a virtual directory to your site right? What happens when you open IIS, go to your site, until you see the file structure in the right pane with the HTM file, right click on this and select browse....what happens?
Jun 24, 2008 09:10 AM|chinnybloke|LINK
I spent hours on this yesterday with no joy. This morning I started again, uninstalled IIS, reinstalled, re registerd iss with asp.net. Still no joy, I changed and tried, rechecked so many things. Then it started working. I'm not sure exactly what fixed
Anyway, I am very happy now and as it was really starting to annoy me!
Jun 24, 2008 10:44 PM|chinnybloke|LINK
After getting it working this morning, doing something else, then coming back to it...I've found the problem but not the solution. Please ignore my ignorance about networks, IP addresses etc but the problem is using
http://localhost. My IP address is 192.168.2.2 (computer is connected to the internet via a Belkin router). If I use localhost it never works, if I use
http://192.168.2.2 it does work.
How do I get localhost working?
Jun 24, 2008 11:09 PM|chinnybloke|LINK
http://127.0.0.1/learning/default.aspx this works, it is just using localhosts that does not work. I've even tried changing my hosts files so localhost points to 192.168.2.2 but that still didn't make
localhost work, I have to type the ip addresses.
Sep 15, 2008 01:09 AM|albert_tf|LINK
Hello, I had the same problem. My Default Web Page had the exact IP address of the machine (i.e. 192.168.1.212). When I change it to "(All Unassigned)" then localhost worked. I was also using http://192.168.1.212/index.htm to go to my default page.
Let me know if this solved your problem.
Sep 16, 2008 09:29 PM|mydreams|LINK
You may reset your IP address of IIS[:)]