有关 ApplicationService 的 ConnectionStrings 的帮助
好的,我有一个运行有 2 个数据库的应用程序,我的数据库用于存储所需的信息,应用程序服务数据库用于存储帐户和安全信息(我正在使用 asp.net Memembership Provider)。但问题是,由于某种原因,我无法创建连接,因此我的应用程序服务数据库是在我的本地主机 Sql Server 上创建的。
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;initial catalog=AppServiceDB;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
<add name="SummumnetDB" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;initial catalog=SummumnetDB;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
SummumnetDB 在我的本地 SqlServer 中创建没有问题,但 AppServices 却没有。也许我需要向 AppService conecctionString 添加其他内容。感谢您的帮助
Ok I have an application running with 2 data base, my database that is used for storing the information needed, and the applicationservice database that is used for storing the accounts and security information (I'm using the asp.net Memembership Provider). But the thing is that for some reason I cant create a conecction so my application service database be created at my localhost Sql Server.
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;initial catalog=AppServiceDB;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
<add name="SummumnetDB" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;initial catalog=SummumnetDB;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
SummumnetDB, is created without problems in my local SqlServer but AppServices don't. Maybe I need to add something else to the AppService conecctionString. Thanxs for your help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与
SummumnetDB
不同,您的AppServiceDB
不会自动为您创建。您需要手动创建会员数据库。最简单的方法是从 Visual Studio 命令提示符运行
aspnet_regsql.exe
并按照向导操作。您可以在此处找到更多信息。Unlike
SummumnetDB
, yourAppServiceDB
isn't automatically created for you. You need to create your membership database manually.The easiest way is to run
aspnet_regsql.exe
from Visual Studio Command Prompt and follow the wizard. You can find more info here.