<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: WCF and SharePoint: context != context</title>
	<atom:link href="http://blog.mastykarz.nl/wcf-sharepoint-context/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mastykarz.nl/wcf-sharepoint-context/</link>
	<description>Innovation Matters &#124; SharePoint Server MVP</description>
	<lastBuildDate>Mon, 26 Jul 2010 17:43:19 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sheetal</title>
		<link>http://blog.mastykarz.nl/wcf-sharepoint-context/comment-page-1/#comment-48974</link>
		<dc:creator>Sheetal</dc:creator>
		<pubDate>Wed, 02 Jun 2010 05:46:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/wcf-sharepoint-context/#comment-48974</guid>
		<description>Hi,

I had to register the HttpHandler in the &lt;system.webserver&gt; tag in web.config and it started working.
I am not able to figureout how the SharePoint services been configured.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I had to register the HttpHandler in the &lt;system.webserver&gt; tag in web.config and it started working.<br />
I am not able to figureout how the SharePoint services been configured.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheetal</title>
		<link>http://blog.mastykarz.nl/wcf-sharepoint-context/comment-page-1/#comment-48973</link>
		<dc:creator>Sheetal</dc:creator>
		<pubDate>Wed, 02 Jun 2010 05:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/wcf-sharepoint-context/#comment-48973</guid>
		<description>Hi,

