在IIS中托管WCF服务 [英] Hosting WCF service in IIS
问题描述
嗨
我已经创建了WCF服务应用程序,我想使用IIS托管它,但是在托管之后,当我尝试浏览时,出现了以下错误-
XML页面无法显示
无法使用XSL样式表查看XML输入.请更正错误,然后单击刷新"按钮,或稍后再试.
-------------------------------------------------- ------------------------------
名称以无效字符开头.处理资源"http://localhost:610/Credential.svc"时出错.第1行,Pos ...
Hi
I have created a WCF service Application, I want to host it with IIS but after hosting When I try to browse, I am getting below error -
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
A name was started with an invalid character. Error processing resource ''http://localhost:610/Credential.svc''. Line 1, Pos...
推荐答案
请看下面的链接.
http://social.msdn.microsoft.com/Forums/zh-CN/4ffa2065-d951-4699-a23f-04233f6cd639/cannot-view-xml-input-using-xsl-style-sheet
似乎通过运行 aspnet_regiis.exe -i 应该可以解决您的问题.
Have a look at below link.
http://social.msdn.microsoft.com/Forums/en-US/4ffa2065-d951-4699-a23f-04233f6cd639/cannot-view-xml-input-using-xsl-style-sheet
Seems like by running aspnet_regiis.exe -i should solve your problem.
这篇关于在IIS中托管WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!