Sharepoint und WCF
Kürzlich bin ich auf ein skurriles Problem mit einem ASP.Net Web Service in SharePoint gestoßen.
Wir hatten ein ASP.Net Web Service entwickelt welches eine AES Verschlüsselung verwendet. Beim Aufruf des Web Service trat eine PlatformNotSupportedException auf. Nach einigen erfolglosen BugFixing versuchen hatte ich mich entschieden es mal mit WCF zu versuchen und siehe da alles läuft.
Das Deployment wird mittels Solution in den ISAPI Ordner von Sharepoint vorgenommen. Dazu wird ein Unterordner mit dem Namen _wcf erstellt und darunter dann die SVC Datei inklusive web.config abgelegt. Da MOSS 2007 nativ kein WCF unterstützt ist noch eine weitere Solution notwendig. Diese Solution enthält ein Web Application Feature welches einen Virtual Path Provider für WCF enthält. Also Solution installieren und Feature aktivieren und alles läuft.
Die Solution ist zu finden unter: http://www.codeplex.com/SPWCFSupport
Für weitere Infos zum Thema WCF und SharePoint ist noch folgender Blog Eintrag zu empfehlen: http://blah.winsmarts.com/2008-5-SharePoint_as_a_WCF_Host.aspx
Tags: AesCryptoServiceProvider, ASP.Net Web Service, MOSS 2007, PlatformNotSupportedException, SharePoint, WCF, WSS 3.0
This entry was posted on Monday, August 31st, 2009 at 22:32 and is filed under MOSS 2007, SharePoint, WCF, WSS 3.0. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.