virtualPath error

Aug 11, 2009 at 8:05 PM

I've followed the instructions on installing your WCF support package, but am still getting a System.ArgumentException : virtualPath when I attempt to browse to my http://mysparepoint/_wcf/PO.svc?WSDL url.

 Any ideas on what I'm doing wrong?  I've got MOSS SP1 on Win2k3 if that helps...

Sep 7, 2009 at 1:50 PM

Hi Chris,

I had similar error on WSS 3.0 in Win 2008. The feature was actived just for normal SP site (SharePoint - 80) and not the Central Administration site. One way to solve this was to manualy change the web.config file for CA site and add this code to <httpModules>:

<add name="WCFVPPRegModule" type="Winsmarts.WCFSupport.WCFVPPRegModule, Winsmarts.WCFSupport, Version=, Culture=neutral,PublicKeyToken=2724eeeca67c35a7" />

I've also change the code in WCFSupportReceiver.cs so the feature will modify web.config of the site the feature was actived on:


was changed to:



I don't know what implications does have this change on bigger web farms, but it is working on my single server test environment and modifies the correct web.config. (The GetValue<SPWebService>() grabbed the first of two SPWebService objects and applied modifications on all web sites defined for that services. In my case the CA site and SharePoint 80 site were defined in two different SPWebServices.)