FCK编辑器时出现的xml request error 500错误

在使用FCK编辑器时出现的xml request error 500错误,
我的经验是,主要有以下几点原因:
1.上传的文件是否有写权限
2.路径问题,有时在做项目时,在Web.config中就应该做以下修改:
 更正:
    <appSettings>
        <add key="FCKeditor:BasePath" value="/FCKeditor/"/>
        <add key="FCKeditor:UserFilesPath" value="/upload/"/>
    </appSettings>

   <appSettings>
        <add key="FCKeditor:BasePath" value="~/FCKeditor/"/>
        <add key="FCKeditor:UserFilesPath" value="~/upload/"/>
    </appSettings>
或者
    <appSettings>
        <add key="FCKeditor:BasePath" value="/项目名/FCKeditor/"/>
        <add key="FCKeditor:UserFilesPath" value="/项目名/upload/"/>
    </appSettings>
为什么要用这种方式,是因为有时图片无法读取带" ~ "的路径
    例如:<img src="~/upload/123.jpg">就无法在HTML中显示出来.
做了更改以后,记得在上传时也作相应的修改.

posted @ 2008-04-27 00:43  liangwei389  Views(535)  Comments(0Edit  收藏  举报