错误提示:Failed to map the path '/SystemManager/BookInfoManager/A generic error occurred in GDI+.'. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Failed to map the path '/SystemManager/BookInfoManager/A generic error occurred in GDI+.'.Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
图片上传方法:这是javascript语言
 //上传方法
    function uploadFile(fileId) {        $("#uploading").ajaxStart(function () {
            $(this).show();
        }).ajaxComplete(function () {
            $(this).hide();
        });        $.ajaxFileUpload({
            url: "/FileUpload/FileUpload?folderName=/UploadImages/BooKImages/",
            secureuri: false,
            fileElementId: fileId,
            dataType: 'text',
            success: function (data, status) {                if (data != "-1") {
                    $("#FILEPATH").val(data);
                    $("#ResultShow").html("上传成功!");
                    //$("#returnImg img").attr("src", data);
                    //$("#returnImg img").show();
                    $("#returnImg_show").attr("src", $("#FILEPATH").val());
                    //$("#returnImg_show").show();
                    //$("#regurnImg").html("<img id='returnImg_show'src='"+ data +"'  alt='' style='display: none' />");
                    $("#returnImg").show();
                }
                else {
                    $("#ResultShow").html("上传失败!");
                }            },
            error: function (data, status, e) {
                alert("发生错误!\n" + e);
            },
            extFields: {
                user: 'guest',
                comment: '好'
            }
        });        return false;
    }    //验证图片后缀名
    function checkType(val) {        //得到上传文件的值
        var fileName = val;        //返回String对象中子字符串最后出现的位置.   
        var seat = fileName.lastIndexOf(".");        //返回位于String对象中指定位置的子字符串并转换为小写.   
        var extension = fileName.substring(seat).toLowerCase();        var allowed = [".jpg", ".gif", ".png", ".bmp", ".jpeg"];
        for (var i = 0; i < allowed.length; i++) {
            if (!(allowed[i] != extension)) {
                return true;
            }
        }
        alert("不支持" + extension + "格式");
        return false;
    }  javascriptasp.net

解决方案 »

  1.   

    未能映射路径/SystemManager/BookInfoManager/A generic error occurred in GDI+.路径不对撒
      

  2.   

    路径如果没错的话可能是权限问题,BookInfoManager目录检查下是否有运行网站的用户和iis工作组IIS_WGP的写入权限,不行加上everyone的写入权限
      

  3.   

    贴你代码看看,用Server.MapPath转换为物理路径试试,而不是使用相对路径
      

  4.   

    把上传到空间的删除了,如何把本地的所以文件设为everyone权限全部打钩,再上传试下。 
      

  5.   

    试下用本地IIS,网上数据库,看会有什么提示,
      

  6.   

    路径如果没错的话可能是权限问题,BookInfoManager目录检查下是否有运行网站的用户和iis工作组IIS_WGP的写入权限,不行加上everyone的写入权限 
      

  7.   

    路径如果是对的那就是权限问题,加上network service写入权限