Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 配置内容频道服务器_C#_.net_Web Services_Episerver - Fatal编程技术网

C# 配置内容频道服务器

C# 配置内容频道服务器,c#,.net,web-services,episerver,C#,.net,Web Services,Episerver,我正在使用episerverwebservice创建页面和导入文件。对于每个页面,都应该有PageFiles根文件夹,在PageFiles下应该有另一个文件夹,比如Images。因此,搜索路径在根目录中为~/PageFiles/id/file.jpg,在根目录中为~/PageFiles/id/Images/file.jpg 我有两个内容频道。一个将文件放入根文件夹,另一个将文件放入映像文件夹。我有这样的配置 文件的虚拟根=~/PageFiles/ 文件的虚拟根=~/PageFiles/Imag

我正在使用episerverwebservice创建页面和导入文件。对于每个页面,都应该有PageFiles根文件夹,在PageFiles下应该有另一个文件夹,比如Images。因此,搜索路径在根目录中为~/PageFiles/id/file.jpg,在根目录中为~/PageFiles/id/Images/file.jpg

我有两个内容频道。一个将文件放入根文件夹,另一个将文件放入映像文件夹。我有这样的配置

  • 文件的虚拟根=~/PageFiles/
  • 文件的虚拟根=~/PageFiles/Images/
问题是当我使用这种方法时

ImportFile3("MyContentChannel", all the other params)
只创建“页面文件”文件夹,所有文件都放在此根文件夹中。如果我希望EPI创建“图像”文件夹并将图像放入该文件夹中,该怎么办

谢谢

编辑

即使Images文件夹存在,该文件仍会在根文件夹中结束

编辑2,最终解决方案

多亏了Dmytro Duk,我在想把文件放进图像文件夹时做到了这一点

ImportFile("pagefiles", image, false, "185/Images/file.png");

其中185是我必须添加自己的页面的pagefolderid。

尝试使用.ImportFile方法的channelRelativeFilePath参数指定内容频道根文件夹中的相对路径。

能否给出一个示例?(已经尝试过类似的方法,但没有成功)