设为首页 收藏本站
查看: 821|回复: 0

[经验分享] FCKEditor 布署到IIS上出现的问题与解决方法

[复制链接]

尚未签到

发表于 2015-8-13 10:38:26 | 显示全部楼层 |阅读模式
  将网站布署到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.iyunv.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/"/>
即可解决这个问题

  

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-98351-1-1.html 上篇帖子: IIS Scripting API 下篇帖子: [翻译] ASP.NET内幕
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表