We will sleep an extra 1000 ms so things don't go too fast for the user.#

Having some problems with a WSS 3.0 installation made us go through the SharePoint log files. Just above the error we were running into, we noticed quite a remarkable event…

02/25/2009 12:59:18  1  INF  Leaving function ConfigurationProgressForm.InvokeTaskDriverEventHandler
02/25/2009 12:59:18  6  INF  The task driver event indiated that the task driver is stopping, so we will sleep an extra 1000 ms so things don't go too fast for the user
02/25/2009 12:59:19  6  INF  Leaving function PsconfigBaseForm.TaskDriverEventHandler

I'm glad SharePoint slows down a bit now and then… :)

Wednesday, February 25, 2009 11:34:37 AM UTC #    Comments [1]  | 

 

New DIWUG event at February 17th#

Next week (February 17th) there is another DIWUG event scheduled. Please check our web site and register for 2 cool evening sessions about “the cloud” and SharePoint!

This session will be hosted at Sparked in Amsterdam!

Thursday, February 12, 2009 2:21:22 PM UTC #    Comments [0]  | 

 

Host a WCF service in SharePoint under Forms Authentication#

I’ve been working with WCF services a lot lately, especially hosted in SharePoint. My Silverlight 2.0 application uses the services to interact with SharePoint, which works great. There are some posts about how to get started with them available, which is great.

the the architecture I’m using for my application, Forms authentication in SharePoint is a must, which means I wrote my own authentication provider. The WCF services however, don’t like that by default and returns a login screen which I can’t pass. Switching from Windows to Forms, break the application.

There is a solution however, to get the WCF services work under forms authentication as well in SharePoint. Note that you must enable cookies (and store the login) to make this solution work. So,

  • First we must enable sessions in the SharePoint site. Therefore, enable the session http module in the web.config:

<add name="Session" type="System.Web.SessionState.SessionStateModule"/>

  • Second, enable the session state in the pages tag

<pages enableSessionState="true" enableVie…

  • Third, where we used Ntml as a clientCredentialType, now the service must use anonymous, so change the type to ‘none’ within your binding and endpoint tag:

<binding name="BasicHttpBinding" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
    <security mode="TransportCredentialOnly">
         <transport clientCredentialType="None" />
    </security>
</binding>

and..

<endpoint address="/_layouts/Services/Service.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding" contract="WiZZiX.Services.Service" name="WiZZiX.Services.Service">
    <security mode="Transport">
        <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
        <message clientCredentialType="UserName" algorithmSuite="Default" />
    </security>
</endpoint>

Now, the WCF service works great with forms authentication within the context of SharePoint!

Note that with this configuration, windows authentication doesn’t work anymore, so it’s either windows or forms, not mixed.

With thanks to PaulB for helping me out.

Thursday, February 12, 2009 8:18:25 AM UTC #    Comments [0]  | 

 

All content © 2010, Mart Muller
On this page
This site
Calendar
<March 2010>
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910
Archives
Sitemap
Disclaimer

Powered by: newtelligence dasBlog 1.9.7174.0

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Send mail to the author(s) E-mail

Theme design by Jelle Druyts