从 CASSINI 传递到 IIS 7 [英] Passing from CASSINI to IIS 7

查看:16
本文介绍了从 CASSINI 传递到 IIS 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在部署之前在本地计算机上测试网站.

Hi i'm testing a website on my local computer before deployment.

使用 VS 2010 使用 CASSINI 运行站点时,一切正常……没有错误.当我在我的内部 IIS 7 上构建包和部署时......加载默认页面时 IIS 7 不显示请求的页面(都不是错误),而是让浏览器下载页面而不显示它.

When running the site with CASSINI using VS 2010 all is working fine... no error. When I Build a Package and Deploy on my Internal IIS 7 ... when loading the default page IIS 7 do not show up the page requested (neither errors) and let the browser DOWNLOAD the Page instead and do not displaying it.

我在本地 IIS 中有另一个测试站点,它运行良好.

I have another test site in my local IIS and it is working fine.

因为 IIS 没有显示任何类型的错误(即使 debug 为真),我无法弄清楚是什么问题.

Because IIS does not show any error of any type (even if debug is true) I'm not able to figure out what is the problem.

这里有一些问题希望你能帮到我:

Here some questions hope you are able to help me out:

  • 我是否需要对 web.config 中的配置进行一些更改
  • 任何线索为什么会出现这种行为?
  • 有什么方法可以调试这种情况?

这里是我的 web.config 文件:请告诉我谢谢

here my web.config file: Please let me know thanks

    <?xml version="1.0" encoding="UTF-8"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
    <configSections>
        <section name="myWebAppSettings" type="System.Configuration.SingleTagSectionHandler" />
    </configSections>
    <myWebAppSettings isTestEnvironment="false" />
    <system.webServer>
        <directoryBrowse enabled="false" />
        <urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true" />
        <staticContent>
            <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />
        </staticContent>
    </system.webServer>
    <connectionStrings>
        <add name="CmsConnectionString" connectionString="Data Source=.; Initial Catalog=SiteNameExtension; Integrated Security=SSPI" />
        <add name="CmsConnectionStringEntityDataModel" connectionString="Metadata=res://*/;          provider=System.Data.SqlClient;provider connection string=&quot;&#xA;          Data Source=.;Initial Catalog=SiteNameExtension;Integrated Security=True;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
    </connectionStrings>
    <system.web>
        <globalization culture="en" uiCulture="en" />
        <pages enableViewState="true" theme="Cms-FE-00" validateRequest="true">
        </pages>
        <compilation debug="true" targetFramework="4.0">
            <assemblies>
                <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
                <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="WebProject.Core"/>
                <add assembly="WebProject.DataAccess"/>
                <add assembly="WebProject.Cms"/>
                <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Data.Services.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            </assemblies>
        </compilation>
        <authentication mode="Forms">
            <forms loginUrl="~/Login.aspx" timeout="2880" />
        </authentication>
        <roleManager enabled="true" cacheRolesInCookie="true">
            <providers>
                <clear />
                <add connectionStringName="XXXXX" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
            </providers>
        </roleManager>
        <membership>
            <providers>
                <clear />
                <add name="AspNetSqlMembershipProvider" connectionStringName="XXXXX" applicationName="/" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="3" minRequiredPasswordLength="16" minRequiredNonalphanumericCharacters="4" passwordAttemptWindow="10" passwordStrengthRegularExpression="" />
            </providers>
        </membership>
    </system.web>
</configuration>

<小时>

我的相关问题

推荐答案

听起来 ASP.NET 版本的处理程序未在服务器上注册或被禁用.您应该能够使用 SDK 中的 aspnet_regiis 安装它.或者应用程序池(如果不同)设置为错误的 ASP.NET 版本.

Sounds like the handler for the ASP.NET version isn't registered on the server or disabled. You should be able to install it using aspnet_regiis from the SDK. Or the app pool ( if it differs ) is set to the wrong version of ASP.NET.

这篇关于从 CASSINI 传递到 IIS 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