Try our conversational search powered by Generative AI!

robert.dougan@mimtech.co.uk
Dec 2, 2010
  5515
(0 votes)

Setting Up a New VPP

I had to configure a new VPP for a Content Channel to work with the SharePoint Connector to push documents from a SharePoint site into my EPiServer site.

So, I created a new VPP entry in my EPiServer.config…

   1: <add showInFileManager="true" virtualName="FOI" virtualPath="~/FOI/"
   2: bypassAccessCheck="false" indexingServiceCatalog="Web" 
   3: physicalPath="C:\EPiServer\VPP\MySite\FOI"
   4: name="FOIFiles" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" />

…and then configured my Content Channel.

All went well and SharePoint was able to upload documents.

However, when I tried to serve out the documents on the site or view them in the file manager, I kept getting 404’s.

The problem was that, in addition to the VPP entry in the EPiServer.config file, you also need to make a <location> entry in the web.config for your VPP, like so…

   1: <location path="FOI">
   2:     <system.webServer>
   3:         <handlers>
   4:             <add name="webresources" path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" />
   5:             <add name="wildcard" path="*" verb="*" type="EPiServer.Web.StaticFileHandler, EPiServer" />
   6:         </handlers>
   7:     </system.webServer>
   8:     <staticFile expirationTime="-1.0:0:0" />
   9: </location>

Perhaps an obvious thing but I didn’t see any information about this on EPiServer World so I thought I would post it here for anyone else who may encounter the same problem.

Dec 02, 2010

Comments

smithsson68@gmail.com
smithsson68@gmail.com Dec 3, 2010 03:43 PM

Thanks for this Robert!

Jan 18, 2011 04:52 PM

thanks for this.. just what I was looking for.

Please login to comment.
Latest blogs
Optimizely and the never-ending story of the missing globe!

I've worked with Optimizely CMS for 14 years, and there are two things I'm obsessed with: Link validation and the globe that keeps disappearing on...

Tomas Hensrud Gulla | Apr 18, 2024 | Syndicated blog

Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog

Azure AI Language – Abstractive Summarisation in Optimizely CMS

In this article, I show how the abstraction summarisation feature provided by the Azure AI Language platform, can be used within Optimizely CMS to...

Anil Patel | Apr 18, 2024 | Syndicated blog

Fix your Search & Navigation (Find) indexing job, please

Once upon a time, a colleague asked me to look into a customer database with weird spikes in database log usage. (You might start to wonder why I a...

Quan Mai | Apr 17, 2024 | Syndicated blog

The A/A Test: What You Need to Know

Sure, we all know what an A/B test can do. But what is an A/A test? How is it different? With an A/B test, we know that we can take a webpage (our...

Lindsey Rogers | Apr 15, 2024

.Net Core Timezone ID's Windows vs Linux

Hey all, First post here and I would like to talk about Timezone ID's and How Windows and Linux systems use different IDs. We currently run a .NET...

sheider | Apr 15, 2024