问题
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