简体   繁体   English

如何在本地IIS上托管服务svc?

[英]How to Host Service svc on Local IIS?

I am hosting site on my local IIS, The service (*.svc) file i put in MyProjectFolder/Service directory . 我在本地IIS上托管站点,将服务(* .svc)文件放在MyProjectFolder / Service目录中。 I am getting following error. 我收到以下错误。 I am calling service from ajax call direct through service path. 我从直接通过服务路径的ajax调用中调用服务。 "neo.Mysite.Net/Prent.svc" “ neo.Mysite.Net/Prent.svc”

HTTP Error 404.3 - Not Found HTTP错误404.3-找不到

The page you are requesting cannot be served because of the extension configuration. 由于扩展程序配置的原因,无法提供您请求的页面。 If the page is a script, add a handler. 如果页面是脚本,请添加处理程序。 If the file should be downloaded, add a MIME map 如果应下载文件,请添加一个MIME映射

Most likely causes: 最可能的原因:

•The directory or file specified does not exist on the Web server. •指定的目录或文件在Web服务器上不存在。

•The URL contains a typographical error. •URL包含印刷错误。

•A custom filter or module, such as URLScan, restricts access to the file. •自定义过滤器或模块(例如URLScan)限制对文件的访问。

Things you can try: 您可以尝试的事情:

•Create the content on the Web server. •在Web服务器上创建内容。

•Review the browser URL. •查看浏览器URL。

•Create a tracing rule to track failed requests for this HTTP status code and see which module is calling SetStatus. •创建跟踪规则以跟踪对此HTTP状态代码的失败请求,并查看哪个模块正在调用SetStatus。 For more information about creating a tracing rule for failed requests, click here 有关为失败的请求创建跟踪规则的更多信息,请单击此处。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM