You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I just purchased the Beginning ASP.NET 2.0 book and I am trying to set up my machine to view the WroxUnited sample using IIS. At this point, I am getting the following error message:
"The page cannot be found: HTTP 400 - Bad Request"
I am able to view the demo using Cassini, just not IIS. My system specs are as follows:
- Windows XP Professional
- Visual Web Developer Express
- SQL Express
- IIS
I have read though most of the posts on this forum and have tried several of the suggestions including adding Default.aspx to the default documents, setting the ASP.NET version to 2.0.50727, running the aspnet_regiis -i command, and others. No luck.
cured the problem for me. But it sounds as though you have already tried this.
However, you need to make sure you are running the correct version of 'aspnet_regiis.exe'.
It is in this folder:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
You do [u]NOT</u> want the one in this folder:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
Thank you for the reply. When I type in http://localhost, everything is fine. I get the default start page with the Microsoft Windows XP Professional logo at the top, "Your Web service is now running." message, information about IIS 5.1, etc.
IIS seems to be working just fine, just not with the Wrox United sample site.
Awaiting your next query,
- Derek
Quote:
quote:Originally posted by Chrisull
OK - first up, let's check to see IIS is working.
What happens if you type in http://localhost, is everything fine?
Thank you for your input... I ran aspnet_regiis.exe out of the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 folder. Still having problems with the page not being displayed.
cured the problem for me. But it sounds as though you have already tried this.
However, you need to make sure you are running the correct version of 'aspnet_regiis.exe'.
It is in this folder:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
You do [u]NOT</u> want the one in this folder:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
Hi,
Sorry Derek I missed this one in the list of recent queries. Ok - next query is can you run any other applications under IIS, apart from WroxUnited?
The HTTP 4.0 - Bad request is usually a config error, but because it's non-specific it can be quite hard to solve. Various solutions I have found seem to involve updating the hosts file, or downloading a patch for IIS 5.0 on Win 2000, but none seem particularly related to the problem and setup you have here.
I am having trouble running the Wrox United Application on Appendix B on the ASP.NET 2.0 book. I have Visual Studios 2005 Professional installed.
Have done the outlined steps installed iis, downloaded the code, created a virtual directory but get the following error when trying to run under iis and typing into internet explorer http://localhost/WroxUnited ...
ERROR: 400.100 Bad Request
HResult: 0x80004005
Source: Microsoft SQL isapi extension
Description: Query not specified
I am experiencing the same problems setting up the WroxUnited website and IIS.
I have:
Windows XP Pro SP2
Visual Studio .NET 2005 Pro
SQL Server 2005 Express
IIS 5.1
At first, before following the errata for Appendix B, I got a 403. Then, after restoring a drive image and following the errata, I got a 400. That lasted for a while until I finally tweaked too many settings and now I'm getting a 500. Back to that image...
also - Cassini runs it just fine
and using 127.0.0.1 instead of localhost prompts me with a login which I have no idea how to deal with since I have no user password for my windows account