SharePoint 2007 as a WCF host - Step #4, Write a Virtual Path Provider

Posted by: Sahil Malik - blah.winsmarts.com, on 09 May 2008 | View original | Bookmarked: 0 time(s)

Table of Contents for SharePoint as a WCF host.  1. Create a WCF Home. This is the virtual directory that will host all your WCF endpoints. 2. Create a WCF Service Library, and throw it in the GAC. 3. Create a relevant .svc file in the WCF home you created in step #1. 4. Write a WCF Virtual Path Provider, and register it in the SharePoint site. As I just mentioned, the SPVirtualPathProvider blows up when it see's a URL that starts with '~'. Luckily, the problem is easy to fix. You simply author your own Virtual Path Provider. In order to write your own VirtualPathProvider, you have to author a class that inherits from the System.Web.Hosting.VirtualPathProvider class. Now, you might be thinking that this will be...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: Sharepoint | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1290 | Hits: 43

Similar Posts

  • Functional Programming Battles GOTOzilla more
  • Getting an ASP.NET Application Relative Path from a Logical Path more
  • Implementing WCF more
  • Tools of a SharePoint consultant more
  • The Most Useful .NET Utility Classes Developers Tend To Reinvent Rather Than Reuse more
  • Oracle Developer Tools more
  • How to run web services and sites on the same box as sharepoint (avoiding "404 Page Not Found" errors) more
  • Important Note On Upgrading to Subtext 1.9 more
  • Of Hosts and Factories more
  • Yikes, I've been slashdotted! more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD