How to Package/Publish SQL databases with ASP.NET MVC 2 Website?

大兔子大兔子 提交于 2019-12-13 06:44:09

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/3471580/how-to-package-publish-sql-databases-with-asp-net-mvc-2-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!