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

Add Starting point to sub folder in global folder?

Vote:
 

Hi!

We are converting our existing web site from 4.31 to CMS 5 and I want to add a new starting point to a sub folder of our current global upload folder.

We have a default global folder definied in web.config

<add showInFileManager="true"

virtualName="Global"

virtualPath="~/Global/"

bypassAccessCheck="true"

name="SiteGlobal"

type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer"

physicalPath="c:\Inetpub\Globalkatalog_Converted" />

This works fine!

But I then try to add a starting point to a folder inside the global folder:

<add showInFileManager="true"

virtualName="Dokument"

virtualPath="~/Global/Intranet/Dokument/"

bypassAccessCheck="true"

name="SiteDocuments"

type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer"

physicalPath="c:\Inetpub\Globalkatalog_Converted" />

but i then get an error.

Server Error in '/' Application.


Item with name Global/Intranet/Dokument already exists on same level.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Item with name Global/Intranet/Dokument already exists on same level.

What is wrong?

Best regards

#19530
Apr 15, 2008 13:29
Vote:
 

Hej Mats!

You are not allowed to put another VPP provider inside the path of another. You have to use two diffrent roots for virtualPath.

/Fredrik
INEXOR AB - http://blog.fredrikhaglund.se

#19533
Apr 15, 2008 14:13
Vote:
 

Hej Fredrik

Tack för svar! Löste nu ett krav som vi fått.

//Mats

#19534
Apr 15, 2008 14:26
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.