今天安装完Windows Server2008后,用wcf写了个demo发布出来后,通过iis访问提示错误,
HTTP Error 404.3 - Not Found
Description: The page you are requesting cannot be served because of the Multipurpose Internet Mail Extensions (MIME) map policy that is configured on the Web server. The page you requested has a file name extension that is not recognized, and is not allowed.
搜索了一圈,找到如下解决方法
解决方案:
1) Select "run" from the Start menu
2) Enter "cmd" and click OK
3) enter "cd c:/windows/Microsoft.Net/Framework/v3.0/Windows Communication Foundation/" and press Enter.
4) Enter "ServiceModelReg -i" and press Enter.
注意这里可能根据个人机器情况及登陆用户有所不同,我这里是非本地管理员,运行后提示错误,要求是本地管理员并具备
fulltrust权限,所以这里需要以本地管理员帐户登陆后运行才能成功.
5) WCF will now be installed:
原文:http://iweb.adefwebserver.com/Project/Blog/tabid/57/EntryID/34/Default.aspx