Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 19th, 2006, 09:32 AM
Registered User
 
Join Date: May 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to stoneygossard
Default IIS Errors

I am getting the following error when i call my website

Code:

ERROR: 400.100 Bad Request
HResult: 0x80004005
Source: Microsoft SQL isapi extension
Description: Query not specified

I am calling the example from the book i.e. http://localhost/WroxUnited.
Anyone got any suggestions as IIS is running and all components are installed.


Regards

Stone

Stoney
 
Old May 19th, 2006, 02:02 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

what is the code that is calling the query?

 
Old May 19th, 2006, 02:53 PM
Registered User
 
Join Date: May 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to stoneygossard
Default

Sorry but i am unsure what you mean by that? I am calling an .aspx file through my browser and then I get this error. If this isn't of any help let me know how I can be more specific.

I want to use the ISS instead of Cassini.So upon following the instructions in the book I have created an alias (WroxUnited) and set the correct path to my site i.e. http://Websites/Wroxunited.So now when I go into my browswer I type "http://localhost/WroxUnited" and I get the error.

I am pretty new to IIS but it is installed with all the correct components (I installed everything to be safe). Is there something I need to do to start the server (I am pretty sure it's running? Or am I typing the wrong path into the address bar of the browswer?

I appreciate this help.

Regards

Stoney


Stoney
 
Old May 19th, 2006, 03:06 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

The error to me seems to be a database error. Are you accessing a DB anwhere in your code?

 
Old May 19th, 2006, 03:08 PM
Registered User
 
Join Date: May 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to stoneygossard
Default

No it's only a static page with no database access.

Stoney
 
Old May 22nd, 2006, 11:29 AM
pjk pjk is offline
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have exactly the same problem. Stoney did you manage to find a solution?
 
Old May 22nd, 2006, 02:46 PM
pjk pjk is offline
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just managed to get it working, I tried creating the Virtual directories using IIS Manager instead of IIS Virtual Directory Mangement for SQLXML and it worked straight away.
 
Old May 22nd, 2006, 03:50 PM
Registered User
 
Join Date: May 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to stoneygossard
Default

Hia,

I have tried doing this using "Administrative tools - IIS and then adding the virtual directory".But i keep getting the following error:

Directory Listing Denied
This Virtual Directory does not allow contents to be listed.

Could you let me know exactly how you set yours up step by step as I'm tearing my hair out at this stage!

Much appreciated.

Stone

Stoney
 
Old May 23rd, 2006, 11:23 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You get this error because a) you don't have a Default Document set up that matches with a document you have in the folder and b) you disabled directory browsing.

To fix problem a, create a page like Default.aspx. This document will be served whenever the folder (and not a direct page) is requested. To see what default documents your server has, open up the IIS Manager, locate your site and open its Properties dialog. Then click the Documents tab. You see a list with files that will be seen as Default documents. So, when you see Default.html, and you have a file with that name, that file will be served whenever you access something like http://localhost/ or http://localhost/SomeFolder

To fix problem b (not recommended on a production server as it may expose too much information about your files), once again open the IIS Manager, and open the Properties dialog for your site. Then on the Home Directory tab, make sure that Directory browsing is enabled.

Hope this helps,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old May 23rd, 2006, 11:54 AM
Registered User
 
Join Date: May 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to stoneygossard
Default

Hia,

Many thanks for the advice. I have used your suggestion and have made some progress.

When I call the website from the browser e.g. "http://localhost/SomeFolder", I get a listing of all the directories within that website. I do have a page called "default.aspx" so I am unsure of how to get it to just display the "default.aspx" rather than the listing of directories within the site.

Many thanks again.

Stoney

Stoney





Similar Threads
Thread Thread Starter Forum Replies Last Post
iis.msc equivalent in IIS for Win XP Pro? RealDHelix Classic ASP Basics 14 March 18th, 2007 08:28 PM
Can't get errors to display with <html:errors> michaeldill JSP Basics 0 August 2nd, 2004 01:47 PM
CreateObject error on IIS 4 but not IIS 5 timtom Classic ASP XML 1 December 5th, 2003 01:26 PM
errors and fixing errors Droopy XML 0 August 26th, 2003 12:47 AM
Errors Errors DB Errors Ljhopkins VS.NET 2002/2003 0 July 15th, 2003 12:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.