ASP.NET未能映射路径

来源:百度知道 编辑:UC知道 时间:2024/05/31 09:08:02
在用FCKEditor时,我已经在配置文件中这样设置了,但是还是未能映射路径,到底什么原因呢?
<appSettings>
<add key="FCKeditor:BasePath" value="~/fckeditor/"/>
<add key="FCKeditor:UserFilesPath" value="/userfiles/"/>
</appSettings>

调试时:
<appSettings>
<add key="FCKeditor:BasePath" value="~/fckeditor"/>
<add key="FCKeditor:UserFilesPath" value="/工程名/userfiles"/>
</appSettings>
部署时:
<appSettings>
<add key="FCKeditor:BasePath" value="~/fckeditor"/>
<add key="FCKeditor:UserFilesPath" value="/userfiles"/>
</appSettings>

<appSettings>
<add key="FCKeditor:BasePath" value="~/fckeditor"/>
<add key="FCKeditor:UserFilesPath" value="/userfiles"/>
</appSettings>

改成这样试试。。。。我以前也碰到过类似情况,不过我用的是另一个控件,也是设置路径的问题,把最后一个“/”去了就好了,程序会自己加一个"/"所以有那个“/”要报错