Get VPP physicalpath in CMS 9

Vote:
 

Hi,

I've upgraded a site that ran on CMS 7.5 to CMS 9. I've noticed the breaking changes regarding VPP but can't seem to get my head around how to solve the following. I got code that looks like:

EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider provider = VirtualPathHandler.GetProvider("LogDisplay") as VirtualPathNonUnifiedProvider;

What I can't find out is: Where VirtualPathHandler in CMS 9? And if it's "no more". How do I get the physicalpath for a VPP in CMS 9.

Thanks in advance :)

//M

#140336
Oct 16, 2015 10:37
Vote:
 

I would say you dont. Instead you work with content providers like this on: http://world.episerver.com/Blogs/Johan-Bjornfot/Dates1/2014/8/LocalMediaProvider/ this is used to map a physical folder to episerver.

#140338
Edited, Oct 16, 2015 10:55
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.