wcf

ChannelFactory`1[BLLService], cannot be modified while it is in the Opening state

放肆的年华 提交于 2021-02-10 23:49:15
问题 Im in showstopper state because of an exception in WCF. The problem is that i am randomly getting this exception in windows service in WCF. Now since i cannot debug production server so i am using log4net for logging. The exception is random in time and in different functions. it Occurs few in a day with almost 400 to 1000 db entries. Now here is my proxy class code where iam checking the client open state. public static BLLServiceClient bLLServiceClient { get { if (_bLLServiceClient == null

ChannelFactory`1[BLLService], cannot be modified while it is in the Opening state

可紊 提交于 2021-02-10 23:41:06
问题 Im in showstopper state because of an exception in WCF. The problem is that i am randomly getting this exception in windows service in WCF. Now since i cannot debug production server so i am using log4net for logging. The exception is random in time and in different functions. it Occurs few in a day with almost 400 to 1000 db entries. Now here is my proxy class code where iam checking the client open state. public static BLLServiceClient bLLServiceClient { get { if (_bLLServiceClient == null

need to have child by using DataContractSerializer to populate XML

☆樱花仙子☆ 提交于 2021-02-10 19:46:50
问题 I have a method that put the error messages in 1 xml and send it to client. In case of error, errors can be several, I am returning the list pf errors that are in XMLErrMessage. I want to show them in comment but each error as 1 xml child: <comments> <comment>XMLErrMessage1</comment> <comment>XMLErrMessage2</comment> <comment>XMLErrMessage3</comment> </comments> this is my method: public string ProcessXML(CommonLibrary.Model.TransferData dto, bool Authenticated) { DataContractSerializer dcs =

wcf and session asmx rewrite with Silverlight

谁都会走 提交于 2021-02-10 16:18:01
问题 I have a web service that uses Session. I want to rewrite it as an WCF that can be hosted outside IIS. What is the best way to replace session using WCF that wont tie me to IIS in my rewrite? At first I was happy because of wsHttpBinding. Then I read that Silverlight can not use this and I was sad. How can this be accomplished. 回答1: Badly. I think Silverlight doesn't support any http based binding which would allow you creating stateful WCF service. You can make stateful WCF service with net

WCF error with net.tcp "The service endpoint failed to listen on the URI because access was denied

无人久伴 提交于 2021-02-10 13:34:28
问题 I'm getting the following error when hosting WCF Net.Tcp service on windows 8.1 machine where I'm in the administrators group: The service endpoint failed to listen on the URI 'net.tcp://localhost:9001/dataservice' because access was denied. Verify that the current user is granted access in the appropriate allowAccounts section of SMSvcHost.exe.config. I even added the user to the config as suggested: <?xml version="1.0" encoding="utf-8"?> <!-- The configuration file for SMSvcHost.exe -->

WCF error with net.tcp "The service endpoint failed to listen on the URI because access was denied

倖福魔咒の 提交于 2021-02-10 13:32:23
问题 I'm getting the following error when hosting WCF Net.Tcp service on windows 8.1 machine where I'm in the administrators group: The service endpoint failed to listen on the URI 'net.tcp://localhost:9001/dataservice' because access was denied. Verify that the current user is granted access in the appropriate allowAccounts section of SMSvcHost.exe.config. I even added the user to the config as suggested: <?xml version="1.0" encoding="utf-8"?> <!-- The configuration file for SMSvcHost.exe -->

Changing wsdl:part name

梦想的初衷 提交于 2021-02-10 11:13:44
问题 Is there any way of changing the name of a message part in the WSDL? I have this on my WSDL: <wsdl:message name="getDataRequestMsg"> <wsdl:part name="getData" element="tns:getData"/> </wsdl:message> <wsdl:message name="getDataRequestMsg_Headers"> <wsdl:part name="Header" element="tns:Header"/> </wsdl:message> <wsdl:message name="getDataResponseMsg"> <wsdl:part name="getDataResponse" element="tns:getDataResponse"/> </wsdl:message> <wsdl:message name="getDataResponseMsg_Headers"> <wsdl:part

Changing wsdl:part name

霸气de小男生 提交于 2021-02-10 11:02:01
问题 Is there any way of changing the name of a message part in the WSDL? I have this on my WSDL: <wsdl:message name="getDataRequestMsg"> <wsdl:part name="getData" element="tns:getData"/> </wsdl:message> <wsdl:message name="getDataRequestMsg_Headers"> <wsdl:part name="Header" element="tns:Header"/> </wsdl:message> <wsdl:message name="getDataResponseMsg"> <wsdl:part name="getDataResponse" element="tns:getDataResponse"/> </wsdl:message> <wsdl:message name="getDataResponseMsg_Headers"> <wsdl:part

WCF Duplex - Client is unable to finish the security negotiation within the configured timeout

社会主义新天地 提交于 2021-02-10 07:35:14
问题 I have a duplex WCF, it work perfect in local host (connect my application to this WCF when it run locally). Now I tried to hosted it in my IIS (Server 2008 R2 standard), I create a windows account "GOD", and an application poll in IIS using the "GOD" identity. I can access this WCF from my pc (other than the server) from web browser and see the XML of the contract, (click on the link inside the page displayed) When try to access from my application I get the exception: Client is unable to

WCF Duplex - Client is unable to finish the security negotiation within the configured timeout

笑着哭i 提交于 2021-02-10 07:35:10
问题 I have a duplex WCF, it work perfect in local host (connect my application to this WCF when it run locally). Now I tried to hosted it in my IIS (Server 2008 R2 standard), I create a windows account "GOD", and an application poll in IIS using the "GOD" identity. I can access this WCF from my pc (other than the server) from web browser and see the XML of the contract, (click on the link inside the page displayed) When try to access from my application I get the exception: Client is unable to