English 中文(简体)
How to Package/Publish SQL databases with ASP.NET MVC 2 Website?
原标题:

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.

最佳回答

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.

问题回答

暂无回答




相关问题
Best practices for Subversion and Visual Studio projects

I ve recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that s built from a cobbling-together ...

Enable PHP highlights in VS 2010?

I ve heard that Visual Studio 2010 Beta 2 has support for PHP. When I load a PHP file though, it has nothing highlighted and is nothing more than a glorified text editor. Is there a way to enable it?...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

Unit Testing .NET 3.5 projects using MStest in VS2010

There s a bug/feature in Visual Studio 2010 where you can t create a unit test project with the 2.0 CLR. https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=483891&wa=...

热门标签