产品使用及交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

本地测试正常,上传到虚拟空间打开网站显示web.config配置有问题 [复制链接]

1#
下载了pageadmin外贸系统,在本地测试没什么问题,但是上传到bluehost的空间以后,打开网页显示的是下面的信息:

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information
Module    DefaultDocumentModule
Notification    ExecuteRequestHandler
Handler    StaticFile
Error Code    0x800700b7
Config Error    Cannot add duplicate collection entry of type 'add' with unique key attribute 'value' set to 'index.aspx'
Config File    \\?\D:\INETPUB\VHOSTS\jacled.com\httpdocs\web.config
Requested URL    http://jacled.com0/
Physical Path    D:\INETPUB\VHOSTS\jacled.com\httpdocs
Logon Method    Anonymous
Logon User    Anonymous
Config Source

   25:       <files>
   26:         <add value="index.aspx" />
   27:       </files>

Links and More Information This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.

View more information »

各位大侠有知道解决办法的没有,很着急,作为生手,完全不知道该从何下手。如果有知道的,麻烦把详细的解决方法给我,谢谢啦 !
分享 转发
TOP
2#

期待大家的回复,先多谢啦!
TOP
3#

下载了pageadmin外贸系统,在本地测试没什么问题,但是上传到bluehost的空间以后,打开网页显示的是下面的信息:

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information
Module    DefaultDocumentModule
Notification    ExecuteRequestHandler
Handler    StaticFile
Error Code    0x800700b7
Config Error    Cannot add duplicate collection entry of type 'add' with unique key attribute 'value' set to 'index.aspx'
Config File    \\?\D:\INETPUB\VHOSTS\jacled.com\httpdocs\web.config
Requested URL    http://jacled.com0/
Physical Path    D:\INETPUB\VHOSTS\jacled.com\httpdocs
Logon Method    Anonymous
Logon User    Anonymous
Config Source

   25:       <files>
   26:         <add value="index.aspx" />
   27:       </files>

Links and More Information This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.

View more information »
web.config的代码如下:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <appSettings>
    <add key="Url" value="localhost" />
    <add key="License" value="" />
    <add key="DbType" value="0" />
    <add key="DBPath" value="/e/database/v3.mdb" />
    <add key="SqlConnection" value="Provider=SQLOLEDB;Data Source=127.0.0.1;Initial Catalog=sq_data;User ID=sa;Password=123456" />
    <add key="ManageDirectory" value="/e/master/" />
  </appSettings>
  <system.web>
    <httpModules>
    </httpModules>
    <pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" viewStateEncryptionMode="Never" />
    <compilation defaultLanguage="C#" debug="false" />
    <authentication mode="Forms" />
    <customErrors mode="Off">
      <error statusCode="404" redirect="/error404.html" />
    </customErrors>
    <globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
    <httpRuntime maxRequestLength="1024000" executionTimeout="3600" />
  </system.web>
  <system.webServer>
    <defaultDocument>
      <files>
        <add value="index.aspx" />
      </files>
    </defaultDocument>
  </system.webServer>
</configuration>

各位大侠有知道解决办法的没有,很着急,作为生手,完全不知道该从何下手。如果有知道的,麻烦把详细的解决方法给我,谢谢啦 !
TOP
4#

域名发出来检测
TOP
5#

jacled.com,这是我的域名,你懂这个吗?能否帮我解决呢?
TOP
6#

另外我想问pageadmin系统默认文档:index.html,index.aspx,其中index.html必须优先于index.aspx, 这个东西到底是什么意思呢?我要怎么做呢,我在下载的系统解压以后只有Index.aspx,没有index.html啊。要怎么做?
TOP
发新话题 回复该主题