Hi,
I have seen many threads related to this but I still can't solve this problem. I have a silverlight busiless application in which I have a silverlight enabled wcf service added. Everything works fine on the developement server but when I deploy the application on ISS7 on same machine, when I access the service I get an error
An exception occurred during the operation, making the result invalid. Check InnerException for exception details.
at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at QTMS.QTMSWcfService.GetTestArtifactHierarchyCompletedEventArgs.get_Result() at QTMS.Views.AutomationStatus.QTMSWcfServiceProxy_GetTestArtifactHierarchyCompleted(Object sender, GetTestArtifactHierarchyCompletedEventArgs TestArtifactsList) at QTMS.QTMSWcfService.QTMSWcfServiceClient.OnGetTestArtifactHierarchyCompleted(Object state)
Here's my web.config content
Here's the content of the ServiceReferences.ClientConfig file
<system.serviceModel>
<bindings>
<customBinding>
<binding name="CustomBinding_QTMSWcfService">
<binaryMessageEncoding />
<httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />
</binding>
</customBinding>
</bindings>
<client>
<endpoint address="http://localhost:9702/QTMSWcfServices/QTMSWcfService.svc"
binding="customBinding" bindingConfiguration="CustomBinding_QTMSWcfService"
contract="QTMSWcfService.QTMSWcfService" name="CustomBinding_QTMSWcfService" />
</client>
</system.serviceModel>
I can't resolve the following
•Why is the service not working when deployed? I tried to put the clientaccesspolicy.xml in the /bin folder and also in the folder where svc file sits, but that did not help.I also changed the endpoint address to point to the ip of my machine. •How do I see the content of inner exception? •How to check if my wcf service is running? By the way, my wcfservice return a custom object and makes a database connection in each function call which i close.
I just can't seem to get it to work. Please help! I can provide more details if required.