您的位置:首页 > 编程语言 > ASP

Unrecognized configuration section 'system.webServer' CKFinder - Setup Wizard for ASP

2013-03-10 10:42 721 查看

在配置ckfinder的时候遇到错误:

Microsoft .NET Framework Version:1.1;ASP.NET Version:1.1;

web.config文件:
----------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>

<configuration>

<system.webServer>

<defaultDocument>

<files>

<remove value="iisstart.htm" />

</files>

</defaultDocument>

<enabled>true</enabled>

</system.webServer>

</configuration>

----------------------------------------------------------
调错过程:(wizard,并令CheckAuthentication=true进行测试).
删除.config的<system.webServer>..</system.webServer>.

ErrorsFailed to validate the baseDir setting.

Error creating a folder in 'D:\bx\upload\ckeditoruploads'
You can resume the tests clicking here (remember that further tests might depend on the success of the previous ones)

The security settings of the asp.net enviroment doesn't allow to access the temp folder.

You must edit the web.config file found in the CKFinder folder and put a path in the <add key="CKFinderTempPath" value="" /> setting, that same path should be set in the CKFinderTempPath setting of config.asp.

For example, you can set <add key="CKFinderTempPath" value="undefined" /> in web.config and CKFinderTempPath="undefined" in config.asp
You can resume the tests clicking here (remember that further tests might depend on the success of the previous ones)

---------------------------------------------------------------
使用wizard调试的信息:

CKFinder - Setup Wizard for ASP

This page will try to find out any problem in order to properly run CKFinder for ASP.
StatusRunning test 19 of 45.
InformationVersion of the IIS server: 'Microsoft-IIS/5.1'

The server is using the Asp version: 5.7

Current session variables at the server:

IsAuthorized: True

-End of session variables dump-

Currently selected image component: Auto.Component used by the scripts: Persits.Jpeg

In order to improve performance you should change this line in the config.asp when everything else is OK:

Images.Add "component", "Auto"

to:

Images.Add "component", "Persits.Jpeg"

Version of the Persits.Jpeg component: 2.6.0.0

ErrorsFailed to validate the baseDir setting.

Error creating a folder in 'D:\bx\upload\ckeditoruploads'
You can resume the tests clicking here (remember that further tests might depend on the success of the previous ones)

The asp.net test file failed.

Requested URL: assets/hello.aspx?nocache=Sun Mar 10 2013 10:40:16 GMT+0800 (中国标准时间)

Returned status: 500

Returned text: <html>

<head>

<title>Configuration Error</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 '/bx' Application.<hr width=100% size=1 color=silver></H1>

<h2> <i>Configuration Error</i> </h2></span>

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

<b> Description: </b>An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

<br><br>

<b> Parser Error Message: </b>Unrecognized configuration section 'system.webServer'<br><br>

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

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

<tr>

<td>

<code><pre>

Line 1: <?xml version="1.0" encoding="UTF-8"?>

Line 2: <configuration>

<font color=red>Line 3: <system.webServer>

</font>Line 4: <defaultDocument>

Line 5: <files></pre></code>

</td>

</tr>

</table>

<br>

<b> Source File: </b> D:\bx\web.config<b>    Line: </b> 3

<br><br>

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

<b>Version Information:</b> Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

</font>

</body>

</html>

<!--

[ConfigurationException]: Unrecognized configuration section 'system.webServer' (D:\bx\web.config line 3)

at System.Web.Configuration.HttpConfigurationSystem.CacheLookup(String vpath)

at System.Web.Configuration.HttpConfigurationSystem.ComposeConfig(String reqPath, IHttpMapPath configmap)

at System.Web.HttpContext.GetAppConfig(String name)

at System.Web.HttpContext.GetAppLKGConfig(String name)

-->

Returned xml: [object Document]

Returned headers:

Date: Sun, 10 Mar 2013 02:40:16 GMT
X-Powered-By: ASP.NET
Content-Length: 2756
Server: Microsoft-IIS/5.1
Content-Type: text/html; charset=utf-8
Cache-Control: private


You can resume the tests clicking here (remember that further tests might depend on the success of the previous ones)

The asp.net test file failed.

Requested URL: assets/ckfinder.aspx?what=version&nocache=Sun Mar
10 2013 10:40:38 GMT+0800 (中国标准时间)

Returned status: 500

Returned text: <html>

<head>

<title>Configuration Error</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 '/bx' Application.<hr width=100% size=1 color=silver></H1>

<h2> <i>Configuration Error</i> </h2></span>

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

<b> Description: </b>An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

<br><br>

<b> Parser Error Message: </b>Unrecognized configuration section 'system.webServer'<br><br>

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

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

<tr>

<td>

<code><pre>

Line 1: <?xml version="1.0" encoding="UTF-8"?>

Line 2: <configuration>

<font color=red>Line 3: <system.webServer>

</font>Line 4: <defaultDocument>

Line 5: <files></pre></code>

</td>

</tr>

</table>

<br>

<b> Source File: </b> D:\bx\web.config<b>    Line: </b> 3

<br><br>

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

<b>Version Information:</b> Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

</font>

</body>

</html>

<!--

[ConfigurationException]: Unrecognized configuration section 'system.webServer' (D:\bx\web.config line 3)

at System.Web.Configuration.HttpConfigurationSystem.CacheLookup(String vpath)

at System.Web.Configuration.HttpConfigurationSystem.ComposeConfig(String reqPath, IHttpMapPath configmap)

at System.Web.HttpContext.GetAppConfig(String name)

at System.Web.HttpContext.GetAppLKGConfig(String name)

-->

Returned xml: [object Document]

Returned headers:

Date: Sun, 10 Mar 2013 02:40:38 GMT
X-Powered-By: ASP.NET
Content-Length: 2756
Server: Microsoft-IIS/5.1
Content-Type: text/html; charset=utf-8
Cache-Control: private


You can resume the tests clicking here (remember that further tests might depend on the success of the previous ones)

View detailed output

Notes:

It's very important that you delete this 'wizard' folder from your server when you have finished installing correctly CKFinder. The scripts that it contains aren't designed
to be protected against an attacker, indeed, they might provide them some extra info that it isn't available in any other way
图片正文链接
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