【发布时间】:2015-03-09 16:30:47
【问题描述】:
使用 Umbraco 版本 7.1.4 程序集:1.0.5261.28127
从 ucommerce.net 下载安装包 - uCommerce-for-Umbraco7-6.6.2.15058.zip
尝试安装多次。该数据库在 Azure 上的第一次 (10+) 次。安装不会“出错”,但我怀疑我会在我拥有的数据库中创建更多的数据库表:
安装在后台创建了一个图标,uCommerce。但是,当我单击它时,我收到此错误:
Server error: Contact administrator, see log for full details.
Failed to retrieve data for application tree uCommerce
在我的日志文件中:
ERROR NHibernate.AdoNet.AbstractBatcher - Could not execute query: select user0_.UserId as UserId100_, user0_.ExternalId as ExternalId100_ from uCommerce_User user0_ where user0_.ExternalId=@p0
System.Data.SqlClient.SqlException (0x80131904): Invalid object name 'uCommerce_User'.
我找到了这个链接,Invalid object name 'uCommerce_User',它建议将database 与Azure 分开。
我将database 从Azure 复制到我的local,并更改了connection string。我浏览到本地实例以确保 connection string 正在工作。尝试重新安装另外 (10+) 次,但在单击 Umbraco backoffice 中的 uCommerce 图标时仍然收到相同的错误。
很明显,我没有创建uCommerce_User 表,因为从安装中创建的所有表都在上图中。我试图从包中的安装文件夹中运行所有128 sql 文件,但是在第4 个脚本之后我开始收到constrant 错误。
我拥有创建表的完全权限,但不知道为什么会出错。其他人有/遇到过这个问题吗?
欣赏-
【问题讨论】:
标签: c# sql umbraco umbraco-ucommerce