【发布时间】:2010-10-01 11:43:43
【问题描述】:
我正在尝试构建一个 SharePoint Web 部件,其中包含对我需要从 vb 代码中调用的 另一个 SharePoint 服务器的服务引用。但是,当我第一次尝试调用远程 Web 服务时,我在日志中得到以下信息:
在 ServiceModel 客户端配置部分中找不到引用合同“ListReference.ListsSoap”的默认端点元素。这可能是因为没有为您的应用程序找到配置文件,或者因为在客户端元素中找不到与此协定匹配的端点元素。在 System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint,字符串配置名称)
在 System.ServiceModel.ChannelFactory.ApplyConfiguration(字符串配置名称)
在 System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress 地址)
在 System.ServiceModel.ChannelFactory1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress)
at System.ServiceModel.EndpointTrait1.CreateSimplexFactory()
在 System.ServiceModel.ClientBase1.CreateChannelFactoryRef(EndpointTrait1 端点特征)
在 System.ServiceModel.ClientBase1.InitializeChannelFactoryRef()
at System.ServiceModel.ClientBase1..ctor()
在 VSeWSS.ChangeRequestWorkflow.ChangeRequest.SubmitForm(Object sender, EventArgs e)
部署带有服务引用的 Web 部件的正确方法是什么,我会做错什么吗?谢谢!
【问题讨论】:
标签: web-services sharepoint sharepoint-2007 wss-3.0