Jump to content
xisto Community
Sign in to follow this  
web_designer

Web Service Page Is Not Working With Iis

Recommended Posts

hi, everyone. i 'm using visual studio 2008 professional edition.i have IIS 5 and windows XP professional.i want to write some code in web service (asp.net web service). but when i tried to use localhost to view the page i got this error (directory listing denied). even i was already create a virtual directory in IIS; and i checked the default pages in my folder. i wander if there are some more configurations i should do to make it work?? any ideas will help a lot.

Share this post


Link to post
Share on other sites

Hi!The directory listing denied error indicates that you have not specified the file that you want to access and the web server is configured to not show you a listing of all of the accessible files in the directory. This is a security measure and is pretty normal on most web-facing servers, but since you are accessing your web server from your own computer or from an office local area network, you can enable the directory listing.Also, I would like to mention that the virtual directory is different from an application - configuring a directory as a web application enables IIS to execute the script within a separate AppDomain and gives you an application-level control over the settings that you make to run the web application.Web Service pages do not necessarily provide you with a user interface, and when they do, all they show you is the URL with which you can access the web service and perhaps the parameters that you can pass to the web service. It does not actually execute the web service to show you the results. There are different kinds of web services - there are the ASMX web services or classic ASP.NET web services that can be consumed by non-Microsoft .NET applications, and there are Windows Communication Foundation (WCF) web services that are specific to Microsoft .NET applications. If you were to use a .NET web service from a PHP application, for example, you would create an ASMX web service instead of a Windows Communication Foundation web service.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.