iis发布错误,所有页面只有html改成aspx能显示,不改只显示404页面

时间:2021-01-22 11:29:52
iis发布错误,所有页面只有html改成aspx能显示,不改只显示404页面 iis发布错误,所有页面只有html改成aspx能显示,不改只显示404页面iis发布错误,所有页面只有html改成aspx能显示,不改只显示404页面

4 个解决方案

#1


那就是 没有 html页面啊。。。

这个问题基本就2种可能了。
1  本来项目就没有 html页面,只有 aspx
2  项目有html页面,但是发布的时候,没有包含进发布目录

#2


引用 1 楼 hanjun0612 的回复:
那就是 没有 html页面啊。。。

这个问题基本就2种可能了。
1  本来项目就没有 html页面,只有 aspx
2  项目有html页面,但是发布的时候,没有包含进发布目录
伪静态技术,没有html页面,C#缓存技术,aspx动态技术

#3


引用 1 楼 hanjun0612 的回复:
那就是 没有 html页面啊。。。

这个问题基本就2种可能了。
1  本来项目就没有 html页面,只有 aspx
2  项目有html页面,但是发布的时候,没有包含进发布目录
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
<section name="CacheSettings" type="System.Configuration.NameValueFileSectionHandler,System, Version=1.0.3300.0,Culture=neutral,PublicKeyToken=b77a5c561934e089 " />
    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<appSettings>
<add key="newsPicMaxSize" value=
<add key="proPicMaxSize" value="500" />
<add key="upPicType" value="image/pjpeg|image/jpeg|image/gif|image/png|image/x-png|application/octet-stream" />
<add key="ccErrRequestNumPerMinute" value="4" />
<add key="userUpPicSize" value="500" />
<add key="userSendQuestionSpanMinute" value="5" />
<add key="codexdo" value="4" />
<add key="codeydo" value="6" />
<add key="codezdo" value="45" />
    <add key="codebgpoint" value="0" />
    <add key="versions" value="V4.0.0.0" />
<add key="codeunderline" value="0" />

</appSettings>
<connectionStrings>
<add name="DBCONNECTIONSTRING" connectionString="mysys_!@#$#ntsoft-ok" />
</connectionStrings>
<system.web> 
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
<httpRuntime executionTimeout="600" requestValidationMode="2.0" maxRequestLength="200000" useFullyQualifiedRedirectUrl="true" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="1000" enableVersionHeader="true" />
<compilation debug="true" targetFramework="4.0">
</compilation>
<authentication mode="Windows" />
<customErrors mode="Off" defaultRedirect="~/error/webinfo.htm">
<error statusCode="500" redirect="~/error/websysinfo.htm" />
<error statusCode="403" redirect="~/error/webuninfo.htm" />
<error statusCode="404" redirect="~/error/webnoinfo.htm" />
</customErrors>
<httpHandlers>
<add path="scissors.axd" verb="*" type="BitmapCutter.Core.HttpHandler.BitmapScissors,BitmapCutter.Core" validate="false" />
</httpHandlers>
<httpModules>
<add type="Netsoftok.AnalysisTemplate.HttpModule,Netsoftok.AnalysisTemplate" name="HttpModule" />
</httpModules>
<pages validateRequest="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />
        <identity impersonate="true" />
    
  </system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
            <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness64" />
            <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
            <add name="htmlx32*" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
            <add name="htmlx32" path="*.html" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
            <add name="Html-Integrate" path="*.html" verb="*" type="System.Web.UI.PageHandlerFactory" resourceType="Unspecified" preCondition="integratedMode" />
            <add name="All" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
            <add name="htmlrequest" path=".html" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
<add name="b2b" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
</handlers>
<defaultDocument>
<files>
<add value="index.aspx" />
</files>
</defaultDocument>
        <modules>
              <add name="all" type="URLRewriter.ModuleRewriter" preCondition="managedHandler" />
        </modules>
</system.webServer>
<system.serviceModel>
<bindings />
<client />
</system.serviceModel>
  

  <log4net>
    <!--日志记录器logger,可以有多个-->
    <!--http://www.cnblogs.com/Excellentchen/archive/2009/12/28/1634233.html-->
    <logger name="AppLogger">
      <level value="INFO" />
      <!--<appender-ref ref="LogFileAppender"/>-->
      <appender-ref ref="RollingLogFileAppender" />
      <!--<appender-ref ref="ConsoleAppender"/>-->
    </logger>
    <logger name="AppExceptionLogger">
      <level value="ALL" />
      <appender-ref ref="RollingLogExceptionFileAppender" />
    </logger>
    <!--所有logger的基,root的设置在所有logger中都起作用。 
        当在root和logger中重复设定相同的appender时,你会发现同一日志信息将被记录两次。-->
    <!--<root> 
            <level value="WARN" /> 
            <appender-ref ref="LogFileAppender" /> 
            <appender-ref ref="ConsoleAppender" /> 
        </root>-->
    <!--一个appender可以由多个logger共用,当然一个logger可以指定多个appender。-->
    <appender name="LogFileAppender" type="log4net.Appender.FileAppender">
      <param name="File" value="logs/App.log" />
      <param name="AppendToFile" value="true" />
      <param name="datePattern" value=".yyyyMMdd" />
      <param name="maximumFileSize" value="1MB" />
      <layout type="log4net.Layout.PatternLayout">
        <param name="ConversionPattern" value="[%d{yyyy-MM-dd HH:mm:ss}]([%C]>>[%M]): %m%n" />
      </layout>
      <filter type="log4net.Filter.LevelRangeFilter">
        <param name="LevelMin" value="DEBUG" />
        <param name="LevelMax" value="FATAL" />
      </filter>
    </appender>
    <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
      <!--日志文件名开头-->
      <file value="logs/App.log" />
      <!--是否追加到文件-->
      <appendToFile value="true" />
      <!--变换的形式为日期-->
      <rollingStyle value="Date" />
      <!--日期的格式-->
      <datePattern value="yyyyMMdd&quot;.log&quot;" />
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="[%d{yyyy-MM-dd HH:mm:ss}]([%C]>>[%M]): %m%n" />
      </layout>
    </appender>
    <appender name="RollingLogExceptionFileAppender" type="log4net.Appender.RollingFileAppender">
      <!--日志文件名开头-->
      <file value="logs/AppException.log" />
      <!--是否追加到文件-->
      <appendToFile value="true" />
      <!--变换的形式为日期-->
      <rollingStyle value="Date" />
      <!--日期的格式-->
      <datePattern value="yyyyMMdd&quot;.log&quot;" />
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="[%d{yyyy-MM-dd HH:mm:ss}]([%C]>>[%M]): %m%n" />
      </layout>
    </appender>
    <appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
      <layout type="log4net.Layout.PatternLayout">
        <param name="ConversionPattern" value="[%d{yyyy-MM-dd HH:mm:ss}]([%C]>>[%M]): %m%n" />
      </layout>
    </appender>
  </log4net>
</configuration>

#4


引用 1 楼 hanjun0612 的回复:
那就是 没有 html页面啊。。。

这个问题基本就2种可能了。
1  本来项目就没有 html页面,只有 aspx
2  项目有html页面,但是发布的时候,没有包含进发布目录
<?xml version="1.0" encoding="utf-8"?>
<rules>
<rule come="http://192.168.1.8:8084(/)?(index.html)?" go="/netasia/index.aspx"/>
<rule come="http://192.168.1.8:8084(/)?(baidu_verify_AyAxMrdfKM.html)?" go="/netasia/baidu_verify_AyAxMrdfKM.aspx"/>

  <rule come="http://192.168.1.8:8084/mindex.(html|aspx)" go="/netasia/m_index.aspx"/>
  <rule come="http://192.168.1.8:8084/mbrand.(html|aspx)(\?(.*?)?)?" go="/netasia/m_brand.aspx"/>
  <rule come="http://192.168.1.8:8084/mpanicbuy.(html|aspx)(\?(.*?)?)?" go="/netasia/m_panicbuy.aspx"/>
  <rule come="http://192.168.1.8:8084/mtclassfile.(html|aspx)(\?(.*?)?)?" go="/netasia/m_tclassfile.aspx"/>
  <rule come="http://192.168.1.8:8084/msclassfile.(html|aspx)(\?(.*?)?)?" go="/netasia/m_sclassfile.aspx"/>

  <rule come="http://192.168.1.8:8084/mshop(\d+).(html|aspx)" go="/netasia/m_shop.aspx?id=$1"/>
  <rule come="http://192.168.1.8:8084/mshoplist.(html|aspx)(\?(.*?)?)?" go="/netasia/m_shoplist.aspx"/>
  <rule come="http://192.168.1.8:8084/msingin.(html|aspx)" go="/netasia/m_singin.aspx"/>
  <rule come="http://192.168.1.8:8084/mjoin.(html|aspx)" go="/netasia/m_buyerjoin.aspx"/>
  <rule come="http://192.168.1.8:8084/mbuyerjoin.(html|aspx)" go="/netasia/m_join.aspx"/>

  
  <rule come="http://192.168.1.8:8084/mallapp.(html|aspx)" go="/netasia/mallapp.aspx"/>
  <rule come="http://192.168.1.8:8084/join.(html|aspx)" go="/netasia/join.aspx"/>
<rule come="http://192.168.1.8:8084/buyerjoin.(html|aspx)" go="/netasia/buyerjoin.aspx"/>
<rule come="http://192.168.1.8:8084/signin.(html|aspx)(\?(.*?)?)?" go="/netasia/signin.aspx"/>
<rule come="http://192.168.1.8:8084/sell.(html|aspx)(\?(.*?)?)?" go="/netasia/sell.aspx"/>
<rule come="http://192.168.1.8:8084/allsort.(html|aspx)(\?(.*?)?)?" go="/netasia/allsort.aspx"/>
<rule come="http://192.168.1.8:8084/allbrand.(html|aspx)(\?(.*?)?)?" go="/netasia/allbrand.aspx"/>
<rule come="http://192.168.1.8:8084/sitemap.(html|aspx)(\?(.*?)?)?" go="/netasia/sitemap.aspx"/>

<rule come="http://192.168.1.8:8084/pf.(html|aspx)(\?(.*?)?)?" go="/netasia/pf.aspx"/>
<rule come="http://192.168.1.8:8084/cuxiao.(html|aspx)(\?(.*?)?)?" go="/netasia/cuxiao.aspx"/>
<rule come="http://192.168.1.8:8084/brand.(html|aspx)(\?(.*?)?)?" go="/netasia/brand.aspx"/>
<rule come="http://192.168.1.8:8084/brand(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/brandinfo.aspx?brand=$1"/>
<rule come="http://192.168.1.8:8084/buy.(html|aspx)(\?(.*?)?)?" go="/netasia/buy.aspx"/>
<rule come="http://192.168.1.8:8084/product(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/product.aspx?id=$1"/>
<rule come="http://192.168.1.8:8084/tuangou.(html|aspx)(\?(.*?)?)?" go="/netasia/tuangou.aspx"/>
<rule come="http://192.168.1.8:8084/tuan-(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/tuangou_detail.aspx?tuanid=$1"/>
<rule come="http://192.168.1.8:8084/news.(html|aspx)(\?(.*?)?)?" go="/netasia/news.aspx"/>
<rule come="http://192.168.1.8:8084/service.(html|aspx)(\?(.*?)?)?" go="/netasia/service.aspx"/>
<rule come="http://192.168.1.8:8084/service_list.(html|aspx)(\?(.*?)?)?" go="/netasia/service_list.aspx"/>
<rule come="http://192.168.1.8:8084/service/info-(\d+).(html|aspx)" go="/netasia/service_detail.aspx?zhaoid=$1"/>
<rule come="http://192.168.1.8:8084/retrieve_signinid.(html|aspx)" go="/netasia/retrieve_signinid.aspx"/>
<rule come="http://192.168.1.8:8084/retrieve_password.(html|aspx)" go="/netasia/retrieve_password.aspx"/>
<rule come="http://192.168.1.8:8084/retrievee_password.(html|aspx)(\?(.*?)?)?" go="/netasia/retrievee_password.aspx"/>
<rule come="http://192.168.1.8:8084/huodong-(\d+).(html|aspx)" go="/netasia/huodong_detail.aspx?hdid=$1"/>
<rule come="http://192.168.1.8:8084/huodonglist.(html|aspx)(\?(.*?)?)?" go="/netasia/huodong_list.aspx"/>  
<rule come="http://192.168.1.8:8084/notice-(\d+).(html|aspx)" go="/netasia/notice_detail.aspx?noticeid=$1"/>
<rule come="http://192.168.1.8:8084/noticelist(-(\d+))?.(html|aspx)" go="/netasia/notice_list.aspx?page=$2"/>
<rule come="http://192.168.1.8:8084/buyinfo-(\d+).(html|aspx)" go="/netasia/buy_detail.aspx?infoid=$1"/>
<rule come="http://192.168.1.8:8084/about/(\w+).(html|aspx)" go="/netasia/aboutus.aspx?filename=$1"/>
<rule come="http://192.168.1.8:8084/news/info-(\d+).(html|aspx)" go="/netasia/news_detail.aspx?newsid=$1"/>
<rule come="http://192.168.1.8:8084/help/info-(\d+).(html|aspx)" go="/netasia/help_detail.aspx?helpid=$1"/>
<rule come="http://192.168.1.8:8084/cart.(html|aspx)(\?(.*?)?)?" go="/netasia/cart.aspx"/>
<rule come="http://192.168.1.8:8084/cartorderplace.(html|aspx)(\?(.*?)?)?" go="/netasia/cartorderplace.aspx"/>
<rule come="http://192.168.1.8:8084/cartorderpay.(html|aspx)(\?(.*?)?)?" go="/netasia/cartorderpay.aspx"/>
<rule come="http://192.168.1.8:8084/memberpayreturn.(html|aspx)(\?(.*?)?)?" go="/netasia/memberpayreturn.aspx"/>
<rule come="http://192.168.1.8:8084/cartorderpayreturn.(html|aspx)(\?(.*?)?)?" go="/netasia/cartorderpayreturn.aspx"/>
<rule come="http://192.168.1.8:8084/expo/news-(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/exponews_detail.aspx?expoid=$1"/>
<rule come="http://192.168.1.8:8084/wenda/wt-(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/wenda_detail.aspx?wtid=$1"/>
<rule come="http://192.168.1.8:8084/wenda/tiwen.(html|aspx)(\?(.*?)?)?" go="/netasia/wenda_fb.aspx"/>
<rule come="http://192.168.1.8:8084/wenda.(html|aspx)(\?(.*?)?)?" go="/netasia/wenda.aspx"/>
<rule come="http://192.168.1.8:8084/wenda/wtlist.(html|aspx)(\?(.*?)?)?" go="/netasia/wenda_list.aspx"/>
<rule come="http://192.168.1.8:8084/tousu.(html|aspx)(\?(.*?)?)?" go="/netasia/tousu.aspx"/>
<rule come="http://192.168.1.8:8084/tousu/ts.(html|aspx)(\?(.*?)?)?" go="/netasia/tousu_fb.aspx"/>
<rule come="http://192.168.1.8:8084/tousu/info-(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/tousu_detail.aspx?infoid=$1"/>
<rule come="http://192.168.1.8:8084/tousu/list.(html|aspx)(\?(.*?)?)?" go="/netasia/tousu_list.aspx"/>
<rule come="http://192.168.1.8:8084/help.(html|aspx)" go="/netasia/help.aspx"/>
<rule come="http://192.168.1.8:8084/helplist.(html|aspx)(\?(.*?)?)?" go="/netasia/help_list.aspx"/>
<rule come="http://192.168.1.8:8084/buyofferlist.(html|aspx)(\?(.*?)?)?" go="/netasia/buy_list.aspx"/>
<rule come="http://192.168.1.8:8084/selloffer.(html|aspx)(\?(.*?)?)?" go="/netasia/sell_list.aspx"/>

<rule come="http://192.168.1.8:8084/search.(html|aspx)(\?(.*?)?)?" go="/netasia/search.aspx"/>
<rule come="http://192.168.1.8:8084/shop.(html|aspx)(\?(.*?)?)?" go="/netasia/shop.aspx"/>
<rule come="http://192.168.1.8:8084/seller.(html|aspx)" go="/netasia/seller.aspx"/>
<rule come="http://192.168.1.8:8084/expo.(html|aspx)" go="/netasia/expo.aspx"/>
<rule come="http://192.168.1.8:8084/expolist.(html|aspx)(\?(.*?)?)?" go="/netasia/exponews_list.aspx"/>
<rule come="http://192.168.1.8:8084/newslist.(html|aspx)(\?(.*?)?)?" go="/netasia/news_list.aspx"/>
<rule come="http://192.168.1.8:8084/joblist.(html|aspx)(\?(.*?)?)?" go="/netasia/job_list.aspx"/>
<rule come="http://192.168.1.8:8084/cheapness.(html|aspx)(\?(.*?)?)?" go="/netasia/cuxiao_list.aspx"/>
<rule come="http://192.168.1.8:8084/cuxiao/info-(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/cuxiao_detail.aspx?id=$1"/>
<rule come="http://192.168.1.8:8084/zhaoshang.(html|aspx)" go="/netasia/zhaoshang.aspx"/>
<rule come="http://192.168.1.8:8084/zhaoshang/news-(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/zhaoshang_detail.aspx?id=$1"/>

  <rule come="http://192.168.1.8:8084/zhaoshangtwo.(html|aspx)(\?(.*?)?)?" go="/netasia/zhaoshang_list2.aspx"/>
  <rule come="http://192.168.1.8:8084/zhaoshangthird.(html|aspx)(\?(.*?)?)?" go="/netasia/zhaoshang_list3.aspx"/>
  <rule come="http://192.168.1.8:8084/tuangoutwo.(html|aspx)(\?(.*?)?)?" go="/netasia/tuangou_list2.aspx"/>
  <rule come="http://192.168.1.8:8084/tuangouthird.(html|aspx)(\?(.*?)?)?" go="/netasia/tuangou_list3.aspx"/>
  <rule come="http://192.168.1.8:8084/cuxiaotwo.(html|aspx)(\?(.*?)?)?" go="/netasia/cuxiao_list2.aspx"/>
  <rule come="http://192.168.1.8:8084/cuxiaothird.(html|aspx)(\?(.*?)?)?" go="/netasia/cuxiao_list3.aspx"/>

  
  
<rule come="http://192.168.1.8:8084/zhaoshanglist.(html|aspx)(\?(.*?)?)?" go="/netasia/zhaoshang_list.aspx"/>
<rule come="http://192.168.1.8:8084/cx/(\w+).(html|aspx)(\?(.*?)?)?" go="/netasia/cus/$1.aspx"/>
<rule come="http://192.168.1.8:8084/productmessage(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/cus/productmessage.aspx?id=$1"/>
<rule come="http://192.168.1.8:8084/productcontract(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/cus/productcontract.aspx?id=$1"/>

<rule come="http://192.168.1.8:8084/space/(\w+)?(\/)?(([a-zA-Z0-9]{2,}).(html|aspx))?(\?(.*?)?)?" go="/store.channel?user=$1,pagename=$4"/>
<rule come="http://192.168.1.8:8084/space/(\w+)?/([a-zA-Z0-9]{2,})_(\d+).(html|aspx)" go="/store.info?user=$1,pagename=$2,id=$3"/>
<rule come="http://(\w{4,})\.192.168.1.88081(\/)?(([a-zA-Z0-9]{2,}).(html|aspx))?(\?(.*?)?)?" go="/store.channel?user=$1,pagename=$4"/>
<rule come="http://(\w{4,})\.192.168.1.88081/([a-zA-Z0-9]{2,})_(\d+).(html|aspx)" go="/store.info?user=$1,pagename=$2,id=$3"/>
</rules>

#1


那就是 没有 html页面啊。。。

这个问题基本就2种可能了。
1  本来项目就没有 html页面,只有 aspx
2  项目有html页面,但是发布的时候,没有包含进发布目录

#2


引用 1 楼 hanjun0612 的回复:
那就是 没有 html页面啊。。。

这个问题基本就2种可能了。
1  本来项目就没有 html页面,只有 aspx
2  项目有html页面,但是发布的时候,没有包含进发布目录
伪静态技术,没有html页面,C#缓存技术,aspx动态技术

#3


引用 1 楼 hanjun0612 的回复:
那就是 没有 html页面啊。。。

这个问题基本就2种可能了。
1  本来项目就没有 html页面,只有 aspx
2  项目有html页面,但是发布的时候,没有包含进发布目录
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
<section name="CacheSettings" type="System.Configuration.NameValueFileSectionHandler,System, Version=1.0.3300.0,Culture=neutral,PublicKeyToken=b77a5c561934e089 " />
    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<appSettings>
<add key="newsPicMaxSize" value=
<add key="proPicMaxSize" value="500" />
<add key="upPicType" value="image/pjpeg|image/jpeg|image/gif|image/png|image/x-png|application/octet-stream" />
<add key="ccErrRequestNumPerMinute" value="4" />
<add key="userUpPicSize" value="500" />
<add key="userSendQuestionSpanMinute" value="5" />
<add key="codexdo" value="4" />
<add key="codeydo" value="6" />
<add key="codezdo" value="45" />
    <add key="codebgpoint" value="0" />
    <add key="versions" value="V4.0.0.0" />
<add key="codeunderline" value="0" />

</appSettings>
<connectionStrings>
<add name="DBCONNECTIONSTRING" connectionString="mysys_!@#$#ntsoft-ok" />
</connectionStrings>
<system.web> 
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
<httpRuntime executionTimeout="600" requestValidationMode="2.0" maxRequestLength="200000" useFullyQualifiedRedirectUrl="true" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="1000" enableVersionHeader="true" />
<compilation debug="true" targetFramework="4.0">
</compilation>
<authentication mode="Windows" />
<customErrors mode="Off" defaultRedirect="~/error/webinfo.htm">
<error statusCode="500" redirect="~/error/websysinfo.htm" />
<error statusCode="403" redirect="~/error/webuninfo.htm" />
<error statusCode="404" redirect="~/error/webnoinfo.htm" />
</customErrors>
<httpHandlers>
<add path="scissors.axd" verb="*" type="BitmapCutter.Core.HttpHandler.BitmapScissors,BitmapCutter.Core" validate="false" />
</httpHandlers>
<httpModules>
<add type="Netsoftok.AnalysisTemplate.HttpModule,Netsoftok.AnalysisTemplate" name="HttpModule" />
</httpModules>
<pages validateRequest="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />
        <identity impersonate="true" />
    
  </system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
            <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness64" />
            <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
            <add name="htmlx32*" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
            <add name="htmlx32" path="*.html" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
            <add name="Html-Integrate" path="*.html" verb="*" type="System.Web.UI.PageHandlerFactory" resourceType="Unspecified" preCondition="integratedMode" />
            <add name="All" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
            <add name="htmlrequest" path=".html" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
<add name="b2b" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
</handlers>
<defaultDocument>
<files>
<add value="index.aspx" />
</files>
</defaultDocument>
        <modules>
              <add name="all" type="URLRewriter.ModuleRewriter" preCondition="managedHandler" />
        </modules>
</system.webServer>
<system.serviceModel>
<bindings />
<client />
</system.serviceModel>
  

  <log4net>
    <!--日志记录器logger,可以有多个-->
    <!--http://www.cnblogs.com/Excellentchen/archive/2009/12/28/1634233.html-->
    <logger name="AppLogger">
      <level value="INFO" />
      <!--<appender-ref ref="LogFileAppender"/>-->
      <appender-ref ref="RollingLogFileAppender" />
      <!--<appender-ref ref="ConsoleAppender"/>-->
    </logger>
    <logger name="AppExceptionLogger">
      <level value="ALL" />
      <appender-ref ref="RollingLogExceptionFileAppender" />
    </logger>
    <!--所有logger的基,root的设置在所有logger中都起作用。 
        当在root和logger中重复设定相同的appender时,你会发现同一日志信息将被记录两次。-->
    <!--<root> 
            <level value="WARN" /> 
            <appender-ref ref="LogFileAppender" /> 
            <appender-ref ref="ConsoleAppender" /> 
        </root>-->
    <!--一个appender可以由多个logger共用,当然一个logger可以指定多个appender。-->
    <appender name="LogFileAppender" type="log4net.Appender.FileAppender">
      <param name="File" value="logs/App.log" />
      <param name="AppendToFile" value="true" />
      <param name="datePattern" value=".yyyyMMdd" />
      <param name="maximumFileSize" value="1MB" />
      <layout type="log4net.Layout.PatternLayout">
        <param name="ConversionPattern" value="[%d{yyyy-MM-dd HH:mm:ss}]([%C]>>[%M]): %m%n" />
      </layout>
      <filter type="log4net.Filter.LevelRangeFilter">
        <param name="LevelMin" value="DEBUG" />
        <param name="LevelMax" value="FATAL" />
      </filter>
    </appender>
    <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
      <!--日志文件名开头-->
      <file value="logs/App.log" />
      <!--是否追加到文件-->
      <appendToFile value="true" />
      <!--变换的形式为日期-->
      <rollingStyle value="Date" />
      <!--日期的格式-->
      <datePattern value="yyyyMMdd&quot;.log&quot;" />
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="[%d{yyyy-MM-dd HH:mm:ss}]([%C]>>[%M]): %m%n" />
      </layout>
    </appender>
    <appender name="RollingLogExceptionFileAppender" type="log4net.Appender.RollingFileAppender">
      <!--日志文件名开头-->
      <file value="logs/AppException.log" />
      <!--是否追加到文件-->
      <appendToFile value="true" />
      <!--变换的形式为日期-->
      <rollingStyle value="Date" />
      <!--日期的格式-->
      <datePattern value="yyyyMMdd&quot;.log&quot;" />
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="[%d{yyyy-MM-dd HH:mm:ss}]([%C]>>[%M]): %m%n" />
      </layout>
    </appender>
    <appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
      <layout type="log4net.Layout.PatternLayout">
        <param name="ConversionPattern" value="[%d{yyyy-MM-dd HH:mm:ss}]([%C]>>[%M]): %m%n" />
      </layout>
    </appender>
  </log4net>
</configuration>

#4


引用 1 楼 hanjun0612 的回复:
那就是 没有 html页面啊。。。

这个问题基本就2种可能了。
1  本来项目就没有 html页面,只有 aspx
2  项目有html页面,但是发布的时候,没有包含进发布目录
<?xml version="1.0" encoding="utf-8"?>
<rules>
<rule come="http://192.168.1.8:8084(/)?(index.html)?" go="/netasia/index.aspx"/>
<rule come="http://192.168.1.8:8084(/)?(baidu_verify_AyAxMrdfKM.html)?" go="/netasia/baidu_verify_AyAxMrdfKM.aspx"/>

  <rule come="http://192.168.1.8:8084/mindex.(html|aspx)" go="/netasia/m_index.aspx"/>
  <rule come="http://192.168.1.8:8084/mbrand.(html|aspx)(\?(.*?)?)?" go="/netasia/m_brand.aspx"/>
  <rule come="http://192.168.1.8:8084/mpanicbuy.(html|aspx)(\?(.*?)?)?" go="/netasia/m_panicbuy.aspx"/>
  <rule come="http://192.168.1.8:8084/mtclassfile.(html|aspx)(\?(.*?)?)?" go="/netasia/m_tclassfile.aspx"/>
  <rule come="http://192.168.1.8:8084/msclassfile.(html|aspx)(\?(.*?)?)?" go="/netasia/m_sclassfile.aspx"/>

  <rule come="http://192.168.1.8:8084/mshop(\d+).(html|aspx)" go="/netasia/m_shop.aspx?id=$1"/>
  <rule come="http://192.168.1.8:8084/mshoplist.(html|aspx)(\?(.*?)?)?" go="/netasia/m_shoplist.aspx"/>
  <rule come="http://192.168.1.8:8084/msingin.(html|aspx)" go="/netasia/m_singin.aspx"/>
  <rule come="http://192.168.1.8:8084/mjoin.(html|aspx)" go="/netasia/m_buyerjoin.aspx"/>
  <rule come="http://192.168.1.8:8084/mbuyerjoin.(html|aspx)" go="/netasia/m_join.aspx"/>

  
  <rule come="http://192.168.1.8:8084/mallapp.(html|aspx)" go="/netasia/mallapp.aspx"/>
  <rule come="http://192.168.1.8:8084/join.(html|aspx)" go="/netasia/join.aspx"/>
<rule come="http://192.168.1.8:8084/buyerjoin.(html|aspx)" go="/netasia/buyerjoin.aspx"/>
<rule come="http://192.168.1.8:8084/signin.(html|aspx)(\?(.*?)?)?" go="/netasia/signin.aspx"/>
<rule come="http://192.168.1.8:8084/sell.(html|aspx)(\?(.*?)?)?" go="/netasia/sell.aspx"/>
<rule come="http://192.168.1.8:8084/allsort.(html|aspx)(\?(.*?)?)?" go="/netasia/allsort.aspx"/>
<rule come="http://192.168.1.8:8084/allbrand.(html|aspx)(\?(.*?)?)?" go="/netasia/allbrand.aspx"/>
<rule come="http://192.168.1.8:8084/sitemap.(html|aspx)(\?(.*?)?)?" go="/netasia/sitemap.aspx"/>

<rule come="http://192.168.1.8:8084/pf.(html|aspx)(\?(.*?)?)?" go="/netasia/pf.aspx"/>
<rule come="http://192.168.1.8:8084/cuxiao.(html|aspx)(\?(.*?)?)?" go="/netasia/cuxiao.aspx"/>
<rule come="http://192.168.1.8:8084/brand.(html|aspx)(\?(.*?)?)?" go="/netasia/brand.aspx"/>
<rule come="http://192.168.1.8:8084/brand(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/brandinfo.aspx?brand=$1"/>
<rule come="http://192.168.1.8:8084/buy.(html|aspx)(\?(.*?)?)?" go="/netasia/buy.aspx"/>
<rule come="http://192.168.1.8:8084/product(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/product.aspx?id=$1"/>
<rule come="http://192.168.1.8:8084/tuangou.(html|aspx)(\?(.*?)?)?" go="/netasia/tuangou.aspx"/>
<rule come="http://192.168.1.8:8084/tuan-(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/tuangou_detail.aspx?tuanid=$1"/>
<rule come="http://192.168.1.8:8084/news.(html|aspx)(\?(.*?)?)?" go="/netasia/news.aspx"/>
<rule come="http://192.168.1.8:8084/service.(html|aspx)(\?(.*?)?)?" go="/netasia/service.aspx"/>
<rule come="http://192.168.1.8:8084/service_list.(html|aspx)(\?(.*?)?)?" go="/netasia/service_list.aspx"/>
<rule come="http://192.168.1.8:8084/service/info-(\d+).(html|aspx)" go="/netasia/service_detail.aspx?zhaoid=$1"/>
<rule come="http://192.168.1.8:8084/retrieve_signinid.(html|aspx)" go="/netasia/retrieve_signinid.aspx"/>
<rule come="http://192.168.1.8:8084/retrieve_password.(html|aspx)" go="/netasia/retrieve_password.aspx"/>
<rule come="http://192.168.1.8:8084/retrievee_password.(html|aspx)(\?(.*?)?)?" go="/netasia/retrievee_password.aspx"/>
<rule come="http://192.168.1.8:8084/huodong-(\d+).(html|aspx)" go="/netasia/huodong_detail.aspx?hdid=$1"/>
<rule come="http://192.168.1.8:8084/huodonglist.(html|aspx)(\?(.*?)?)?" go="/netasia/huodong_list.aspx"/>  
<rule come="http://192.168.1.8:8084/notice-(\d+).(html|aspx)" go="/netasia/notice_detail.aspx?noticeid=$1"/>
<rule come="http://192.168.1.8:8084/noticelist(-(\d+))?.(html|aspx)" go="/netasia/notice_list.aspx?page=$2"/>
<rule come="http://192.168.1.8:8084/buyinfo-(\d+).(html|aspx)" go="/netasia/buy_detail.aspx?infoid=$1"/>
<rule come="http://192.168.1.8:8084/about/(\w+).(html|aspx)" go="/netasia/aboutus.aspx?filename=$1"/>
<rule come="http://192.168.1.8:8084/news/info-(\d+).(html|aspx)" go="/netasia/news_detail.aspx?newsid=$1"/>
<rule come="http://192.168.1.8:8084/help/info-(\d+).(html|aspx)" go="/netasia/help_detail.aspx?helpid=$1"/>
<rule come="http://192.168.1.8:8084/cart.(html|aspx)(\?(.*?)?)?" go="/netasia/cart.aspx"/>
<rule come="http://192.168.1.8:8084/cartorderplace.(html|aspx)(\?(.*?)?)?" go="/netasia/cartorderplace.aspx"/>
<rule come="http://192.168.1.8:8084/cartorderpay.(html|aspx)(\?(.*?)?)?" go="/netasia/cartorderpay.aspx"/>
<rule come="http://192.168.1.8:8084/memberpayreturn.(html|aspx)(\?(.*?)?)?" go="/netasia/memberpayreturn.aspx"/>
<rule come="http://192.168.1.8:8084/cartorderpayreturn.(html|aspx)(\?(.*?)?)?" go="/netasia/cartorderpayreturn.aspx"/>
<rule come="http://192.168.1.8:8084/expo/news-(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/exponews_detail.aspx?expoid=$1"/>
<rule come="http://192.168.1.8:8084/wenda/wt-(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/wenda_detail.aspx?wtid=$1"/>
<rule come="http://192.168.1.8:8084/wenda/tiwen.(html|aspx)(\?(.*?)?)?" go="/netasia/wenda_fb.aspx"/>
<rule come="http://192.168.1.8:8084/wenda.(html|aspx)(\?(.*?)?)?" go="/netasia/wenda.aspx"/>
<rule come="http://192.168.1.8:8084/wenda/wtlist.(html|aspx)(\?(.*?)?)?" go="/netasia/wenda_list.aspx"/>
<rule come="http://192.168.1.8:8084/tousu.(html|aspx)(\?(.*?)?)?" go="/netasia/tousu.aspx"/>
<rule come="http://192.168.1.8:8084/tousu/ts.(html|aspx)(\?(.*?)?)?" go="/netasia/tousu_fb.aspx"/>
<rule come="http://192.168.1.8:8084/tousu/info-(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/tousu_detail.aspx?infoid=$1"/>
<rule come="http://192.168.1.8:8084/tousu/list.(html|aspx)(\?(.*?)?)?" go="/netasia/tousu_list.aspx"/>
<rule come="http://192.168.1.8:8084/help.(html|aspx)" go="/netasia/help.aspx"/>
<rule come="http://192.168.1.8:8084/helplist.(html|aspx)(\?(.*?)?)?" go="/netasia/help_list.aspx"/>
<rule come="http://192.168.1.8:8084/buyofferlist.(html|aspx)(\?(.*?)?)?" go="/netasia/buy_list.aspx"/>
<rule come="http://192.168.1.8:8084/selloffer.(html|aspx)(\?(.*?)?)?" go="/netasia/sell_list.aspx"/>

<rule come="http://192.168.1.8:8084/search.(html|aspx)(\?(.*?)?)?" go="/netasia/search.aspx"/>
<rule come="http://192.168.1.8:8084/shop.(html|aspx)(\?(.*?)?)?" go="/netasia/shop.aspx"/>
<rule come="http://192.168.1.8:8084/seller.(html|aspx)" go="/netasia/seller.aspx"/>
<rule come="http://192.168.1.8:8084/expo.(html|aspx)" go="/netasia/expo.aspx"/>
<rule come="http://192.168.1.8:8084/expolist.(html|aspx)(\?(.*?)?)?" go="/netasia/exponews_list.aspx"/>
<rule come="http://192.168.1.8:8084/newslist.(html|aspx)(\?(.*?)?)?" go="/netasia/news_list.aspx"/>
<rule come="http://192.168.1.8:8084/joblist.(html|aspx)(\?(.*?)?)?" go="/netasia/job_list.aspx"/>
<rule come="http://192.168.1.8:8084/cheapness.(html|aspx)(\?(.*?)?)?" go="/netasia/cuxiao_list.aspx"/>
<rule come="http://192.168.1.8:8084/cuxiao/info-(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/cuxiao_detail.aspx?id=$1"/>
<rule come="http://192.168.1.8:8084/zhaoshang.(html|aspx)" go="/netasia/zhaoshang.aspx"/>
<rule come="http://192.168.1.8:8084/zhaoshang/news-(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/zhaoshang_detail.aspx?id=$1"/>

  <rule come="http://192.168.1.8:8084/zhaoshangtwo.(html|aspx)(\?(.*?)?)?" go="/netasia/zhaoshang_list2.aspx"/>
  <rule come="http://192.168.1.8:8084/zhaoshangthird.(html|aspx)(\?(.*?)?)?" go="/netasia/zhaoshang_list3.aspx"/>
  <rule come="http://192.168.1.8:8084/tuangoutwo.(html|aspx)(\?(.*?)?)?" go="/netasia/tuangou_list2.aspx"/>
  <rule come="http://192.168.1.8:8084/tuangouthird.(html|aspx)(\?(.*?)?)?" go="/netasia/tuangou_list3.aspx"/>
  <rule come="http://192.168.1.8:8084/cuxiaotwo.(html|aspx)(\?(.*?)?)?" go="/netasia/cuxiao_list2.aspx"/>
  <rule come="http://192.168.1.8:8084/cuxiaothird.(html|aspx)(\?(.*?)?)?" go="/netasia/cuxiao_list3.aspx"/>

  
  
<rule come="http://192.168.1.8:8084/zhaoshanglist.(html|aspx)(\?(.*?)?)?" go="/netasia/zhaoshang_list.aspx"/>
<rule come="http://192.168.1.8:8084/cx/(\w+).(html|aspx)(\?(.*?)?)?" go="/netasia/cus/$1.aspx"/>
<rule come="http://192.168.1.8:8084/productmessage(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/cus/productmessage.aspx?id=$1"/>
<rule come="http://192.168.1.8:8084/productcontract(\d+).(html|aspx)(\?(.*?)?)?" go="/netasia/cus/productcontract.aspx?id=$1"/>

<rule come="http://192.168.1.8:8084/space/(\w+)?(\/)?(([a-zA-Z0-9]{2,}).(html|aspx))?(\?(.*?)?)?" go="/store.channel?user=$1,pagename=$4"/>
<rule come="http://192.168.1.8:8084/space/(\w+)?/([a-zA-Z0-9]{2,})_(\d+).(html|aspx)" go="/store.info?user=$1,pagename=$2,id=$3"/>
<rule come="http://(\w{4,})\.192.168.1.88081(\/)?(([a-zA-Z0-9]{2,}).(html|aspx))?(\?(.*?)?)?" go="/store.channel?user=$1,pagename=$4"/>
<rule come="http://(\w{4,})\.192.168.1.88081/([a-zA-Z0-9]{2,})_(\d+).(html|aspx)" go="/store.info?user=$1,pagename=$2,id=$3"/>
</rules>