【问题标题】:sitefinity azure deployment cannot connect to databasesitefinity azure 部署无法连接到数据库
【发布时间】:2013-08-14 02:08:27
【问题描述】:

我在将新的 sitefinity 部署到 Windows azure 托管时遇到问题。在 sitefinity 项目启动屏幕上,我可以输入我的 azure 连接字符串信息,它会显示数据库类型不匹配(mssql 而不是 azure)。我找不到在哪里更改它,所以我无法让网站初始化。我错过了什么吗?

这是错误:

* There was an error trying to connect to the Database Server:
System.InvalidOperationException: Wrong database backend configuration detected: Connecting to 'Microsoft SQL Azure (RTM) - 11.0.9117.67 Aug 4 2013 23:37:13 Copyright (c) Microsoft Corporation ' but configured for 'mssql'. at OpenAccessRuntime.Relational.sql.MsSqlDriver.customizeForServer(Connection con) at OpenAccessRuntime.Relational.sql.SqlDriver.InitializeFor(ConnectionString connectionString, Boolean noConnect, PropertySet props, DBDriver& driver, Connection& conn, ConnectionPoolType poolType) at OpenAccessRuntime.Relational.RelationalStorageManagerFactory..ctor(StorageManagerFactoryBuilder b) at OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL()

谢谢

【问题讨论】:

    标签: azure connection-string azure-sql-database sitefinity


    【解决方案1】:

    您不能直接在 Azure 上创建项目 - 您应该先在本地创建它。 然后,在 DataConfig.config 文件中,您将找到连接字符串。确保将 dbType 从 MsSql 更改为 SqlAzure。

    另外,您需要在 web.config 中取消注释:

    <!-- Begin telerik section  -->
     <!--<telerik>
       <sitefinity>
        <environment platform="WindowsAzure"/>
          <sitefinityConfig storageMode="Database" />
        </sitefinity>
     </telerik>-->
    <!-- End telerik section  -->
    

    我建议您使用迅雷将您的项目部署到 Azure: http://www.sitefinity.com/documentation/documentationarticles/sitefinity-azure-configuration

    【讨论】:

      猜你喜欢
      • 2018-01-17
      • 1970-01-01
      • 2021-05-30
      • 2018-04-11
      • 1970-01-01
      • 2021-10-31
      • 2019-11-13
      • 1970-01-01
      • 2016-04-08
      相关资源
      最近更新 更多