我无法将新的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()
由于
答案 0 :(得分: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