相关疑难解决方法(0)

无法在Windows 8上的IIS中提供WCF服务

当我尝试在Windows 8机器上的IIS上提供WCF服务时,我得到了众所周知的错误

由于扩展配置,无法提供您请求的页面.如果页面是脚本,请添加处理程序.如果要下载文件,请添加MIME映射.

旧的工作是运行,aspnet_regiis -i但这个命令似乎已在Windows 8中被弃用,产生响应This option is not supported on this version of the operating system. (...).

会有什么工作?

(我已经成功启用了常规aspx页面,因此大多数IIS配置看起来都很健康.)

iis wcf windows-8

195
推荐指数
4
解决办法
13万
查看次数

在IIS中访问.svc文件时的HTTP 404

我最近创建了一个WCF服务,从Visual Studio 2008测试时工作正常.但是当我将项目部署到IIS并尝试从IIS访问.svc文件时,我收到此错误:

"Server Error in '/' Application.The resource cannot be found.  "
Run Code Online (Sandbox Code Playgroud)

过去4天我一直有这个问题.

在IIS管理器的Handler Mappings中,我可以看到.svc的两个条目:

svc-Integrated and svc-ISAPI-2.0
Run Code Online (Sandbox Code Playgroud)

.net c# wcf

74
推荐指数
4
解决办法
11万
查看次数

aspnet_regiis.exe -ir在Windows 8上不起作用

我正在尝试使用IIS8将ASP.NET MVC3应用程序部署到我的Windows 8机器上.当我尝试路由到该网站时,我收到以下错误:

HTTP错误403.14  - 禁止

几乎我能在这个问题上找到的所有东西都说:

aspnet_regiis.exe -ir
Run Code Online (Sandbox Code Playgroud)

当我在Windows 8机器上运行时,我收到以下消息:

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

C:\Users\Justin>C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe
-ir
Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation.  All rights reserved.
Start installing ASP.NET (4.0.30319.17929) without changing existing web 
applications to use this version of ASP.Net.  This option is not supported on 
this version of the operating system.  Administrators should instead install / 
uninstall ASP.NET 4.5 …
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc-4 iis-8

44
推荐指数
2
解决办法
7万
查看次数

(405)不允许的方法.WCF WebService

介绍:

您好,我正在尝试在我的本地IIS 7.5服务器上设置WCF Web服务,但是在完成基本配置后,我无法使用WinForms测试客户端发送数据,并返回标题中提到的错误.我已经在这个问题上搜索了类似的线程,但我找不到任何适合我的问题的东西.

数据:

- Wcf WebService和第三方提供的测试客户端

- 他们已经在另一台服务器上工作,我使用相同的版本

- 启用或配置IIS时,我可能做错了什么

请求:

- 我需要知道我需要启用/禁用哪些IIS功能才能正确安装,以便我可以使用Wcf WebService.(如果是这种情况).

- 如何正确配置服务器以解决上述错误.

我的配置:

- 安装IIS后,我将DefaulAppPool更改为.NET Framework v4.0.30.319; 管道模式:集成. - 高级设置:加载用户配置文件= False.

- 使用DefaultAppPool.Binding处理名为"WcfMicrocontrollerService"的新网站; 键入:http,IP地址:,端口:80

此时我可以通过Web浏览器访问它,但是当我使用测试客户端将数据POST到服务时,我收到以下错误:"远程服务器返回了意外响应:(405)方法不允许."

以下是由Fiddler发送的数据包:已发送:

POST http://192.168.0.102/MicroControllerComSvc.svc HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://tempuri.org/IMicroControllerComSvc/GetMicrocontrollerData"
Host: 192.168.0.102
Content-Length: 237
Expect: 100-continue
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><GetMicrocontrollerData xmlns="http://tempuri.org/"><microControllerData>1,1,1,1,2,2,1,0,100,300</microControllerData></GetMicrocontrollerData></s:Body></s:Envelope>
Run Code Online (Sandbox Code Playgroud)

