3

我无法将新的 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()

谢谢

4

1 回答 1

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

于 2013-08-14T04:04:45.343 回答