错误信息(具体错误信息忘了,以下错误信息是在网上找的一份类似的):“/”应用程序中的服务器错误
原创
2022-07-26 06:32:30
81阅读
调试WCF服务应用程序的时候,会出现如下错误:
“/”应用程序中的服务器错误。
Service 'WcfServiceApp.WCFService' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your ap
原创
2009-03-29 17:57:00
615阅读
基于上文的Demo,我们观察到,在IIS宿主中,配置文件有以下特征: <system.serviceModel> <services> <service name="WcfService9.Service1" behaviorConfiguration="WcfService9.Service1Behavior"> &... Read More
转载
2009-11-07 13:09:00
101阅读
2评论
在设计数据契约类,并使用其做参数实现客户端与服务端数据交互的时候,编辑服务类,出现以下错误:
Error 1 Inconsistent accessibility: parameter type 'WCFService.UserDataContract' is less accessible than method 'WCFService.IWCFService
原创
2009-04-14 17:17:00
912阅读
当我们在客户端添加WCF服务引用的时候出错,信息如下
下载“http://localhost:8001/WCFService”时出错。
无法连接到远程服务器
由于目标机器积极拒绝,无法连接。 127.0.0.1:8001
Metadata contains a reference that cannot be resolved: 'http://localhost:8001/WCFService'.
Could not connect to http://localhost:8001/WCFService. TCP error code 10061: 由于目标机器积极拒绝,无法连接。 127.0.0.1:8001.
无法连接到远程服务器
由于目标机器积极拒绝,无法连接。 127.0.0.1:8001
If the service is defined in the current solution, try building the solution and adding the service reference again.
原创
2009-03-15 22:09:00
1231阅读
代码: Service:WcfService7.zip Silverlight:DynamicGridViewDemo.zip 思路简单介绍如下: 1.AttachedBehavior结合Resource来为Column中的列添加事件
转载
2009-11-10 15:14:00
83阅读
2评论
废话不多说,直接讲解实现步骤 一、首先我们需定义支持WEB HTTP方法调用的WCF服务契约及实现服务契约类(重点关注各attribute),代码如下: //IAddService.cs namespace WcfService1 { [ServiceContract] public interfa
转载
2017-06-01 14:21:00
70阅读
我在进行WCF基于 UserName 和 Passoword的安全验证编程的时候遇到这个错误:The ChannelDispatcher at 'http://localhost:8001/WCFService' with contract(s) '"IWCFService"' is unable to open its IChannelListene
原创
2009-07-27 01:31:00
1305阅读
Axis2联接WCF(比较完整的版本)分basicHttpBinding和wsHttpBinding两种情况:一、basicHttpBinding比较简单一点,先来看看它所要求的HTTP包:POST /WCFService1/Service.svc HTTP/1.1Content-Type: app...
转载
2015-12-18 20:46:00
54阅读
为了实现cache存储验证用户身份信息,减少通过数据库验证的次数,需要在wcf各个服务之间建立共享数据区。 namespace WcfService1 { public static class Class1 { public static string appName = ""; } } name
转载
2016-10-20 16:39:00
163阅读
2评论
分basicHttpBinding和wsHttpBinding两种情况:一、basicHttpBinding比较简单一点,先来看看它所要求的HTTP包:POST /WCFService1/Service.svc HTTP/1.1Content-Type: application/soap+xml; charset=utf-8Host: 127.0.0.1:3673Content-Length: 5...
转载
2008-06-07 17:05:00
118阅读
2评论
我们启动服务宿主程序的时候,有可能出现如下的无效操作异常,信息如下:
Cannot have two operations in the same contract with the same name, methods SayHello and SayHello in type WCFService.IWCFService violate this rule. You can change the name of one of the operations by changing the method name or by using the Name property of OperationContractAttribute.
原创
2009-04-04 19:45:00
476阅读
概述WCF:Windows Communication Foundation ,Windows通信基础。SOP:Service Orientation Architechture,面向服务的架构。WebService是以BasicHttpBing方式运行的WCF。方案结构:1、创建解决方案WCFService依次添加四个项目,如上图,Client和Hosting为控制台应用程序,Service和S...
转载
2018-08-06 22:38:00
123阅读
2评论
今天我给大家演示的是创建一个SilverLight客户端来调用我们上一节建立的WCF服务. 1. 打开已经创建好的wcf工程WcfService1, 点击"File/Add/New Project/”, 选择SilverLight Application, 如图所示: 2. 点击"Ok”后, vs2010询问我们是否把此Silverlight应用
原创
2010-03-31 12:27:00
659阅读
我们添加客户端服务引用的时候会出现这样的错误:
下载“http://localhost:8002/WCFService”时出错。基础连接已经关闭: 接收时发生错误。无法从传输连接中读取数据: 远程主机强迫关闭了一个现有的连接。。远程主机强迫关闭了一个现有的连接。Metadata contains a reference that cannot be resolved: 'http://local
原创
2009-03-15 22:24:00
3795阅读
今天在做WCF测试实验时,出现“System.Data.Objects.DataClasses.EntityObject”在未被引用的程序集中定义必须添加对程序集“System.Data.Entity"引用 .这样的错误,在网上查了下,主要是WCFService中使用了Linq to Entity但没有添加System.Data.Entity程序集。报错如下:解决办法:添加System.Data.Entity.dll就可以了。
转载
2011-07-15 14:59:00
129阅读
2评论
当使用Transport安全模式,WSHTTPBingding, 客户端认证类型为Windows:clientCredentialType="Windows" .
安装了证书,也添加了客户端服务引用。启动服务宿主,客户端也添加了账号。结果就出错了。
信息如下:
An error occurred while making the HTTP request to https://localhost:9001/WCFService. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server.
可能是由于服务器证书在HTTPS 箱子里与H
原创
2009-08-08 13:58:00
1224阅读
2013-7-61. 找不到类型“WCFService.Service1”,它在 ServiceHost 指令中提供为 Service 特性值,或在配置元素 system.serviceModel/serviceHostingEnvironment/serviceActivations 中提供。最近晚上在学WCF,照着教程上的例子做练习的时候遇到了上边提示的问题。项目的目录机构如下图: 配置文件也都没有任何的问题,但是在部署到IIS之前,想现在浏览器里预览一下,就老是提示这样的错误。起先是以为配置文件写的有误,找了半天也没发现有什么问题。但如果是新建的WCF应用程序不对默认...
转载
2013-07-08 14:41:00
62阅读
2评论