November Happy Hour will be moved to Thursday December 5th.

Invalid characters in physicalPath

Vote:
 

Hi

I'm trying to set up a couple of virual folders but I keep getting invalid character errors.

My first problem is that I'm not sure what provider I'm supposed to use? The folder is on a network drive.

Second problem is the "ä" in the path. I've tried converting it to unicode, hex, html entities and just about everything else I can think of. Any tips?

Here's my config:

<add showInFileManager="true" virtualName="SB-VHS" virtualPath="~/SB-VHS/" bypassAccessCheck="false" maxVersions="3" physicalPath="\XW-FIL2\files\210\Gemensam\SB-Verksamhetssystem\Verksamhetssystem fastställd\publ\" name="SB-VHS" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" />

/Peter

#53587
Sep 15, 2011 15:29
Vote:
 

If you're trying to map a folder with existing content, as it seems you are, you should use the VirtualPathNativeProvider.
As for the special character, I'd look into changing the actual folder name, I don't see how you'd solve it otherwise, without perhaps making your own provider...

#53699
Sep 20, 2011 18:36
Vote:
 

It turned out to be a simple fix... Somewhere along the line episerver.config was saved ansi-encoded. I just saved it as utf-8 and now everything works.

/Peter

#53872
Sep 23, 2011 13:59
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.