Chinaunix首页 | 论坛 | 博客
  • 博客访问: 292872
  • 博文数量: 60
  • 博客积分: 1836
  • 博客等级: 上尉
  • 技术积分: 540
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-15 18:00
文章分类

全部博文(60)

文章存档

2013年(1)

2012年(7)

2011年(18)

2010年(6)

2009年(6)

2008年(3)

2007年(19)

我的朋友

分类: WINDOWS

2011-05-30 23:17:39

To verify that the svc file type is mapped to be handled by aspnet_isapi.dll in IIS 5.1 or 6.0

  1. From the Start menu, right-click Computer, then click Manage.

  2. Expand Services and Applications, Internet Information Services.

  3. Right-click Web Sites and select Properties.

  4. On the Home Directory tab, click Configuration.

  5. In the list of application mappings, verify that the .svc file is mapped to the aspnet_isapi.dll. If the file has not been mapped:

    1. Click Add.

    2. In the Add/Edit Application Extension Mapping dialog box, click Browse.

    3. Browse to the folder that contains the aspnet_isapi.dll, select the file, then click Open.
    4. Specify .svc as the extension.
    5. Make sure Check that file exists is unchecked.
    6. Click OK, and OK again to return to the Web Sites Properties dialog box.

      ms752252.Warning(en-us,VS.90).gif Caution:
      If the OK button is disabled, select the textbox where the selected filename is displayed and the OK button will be enabled.
  6. Click OK to close the dialog box.

To verify that the svc file type is mapped correctly in IIS 7.0

  1. Open a command prompt window and type start inetmgr to open the Internet Information Services (IIS) MMC snap-in.

  2. In the left pane, expand the node with the computer's name, then expand the Web Sites node, and then select the Default Web Site.

  3. Double-click Handler mappings in the Features View.

  4. In the list of application mappings, verify that the .svc file is mapped to the aspnet_isapi.dll. If the file has not been mapped:

    1. Click Add Managed Handler.
    2. Type *.svc into the Request path:.
    3. Type System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 into the Type textbox.
    4. Type svc-Integrated into the Name: textbox.
    5. Click OK.
    6. Click Add Script Map.
    7. Type *.svc into the Request path:.
    8. Type %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll into the Executable: text box.
    9. Type svc-ISAPI-2.0 into the Name: text box.
    10. Using the Move Up/Move Down controls, ensure that the managed handler (svc-Integrated) appears before the aspnet_isapi (svc-ISAPI-2.0) handler in the list.

    11. Click OK.
阅读(554) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~