收稿日期:

HTTP/1.1 405 Method Not Allowed
Cache-Control: private
Allow: GET, HEAD, OPTIONS, TRACE
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 01 Mar 2016 …
Run Code Online (Sandbox Code Playgroud)

asp.net iis wcf web-services http-status-code-405

15
推荐指数
1
解决办法
1万
查看次数

在ASP.NET服务器2012上将我的ASP.NET网站移动到IIS 8 ...缺少服务:.svc文件是可见的,但是他们的方法给出了404

我从Windows Server 2003上的IIS 6移动.

可以浏览.svc文件.如果我在浏览器中访问http://example.com/Service.svc,我会得到一个很好的标准"这是一个Windows©Communication Foundation服务"页面.

无法浏览任何方法 - 如果我在浏览器中访问http://example.com/Service.svc/Method?parameter=xyz,我会收到404错误.

有没有人见过这样的东西?任何想法或建议?

我想我可能会遇到类似的问题:IIS8上的WCF;*.svc处理程序映射不起作用

但症状是不同的(看起来他们根本看不到.svc文件)并且没有解决方案工作(我已经安装了WCF功能的Http Activation等).

asp.net wcf http-status-code-404 iis-8

11
推荐指数
2
解决办法
2万
查看次数

IIS 7.5, Web Service and HTTP 405 error

I have a web service which I host on my machine. I use Windows 7 and IIS 7.5.

Problem: When the client tries to consume the web service, he/she gets a HTTP 405 error.

In the log file of IIS, I can see that this is refused because POST verb is not allowed.

问题:如何为这些请求允许POST动词?
我是否必须添加WSDL文件的映射?如果我这样做,我该如何配置此映射?我检查过,在现有的映射中,我没有WSDL扩展.

是否可能在IIS上设置另一个允许这些请求的东西?

Web服务是使用WCF构建的.

c# iis wcf http-post

10
推荐指数
2
解决办法
3万
查看次数

IIS 7.5中的WCF服务托管 - 由于扩展配置,无法提供您请求的页面

每当我向IIS发布WCF服务时.几乎我已经习惯于得到这个错误:

HTTP错误404.3 - 未找到由于扩展配置,无法提供您请求的页面.如果页面是脚本,请添加处理程序.如果要下载文件,请添加MIME映射.

我保持的做法是:将网站的应用程序池更改为classic mode.但这次我运气不好.

  • 问题1.你能帮忙吗?
  • Q.2.正如错误所示:我应该在IIS中配置.svc MIME映射的某些位置吗?
  • Q.3.要使WCF在集成管道模式下运行,是否需要任何特定配置?

c# iis wcf iis-7.5

10
推荐指数
1
解决办法
9754
查看次数

使用IIS时不允许405的方法

我有以下WCF:

    [OperationContract]
    IList<OperationRoomDto> GetOperationRooms();
Run Code Online (Sandbox Code Playgroud)

我有一个使用此WCF的网站,当我使用Visual Studio(Asp.Net开发服务器)时,它工作正常,但是当我将WCF部署到IIS时,我得到以下异常:

远程服务器返回错误:(405)方法不允许.

我做了一个简单的网站来测试这个WCF(在IIS上)并且它工作正常.

这是web.config文件的一部分:

  <endpoint address="http://server/WcfService"
            binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IMessageService"
            contract="MyProject.Web.Wcf.IMessageService" name="BasicHttpBinding_IMessageService">
  </endpoint>
Run Code Online (Sandbox Code Playgroud)

以及这部分Web服务配置文件:

  <system.serviceModel>
<behaviors>
  <serviceBehaviors>
    <behavior>
      <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
      <serviceMetadata httpGetEnabled="true" />
      <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
      <serviceDebug includeExceptionDetailInFaults="true" />
    </behavior>
  </serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" …
Run Code Online (Sandbox Code Playgroud)

.net asp.net wcf iis-7 wcf-binding

6
推荐指数
1
解决办法
6500
查看次数