1

I've had success in using Web Deploy to publish my web page, however the database (schema and data) are not being published at all.

  • .NET 4.5

  • MVC 5

  • EF Code First 6

  • Visual Studio 2013 for Web

enter image description here

I get no errors, the remote database connection is fine.

What am I missing?

10
  • What errors you are getting when you tried to browse to the website? Commented Jul 26, 2015 at 0:58
  • Hi Rosdi, it's not so much about browsing the website, it's the fact that when I look at the database, there aren't any tables. Commented Jul 26, 2015 at 1:09
  • The tables will be created when you first browse the website. Commented Jul 26, 2015 at 1:35
  • They do not get created I'm afraid. Commented Jul 26, 2015 at 1:50
  • Which back to my first question, what errors you are getting when you browse the website? Commented Jul 26, 2015 at 2:09

1 Answer 1

1

In iis right-click the site that you are configuring, point to Deploy, and then click Configure Web Deploy Publishing in "Enter SQL SERVER connection String enter your database connection string enter image description here

Sign up to request clarification or add additional context in comments.

3 Comments

I'm deploying through Visual Studio.
@user1470994 Before publish from visual studio in IIS server config SQL server connection string same as that picture
Thanks, however, that still did not work and is what I already have in my original question. I solved my problem by pointing the 'defaultconnection' to my remote server in my Web.Config file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.