代码之家  ›  专栏  ›  技术社区  ›  Steve

如何在windows xp sp2中配置iis

  •  0
  • Steve  · 技术社区  · 16 年前

    新的IIS。我有两个问题:

    1. 安装完iis后,我直接在浏览器中输入 http://127.0.0.1 . 但是弹出一个用户名和密码对话框,我不知道该输入什么。为什么iis会询问此信息?我怎样才能去掉这个问题。

    2. 我想在iis下放置一个web服务。web服务是用c在.net下编写的。这个配置有教程吗?我找到了一个教程,但它是在WindowsServer2003下,有一个名为Web服务扩展的选项。但是,我在xp中安装了iis,ui看起来完全不同。

    仅供参考,我使用的i is管理工具告诉我它是版本5。

    非常感谢你的帮助。

    1 回复  |  直到 16 年前
        1
  •  1
  •   mjv    16 年前

    [仅供参考,问题1通常是 服务器故障.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将安装在这台机器上,ADN允许工作(请参阅“Web属性”对话框的“.NET应用程序”选项卡)。

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