[InvalidOperationException: 无法加载协定为“YlbService.MMSHServicesSoap”的终结点配置部分,因为找到了该协定的多个终结点配置。请按名称指示首选的终结点配置部分。]
System.ServiceModel.Description.ConfigLoader.LookupChannel(ContextInformation configurationContext, String configurationName, ContractDescription contract, EndpointAddress address, Boolean wildcard, Boolean useChannelElementKind, ServiceEndpoint& serviceEndpoint) +463
System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address) +89
System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress) +129
System.ServiceModel.ConfigurationEndpointTrait`1.CreateSimplexFactory() +12901039
System.ServiceModel.ConfigurationEndpointTrait`1.CreateChannelFactory() +19
System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait) +18
System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef() +368
System.ServiceModel.ClientBase`1..ctor() +295
WebApp66.YlbService.MMSHServicesSoapClient..ctor() in C:\Users\Administrator\source\repos\Solution3\WebApp66\Connected Services\YlbService\Reference.cs:756
WebApp66.WebForm1.btnAttachmentInfo_Click(Object sender, EventArgs e) in C:\Users\Administrator\source\repos\Solution3\WebApp66\WebForm1.aspx.cs:74
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9782378
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +204
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +12
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +15
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1639
|