Dear Community,
the last few weeks I try to create an Outlook Add-In that should be able to search for the own username in some of our SharePoint Tables to replace the own name with another username. The background is that I have some InfoPath Forms including approvals. The approver are stored in those lists.
I found a nice how to for the connection to a SharePoint 2007 Server using VS 2008 and c# here:http://petersullivan.com.au/2009/04/22/connecting-to-sharepoint-2007-web-services-using-a-service-reference-in-visual-studio-2008/
I have done everything like discribed there to get the first feeling of the data I expected but unfortunately I got the following error:
An error occurred while receiving the
HTTP response to the specified. The service endpoint binding may not be using
the HTTP protocol. Another possibility is that an HTTP request context was
terminated by the server because of a service shutting down. See
the server logs for more details.<o:p></o:p>
This error is thrown if I call the client.GetListCollection() and the internal error says that the Server aborts the connection softwarebased. (Sorry I can´t find the original error message for this error in english, my VS was installed in german)
The difference between the how to server and my SharePoint Server is that I have to interact with it via https (No http allowed). So I started to look for a solution and changed my app.config to the following:
<configuration> <system.serviceModel> <client> <!-- this endpoint has an https: address --> <endpoint address=" https://.../_vti_bin/Lists.asmx " behaviorConfiguration="endpointCredentialBehavior" binding="wsHttpBinding" bindingConfiguration="ListsSoap" contract="wsLists.ListsSoap"/> </client> <behaviors> <endpointBehaviors> <behavior name="endpointCredentialBehavior"> <clientCredentials> <clientCertificate findValue="... CA" storeLocation="CurrentUser" storeName="CertificateAuthority" x509FindType="FindBySubjectName" /> </clientCredentials> </behavior> </endpointBehaviors> </behaviors> <bindings> <wsHttpBinding> <!-- configure wsHttpbinding with Transport security mode and clientCredentialType as Certificate --> <binding name="ListsSoap"> <security mode="Transport"> <transport clientCredentialType="Certificate"/> </security> </binding> </wsHttpBinding> </bindings> </system.serviceModel> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup> </configuration>
I have tried so much app.config configurations but without any success. At one point I still got the same error called "HttpReceiveFailure" here: http://msdn.microsoft.com/en-en/library/aa738615.aspx
I have tried to increse the timeouts and the maximum sizes listed in the app.config withou any success and have no idea what I coud do now to solve this problem.
This is my first c# / VS project so everythings a little bit new for me.
If you need more code or informations please let me know (I have no access to the server configurations, but could ask for it)
Would be great to get some feedback, maybe a little how to or something else. Any help is appreciated.
Best Regards
WhiteCobra