在使用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中显示出来.
做了更改以后,记得在上传时也作相应的修改.

相关文章:

  • 2021-11-16
  • 2022-12-23
  • 2022-02-09
  • 2021-08-03
  • 2021-12-02
  • 2022-12-23
  • 2021-09-22
  • 2021-07-17
猜你喜欢
  • 2022-12-23
  • 2021-11-03
  • 2021-05-21
  • 2021-10-22
  • 2022-12-23
  • 2021-09-11
  • 2021-11-23
相关资源
相似解决方案