简体   繁体   English

部署ASP.NET Web应用程序身份数据库

[英]Deploy ASP.NET Web Application Identity Database

How do I deploy the ASP Identity database (contains AspNetRoles, AspNetUserClaims, AspNetUserLogins, AspNetUserRoles, AspNetUsers tables) in a Web Deploy Package? 如何在Web部署程序包中部署ASP身份数据库(包含AspNetRoles,AspNetUserClaims,AspNetUserLogins,AspNetUserRoles,AspNetUsers表)? I'm using WebForms not MVC. 我使用的是WebForms,而不是MVC。 I'm having problems finding a walkthrough. 我在查找演练时遇到问题。 Thanks in advance. 提前致谢。

i don't know how to do that via Web Deploy, but if you want to do manually follow one of this options : 我不知道如何通过Web Deploy来做到这一点,但是如果您想手动执行此操作,请遵循以下选项之一:

you have multiple options : 您有多种选择:

  1. install SQL Server Express LocalDB on your Hosting Server, 在主机服务器上安装SQL Server Express LocalDB,

  2. Connect to (localdb)\\MSSQLLocalDB via SQL Server Management Studio and Generate Scripts for your localDB Database (this database usually named like this : aspnet-something-20180906103305) and then execute that SQL Script on your Web Server Database. 通过SQL Server Management Studio连接到(localdb)\\ MSSQLLocalDB并为您的localDB数据库(该数据库通常这样命名:aspnet-something-20180906103305)生成脚本,然后在Web Server数据库上执行该SQL脚本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM