解决方案 »

  1.   

    你的空间不是告诉你是.net2.0版本的么。
      

  2.   

    这是Web.config,原本在本地测试通过的,去到虚拟主机上就不行了<?xml version="1.0" encoding="UTF-8"?>
    <configuration>
      
      <configSections>
        <!--配置重写规则节点-->
        <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
      </configSections>
    <appSettings>
    <add key="ConStringEncrypt" value="false" />
    <add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|jcms.mdb;Persist Security Info=False" />
    <add key="Version" value="aaaa" />
    <add key="Copyright" value="246C6DDFF491EFB59799E73C49DECCD4" />
    </appSettings>
      
      <RewriterConfig>
        <Rules>
          <RewriterRule>
            <LookFor>~/page_(\d+).html</LookFor>
            <SendTo>~/showpage.aspx?id=$1</SendTo>
          </RewriterRule>
        </Rules>
        <Rules>
          <RewriterRule>
            <LookFor>~/news_(\d+).html</LookFor>
            <SendTo>~/showNews.aspx?id=$1</SendTo>
          </RewriterRule>
        </Rules>
        <Rules>
          <RewriterRule>
            <LookFor>~/newlist_(\d+).html</LookFor>
            <SendTo>~/newlist.aspx?type=$1</SendTo>
          </RewriterRule>
        </Rules>
        <Rules>
          <RewriterRule>
            <LookFor>~/newlist_(\d+)_(\d+)\.html</LookFor>
            <SendTo>~/newlist.aspx?type=$1&amp;page=$2</SendTo>
          </RewriterRule>
        </Rules>
        <Rules>
          <RewriterRule>
            <LookFor>~/prolist_(\d+).html</LookFor>
            <SendTo>~/prolist.aspx?type=$1</SendTo>
          </RewriterRule>
        </Rules>
        <Rules>
          <RewriterRule>
            <LookFor>~/prolist_(\d+)_(\d+)\.html</LookFor>
            <SendTo>~/prolist.aspx?type=$1&amp;page=$2</SendTo>
          </RewriterRule>
        </Rules>
        <Rules>
          <RewriterRule>
            <LookFor>~/imglist_(\d+).html</LookFor>
            <SendTo>~/imglist.aspx?type=$1</SendTo>
          </RewriterRule>
        </Rules>
        <Rules>
          <RewriterRule>
            <LookFor>~/imglist_(\d+)_(\d+)\.html</LookFor>
            <SendTo>~/imglist.aspx?type=$1&amp;page=$2</SendTo>
          </RewriterRule>
        </Rules>
      </RewriterConfig>
    <system.web>
    <httpRuntime executionTimeout="3600" maxRequestLength="1048576" />
    <compilation debug="true">
    <buildProviders>
    <add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
    </buildProviders>
    </compilation>
    <httpHandlers>
    <add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
          <add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
    </httpHandlers>
    <customErrors mode="Off" />

    <authentication mode="Forms">
    <forms name="forums" path="/" loginUrl="Login.aspx" protection="All" timeout="40">
    </forms>
    </authentication>
      </system.web>
        <system.webServer>
            <handlers>
                <add name="html" path="*.html" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
            </handlers>    </system.webServer>
    </configuration>
      

  3.   

    应该是你这个空间不支持伪静态URL重写
      

  4.   

    应该是system.webServer配置节的问题吧?看这里:
    http://www.iis.net/configreference/system.webserver
    这个配置节从IIS7.0开始才有的