使 Silverlight 业务应用程序模板工作需要什么数据库? [英] What DB required to make the Silverlight Business Application template work?
问题描述
我一直在尝试运行 Silverlight 业务应用程序模板,但在我尝试注册时失败.我有一个带有 MSSQLSERVER 实例的 SQL Express,我已经定义了创建的标准 aspnetdb.
I've been trying to run the Silverlight Business Application template but it fails when I try to register. I have SQL Express with an MSSQLSERVER instance and I've defined the standard aspnetdb created.
错误是:
Submit operation failed. Unable to connect to SQL server database.
at System.Web.DomainServices.ReflectionDomainServiceDescriptionProvider.ReflectionDomainOperationEntry.Invoke(DomainService domainService, Object[] parameters)
at System.Web.DomainServices.DomainService.InvokeDomainOperationEntry(DomainOperationEntry domainOperationEntry, Object[] parameters, ChangeSetEntry operation)
at System.Web.DomainServices.DomainService.InvokeCudOperations(ChangeSet changeSet)
at System.Web.DomainServices.DomainService.ExecuteChangeSet(ChangeSet changeSet)
at System.Web.DomainServices.DomainService.Submit(ChangeSet changeSet)
at System.Web.Ria.Services.ChangeSetProcessor.Process(DomainService domainService, IEnumerable`1 changeSetEntries)
at System.Web.Ria.Services.SubmitOperationBehavior.SubmitOperationInvoker.InvokeCore(Object instance, Object[] inputs, Object[]& outputs)
推荐答案
您需要通过对名为 SQLExpress 的 SQL Server 实例运行 aspnet_regsql.exe 创建的 aspnetdb 数据库 - 这可以在 machine.config 的 LocalSqlServer 连接字符串中找到.或者将 LocalSqlServer 连接字符串替换为指向您的 SQL 实例的内容.像这样:
You need the aspnetdb database created by running aspnet_regsql.exe against a SQL Server instance called SQLExpress - this can be found in the LocalSqlServer connection string in machine.config. Or by replacing the LocalSqlServer connection string with something that points to your SQL instance. Something like this:
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer"
connectionString="Data Source=YOURCOMPUTER;Initial Catalog=aspnetdb;Integrated Security=True"
providerName="System.Data.SqlClient"/>
这篇关于使 Silverlight 业务应用程序模板工作需要什么数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!