I had to register the HttpHandler in the  tag in web.config and it started working.
I am not able to figureout how the SharePoint services been configured.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I had to register the HttpHandler in the  tag in web.config and it started working.<br />
I am not able to figureout how the SharePoint services been configured.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/wcf-sharepoint-context/comment-page-1/#comment-48502</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Wed, 26 May 2010 10:38:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/wcf-sharepoint-context/#comment-48502</guid>
		<description>@Sheetal: have you tried deploying your custom SVC alongside SharePoint services? Additionally have you looked how SharePoint services have been configured?</description>
		<content:encoded><![CDATA[<p>@Sheetal: have you tried deploying your custom SVC alongside SharePoint services? Additionally have you looked how SharePoint services have been configured?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheetal</title>
		<link>http://blog.mastykarz.nl/wcf-sharepoint-context/comment-page-1/#comment-48446</link>
		<dc:creator>Sheetal</dc:creator>
		<pubDate>Tue, 25 May 2010 09:46:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/wcf-sharepoint-context/#comment-48446</guid>
		<description>Hi Waldek, Great Post!!

I am currently migrating a site from MOSS 2007 to SharePoint 2010 which has custom WCF services. When deploying .wsp file in MOSS 2007 environment it gets deployed at Features directory under 12 hive and works well. Where as when I try to deploy the .wsp file in SharePoint 2010 the WCF doesn&#039;t work.

The service is working correctly when the .svc is stored directly in the virtual directory of the iis... the problems appear when I deploy the .svc file to the 14. Any idea?

I didn&#039;t change anything, only put the .svc outside SharePoint to test it, and it works. When I call the .svc file inside SP I get this error:
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  

Apart from that when I deploy the .wsp file (its a custom site template ) and create a site, the default webservices also doesn&#039;t work (_vti_bin\Lists.asmx , _vti_bin\Listsdata.asmx..etc)... I have verified for the webservices by creating a normal team site and browsed for _vti_bin webservices which works fine.

Is that the way WCF behaves differently in SP2010 environment?</description>
		<content:encoded><![CDATA[<p>Hi Waldek, Great Post!!</p>
<p>I am currently migrating a site from MOSS 2007 to SharePoint 2010 which has custom WCF services. When deploying .wsp file in MOSS 2007 environment it gets deployed at Features directory under 12 hive and works well. Where as when I try to deploy the .wsp file in SharePoint 2010 the WCF doesn&#039;t work.</p>
<p>The service is working correctly when the .svc is stored directly in the virtual directory of the iis&#8230; the problems appear when I deploy the .svc file to the 14. Any idea?</p>
<p>I didn&#039;t change anything, only put the .svc outside SharePoint to test it, and it works. When I call the .svc file inside SP I get this error:<br />
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  </p>
<p>Apart from that when I deploy the .wsp file (its a custom site template ) and create a site, the default webservices also doesn&#039;t work (_vti_bin\Lists.asmx , _vti_bin\Listsdata.asmx..etc)&#8230; I have verified for the webservices by creating a normal team site and browsed for _vti_bin webservices which works fine.</p>
<p>Is that the way WCF behaves differently in SP2010 environment?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Resing</title>
		<link>http://blog.mastykarz.nl/wcf-sharepoint-context/comment-page-1/#comment-41827</link>
		<dc:creator>Tom Resing</dc:creator>
		<pubDate>Wed, 03 Feb 2010 15:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/wcf-sharepoint-context/#comment-41827</guid>
		<description>It&#039;s second hand, but I was told the service is in the _vti_bin folder of a SharePoint Application and we are using similar, if not the same settings from your web.config. Did I misinterpret your context statement? I&#039;m really curious if you have SPContext in your service and I&#039;m just missing something or if SPContext just won&#039;t work.</description>
		<content:encoded><![CDATA[<p>It&#039;s second hand, but I was told the service is in the _vti_bin folder of a SharePoint Application and we are using similar, if not the same settings from your web.config. Did I misinterpret your context statement? I&#039;m really curious if you have SPContext in your service and I&#039;m just missing something or if SPContext just won&#039;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/wcf-sharepoint-context/comment-page-1/#comment-41826</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Wed, 03 Feb 2010 15:28:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/wcf-sharepoint-context/#comment-41826</guid>
		<description>@Tom: that&#039;s a good one. It&#039;s been a while since I was working on that, so let me just try: have you tried hosting your WCF service within the path of a SharePoint Web Application? Additionally you could try to use the Feature that I put on CodePlex to get the configuration settings into your web.config.</description>
		<content:encoded><![CDATA[<p>@Tom: that&#039;s a good one. It&#039;s been a while since I was working on that, so let me just try: have you tried hosting your WCF service within the path of a SharePoint Web Application? Additionally you could try to use the Feature that I put on CodePlex to get the configuration settings into your web.config.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Resing</title>
		<link>http://blog.mastykarz.nl/wcf-sharepoint-context/comment-page-1/#comment-41752</link>
		<dc:creator>Tom Resing</dc:creator>
		<pubDate>Tue, 02 Feb 2010 20:42:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/wcf-sharepoint-context/#comment-41752</guid>
		<description>Waldek, if I read this correctly, you are able to get SPContext.Current within a .svc. If that is true, how? If it is just a matter of the folder and the compatability option, I&#039;m still doing something wrong. Thanks,
Tom</description>
		<content:encoded><![CDATA[<p>Waldek, if I read this correctly, you are able to get SPContext.Current within a .svc. If that is true, how? If it is just a matter of the folder and the compatability option, I&#039;m still doing something wrong. Thanks,<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/wcf-sharepoint-context/comment-page-1/#comment-21313</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Mon, 15 Jun 2009 14:09:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/wcf-sharepoint-context/#comment-21313</guid>
		<description>@JohnLiu: Sahil was first: I only copied his code (exactly the same as in spwcfsupport) and wrapped it in a WSP. I think just yesterday Sahil wrapped his code in a WSP as well.</description>
		<content:encoded><![CDATA[<p>@JohnLiu: Sahil was first: I only copied his code (exactly the same as in spwcfsupport) and wrapped it in a WSP. I think just yesterday Sahil wrapped his code in a WSP as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JohnLiu</title>
		<link>http://blog.mastykarz.nl/wcf-sharepoint-context/comment-page-1/#comment-21309</link>
		<dc:creator>JohnLiu</dc:creator>
		<pubDate>Mon, 15 Jun 2009 12:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/wcf-sharepoint-context/#comment-21309</guid>
		<description>Haha I read about this: http://spwcfsupport.codeplex.com/ only a couple of days later - they did exactly the virtual path provider thing.  Check it out!

I think it&#039;s great to roll your own, but sometimes I get lazy ;-P</description>
		<content:encoded><![CDATA[<p>Haha I read about this: <a href="http://spwcfsupport.codeplex.com/" rel="nofollow">http://spwcfsupport.codeplex.com/</a> only a couple of days later &#8211; they did exactly the virtual path provider thing.  Check it out!</p>
<p>I think it&#039;s great to roll your own, but sometimes I get lazy ;-P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JohnLiu</title>
		<link>http://blog.mastykarz.nl/wcf-sharepoint-context/comment-page-1/#comment-20848</link>
		<dc:creator>JohnLiu</dc:creator>
		<pubDate>Tue, 09 Jun 2009 13:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/wcf-sharepoint-context/#comment-20848</guid>
		<description>Oh I realized I read the article wrong and made a wrong comment.
I was looking at rolling a custom VirtualPathProvider
http://msdn.microsoft.com/en-us/library/system.web.hosting.virtualpathprovider.aspx
And hooking it up with HostingEnvironment.RegisterVirtualPathProvider which should allow you to &#039;chain&#039; your virtual path provider on top of SharePoint&#039;s one.

Then you can handle VirtualPathProvider&#039;s GetDirectory and GetFile and map it back to the root site&#039;s _wcf folder.</description>
		<content:encoded><![CDATA[<p>Oh I realized I read the article wrong and made a wrong comment.<br />
I was looking at rolling a custom VirtualPathProvider<br />
<a href="http://msdn.microsoft.com/en-us/library/system.web.hosting.virtualpathprovider.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.web.hosting.virtualpathprovider.aspx</a><br />
And hooking it up with HostingEnvironment.RegisterVirtualPathProvider which should allow you to &#039;chain&#039; your virtual path provider on top of SharePoint&#039;s one.</p>
<p>Then you can handle VirtualPathProvider&#039;s GetDirectory and GetFile and map it back to the root site&#039;s _wcf folder.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
