如何使用 ASP.NET MVC 2 网站打包/发布 SQL 数据库?

发布于 2024-09-14 10:55:47 字数 380 浏览 2 评论 0原文

我第一次尝试在已配置并运行的本地 IIS 7 服务器上部署 ASP.NET MVC 2 网站。我已经使用 Web 部署选项成功进行了部署,但没有数据库(因此该站点尚未完全正常工作)。大多数部署设置都非常直观,但是,我在项目设置中的“打包/发布 SQL”选项卡上遇到了问题。这是我遇到的错误的样子(单击查看大图)。

它要求连接字符串,但我不知道该放什么。它还给出了关于使用模式文件的另一个进程的奇怪错误。

欢迎任何指点。我正在寻找最简单的方法来让它运行。

I'm trying to deploy my ASP.NET MVC 2 Website for the first time on a local IIS 7 server, which is configured and running. I've made successful deployments using the Web Deploy option without the databases (so the site isn't fully working yet). Most of the deployment settings are pretty intuitive, however, I have problems with the Package/Publish SQL -tab in the project settings. Here's how it looks like with the errors I'm getting (click for bigger view).

It asks for Connection String, but I have no idea what to put there. It also gives a weird error about another process using a schema file.

Any pointers are welcome. I'm looking for the easiest way to just get it running.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

德意的啸 2024-09-21 10:55:47

我可以通过取消选中“打包/发布 Web”选项卡中的“从应用程序数据文件夹中排除文件”来运行数据库。然后它只是复制数据库文件。

I was able to get the databases running by unchecking the "Exclude files from the App Data folder" in Package/Publish Web tab. It then simply copies the database files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文