eRongs Geo-Info Technical Blog

Blogging 3S , Programming ,etc.
posts - 31, comments - 40, trackbacks - 0, articles - 0
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

公告

WCF:Configure svc MIME type on Vista IIS 7.0

Posted on 2008-11-03 14:21 cosophy 阅读(925) 评论(2) 编辑 收藏

假如输入http://localhost/service.svc,返回error 404.3-Not found and the mime type not being configured correctly to be served。很有可能是因为VS之后安装或修改了IIS,就如同aspnet_regiis.exe一样。

解决方法就是执行以下命令:

C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe -i

What it did, it installed the necessary scriptmaps at the IIS metabase root and folders within.