如何在Windows XP SP2中配置IIS

时间:2009-09-27 04:42:24

标签: web-services iis

IIS新手。我有两个问题:

  1. 安装IIS后,我直接浏览浏览器并输入http://127.0.0.1。但弹出用户名和密码对话框,我不知道输入什么。为什么IIS会询问此信息?如何删除此问题。

  2. 我想在IIS下放置一个Web服务。 Web服务是用.net下的C#编写的。这个配置有没有教程?我找到了一个教程,但它在Windows Server 2003下,有一个名为web service extension的选项。但是,我在XP中安装了IIS,UI看起来完全不同。

  3. 仅供参考,我使用的IIS管理工具告诉我它是版本5.

    非常感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

[仅供参考,问题#1通常在 serverfault.com 上更好地解决,我也会回答它,因为它已被捆绑...]

解决1),即允许匿名访问网站

   - Open the IIS management console 
         Either from Computer management Console, in 'Aervices and Applications' 
         + 'Internet Information Service' 
         or from the control panel + Administrative tools 
         + 'Internet Information Service' 
   - On right pane, navigate to  'Web Sites' + 'Default Web Site'
   - Right Click, select 'Properties' in menu.
         This brings a squarish dialog with 2 rows of 4 tabs each at the top.
   - Select 'Directory Security' tab
   - then in the  top group named 'Anonymous Access and authentication control',
     click 'Edit'
   - The dialog that comes up is where you need to check the Anonymous access, 
     and enter the account credentials for the account which IIS will use, on
     behalf of the anonymous users.  I recommend you create one account for
     this purpose, rather than using yours or some other actual user.

现在,假设2)即部署Web服务本身   我认为您只需要将asmx文件复制到您希望运行Web服务的位置,并将二进制文件(dll)复制到bin目录。换句话说,就像发布常规的.NET Web应用程序一样,除了文件(在URI中引用)被命名为* .asmx。 (您也可以将此文件作为目录的默认文件。)

这当然意味着.NET将安装在该机器上,并允许其工作(请参阅Web属性对话框的“.NET应用程序”选项卡。

最后一点建议:您可能希望在自己的Web站点(或Web应用程序)和自己的目录中安装此Web服务。有关此类任务的更多详细信息,请参阅serverfault.com。有很多设置,其中一些设置会对安全性或性能产生影响 - >让专业人士告诉你;-)