未能加载类型“FredCK.FCKeditorV2.FileBrowser.Config”。 F:\ysyj-01\WEB\fckeditor\editor\filemanager\connectors\aspx\config.ascx 1
解决方案 »
- 仅有的分数拿来问大家个问题
- Windows7 怎么安装一个虚拟服务器?
- 怎样查询列的信息?
- 棘手问题:处理应用程序池 ' AppPool ' A 进程遇到与 World Wide Web 发布服务致命通信错误
- asp.net中怎么做彈出窗口
- Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- 在线:我想显示这样的数据用哪种控件?
- 求合同书!小弟换了个工作,用asp.net做CRM,但要签合同,以下是他们写的合同内容,请帮帮我。
- 小弟在这里问几个问题,怎样在页面上嵌入word并获取它的值......
- 谁知道FileField上传文件大小有限制吗?多大?谢谢?
- 这个传参数如何办?
- c# 打印
确定你项目里有这个
<add key="FCKeditor:BasePath" value="~/FCKEditor/"/>
<!--编辑器所在路径-->
<add key="FCKeditor:UserFilesPath" value="~/userfiles/"/>
加了吗
看看吧
<add key="FCKeditor:UserFilesPath" value="~/FileUpload/"/>
加到<appSettings>里面
文件上传,一直是容易被利用的攻击通道,呵呵,所以这里要重点提一下:
打开 editor/filemanager/connectors/aspx/config.ascx
private bool CheckAuthentication()
{
//为了防止任意用户均可以打开上传页或者浏览服务器文件
//建议将此处和你的后台管理权限进行集成,如果不需要验证,则直接返回 true 即可
//------------------------------------------------ //1. 假设你用 session 存储用户的登录验证信息,假设 session 的 key 为 auth
// 则需要返回
//return (Session["auth"] != null && Session["auth"] == "验证值"); //2. 如果你用 FORM 验证方式,则可以验证
//return Page.User.Identity.IsAuthenticated; // WARNING : DO NOT simply return "true". By doing so, you are allowing
// "anyone" to upload and list the files in your server. You must implement
// some kind of session validation here. Even something very simple as...
//
//return ( Session[ "IsAuthorized" ] != null && (bool)Session[ "IsAuthorized" ] == true );
//
// ... where Session[ "IsAuthorized" ] is set to "true" as soon as the
// user logs in your system. return true;
}