2013-04-23 62 views
1

我有一个RadFileExplorer,我想加载UNC路径下的文件夹以显示在我的资源管理器中。我的问题是,它有错误“无法映射路径\ ...”。我在网上搜索,但没有找到任何解决方案。加载RadFileExplorer中的UNC路径

这里是我的代码:

的web.config:

<appSettings> 
    <add key="UNCPath" value="\\Sample\Operation\Documents" /> 
</appSettings> 

aspx.cs:

RadFileExplorer1.Configuration.ViewPaths = new string[] { ConfigurationManager.AppSettings["UNCPath"] }; 

CustomProvider:

public override DirectoryItem ResolveRootDirectoryAsTree(string path) 
{ 
    // Get all folders and filters folder to show 

    DirectoryItem originalFolder = base.ResolveRootDirectoryAsTree(path); --->ERROR HERE "Failed to map the path \\Sample\Operation\Documents" 
} 

如何访问UNC路径以将其加载到我的RadExplorer中?由于

回答

0

,如果你逃跑的路径\\\\样品\\ \\运行\\文件

+0

将您的web.config中的路径值替换为上面的那个(注意额外的斜杠) – Kyle 2013-04-23 06:58:06

+0

然后,如果您未应用必要的问题,则可能会遇到windows许可问题 – Kyle 2013-04-23 07:00:17