zoukankan      html  css  js  c++  java
  • FCKEditor 布署到IIS上出现的问题与解决方法

    将网站布署到IIS测试时,发现用FCKEditor的页面,点击上传图片,浏览图片时出现:
    ---------------------------
    Microsoft Internet Explorer
    ---------------------------
    The server didn't send back a proper XML response. Please contact your system administrator.

    XML request error: Internal Server Error (500)

    Requested URL:
    http://localhost/nkju/fckeditor/editor/filemanager/browser/default/http://www.cnblogs.com/connectors/aspx/connector.aspx?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=%2F&uuid=1245601564437

    Response text:
    <html>

        <head>

            <title>Error calling [msvcrt.dll]:_wmkdir(c:\inetpub\wwwroot\NkFurnishingWeb), error code: -1</title>

            <style>

             body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}

             p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}

             b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}

             H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }

             H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }

             pre {font-family:"Lucida Console";font-size: .9em}

             .marker {font-weight: bold; color: black;text-decoration: none;}

             .version {color: gray;}

             .error {margin-bottom: 10px;}

             .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }

            </style>

        </head>

        <body bgcolor="white">

                <span><H1>Server Error in '/nkju' Application.<hr width=100% size=1 color=silver></H1>

                <h2> <i>Error calling [msvcrt.dll]:_wmkdir(c:\inetpub\wwwroot\NkFurnishingWeb), error code: -1</i> </h2></span>

                <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

                <b> Description: </b>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.

                <br><br>

                <b> Exception Details: </b>System.ApplicationException: Error calling [msvcrt.dll]:_wmkdir(c:\inetpub\wwwroot\NkFurnishingWeb), error code: -1<br><br>

                <b>Source Error:</b> <br><br>

                <table width=100% bgcolor="#ffffcc">

                   <tr>

                      <td>

                          <code>

    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.</code>

                      </td>

                   </tr>

                </table>

                <br>

                <b>Stack Trace:</b> <br><br>

                <table width=100% bgcolor="#ffffcc">

                   <tr>

                      <td>

                          <code><pre>

    [ApplicationException: Error calling [msvcrt.dll]:_wmkdir(c:\inetpub\wwwroot\NkFurnishingWeb), error code: -1]

       FredCK.FCKeditorV2.Util.CreateDirectoryUsingDll(DirectoryInfo dir) +622

       FredCK.FCKeditorV2.Util.CreateDirectory(String path) +159

       FredCK.FCKeditorV2.FileBrowser.FileWorkerBase.ServerMapFolder(String resourceType, String folderPath, Boolean isQuickUpload) +137

       FredCK.FCKeditorV2.FileBrowser.Connector.GetFolders(XmlNode connectorNode, String resourceType, String currentFolder) +80

       FredCK.FCKeditorV2.FileBrowser.Connector.OnLoad(EventArgs e) +938

       System.Web.UI.Control.LoadRecursive() +50

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

    </pre></code>

                      </td>

                   </tr>

                </table>

                <br>

                <hr width=100% size=1 color=silver>

                <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

                </font>

        </body>

    </html>

    <!--

    [ApplicationException]: Error calling [msvcrt.dll]:_wmkdir(c:\inetpub\wwwroot\NkFurnishingWeb), error code: -1

       at FredCK.FCKeditorV2.Util.CreateDirectoryUsingDll(DirectoryInfo dir)

       at FredCK.FCKeditorV2.Util.CreateDirectory(String path)

       at FredCK.FCKeditorV2.FileBrowser.FileWorkerBase.ServerMapFolder(String resourceType, String folderPath, Boolean isQuickUpload)

       at FredCK.FCKeditorV2.FileBrowser.Connector.GetFolders(XmlNode connectorNode, String resourceType, String currentFolder)

       at FredCK.FCKeditorV2.FileBrowser.Connector.OnLoad(EventArgs e)

       at System.Web.UI.Control.LoadRecursive()

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown.

       at System.Web.UI.Page.HandleError(Exception e)

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

       at System.Web.UI.Page.ProcessRequest()

       at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)

       at System.Web.UI.Page.ProcessRequest(HttpContext context)

       at ASP.fckeditor_editor_filemanager_connectors_aspx_connector_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nkju\aab04c64\eda6fc2c\App_Web_0447wxrr.0.cs:line 0

       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    -->
    ---------------------------
    确定  
    ---------------------------
    的javascript错误提示框:
    在网上狂搜一通,终于找到他的解决方法:
    平常配置FckEditor时:web.config的配置是这样的:
    <add key="FCKeditor:BasePath" value="~/fckeditor/"/>
    <add key="FCKeditor:UserFilesPath" value="/NkFurnishingWeb/UploadFiles/"/>

    只要我们将第二句改成
    <add key="FCKeditor:UserFilesPath" value="~/NkFurnishingWeb/UploadFiles/"/>
    即可解决这个问题

  • 相关阅读:
    摩拜单车--获地球卫士奖
    项目经理--读书静心的日子
    20165219 Exp1 PC平台逆向破解
    2018-2019-2 20165219《网络对抗技术》Exp0 Kali安装 Week1
    2018-2019-1 20165219《信息安全系统设计基础》实验五
    ### 2018-2019-1 20165219《信息安全系统设计基础》实验四
    实现mypwd
    mybash的实现
    2018-2019-1 20165219 实验三 实时系统
    2018-2019-1 20165219 《信息安全系统设计基础》第七周学习总结
  • 原文地址:https://www.cnblogs.com/dotneter/p/1507990.html
Copyright © 2011-2022 走看看