Which settings should you use?

HOTSPOT
You are developing an ASP.NET MVC application. It is ready for deployment to the
production web server.
A local SQL Express .MDF file was used by the application during development
The deployment has the following requirements:
The deployment must merge the assemblies on the local machine with those on the host.
The deployment must publish the local database to the remote Microsoft SQL server.
You need to configure the web package settings for deployment.
Which settings should you use? (To answer, select the appropriate setting or settings in the
answer area.)

HOTSPOT
You are developing an ASP.NET MVC application. It is ready for deployment to the
production web server.
A local SQL Express .MDF file was used by the application during development
The deployment has the following requirements:
The deployment must merge the assemblies on the local machine with those on the host.
The deployment must publish the local database to the remote Microsoft SQL server.
You need to configure the web package settings for deployment.
Which settings should you use? (To answer, select the appropriate setting or settings in the
answer area.)

Answer:

Explanation:



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Zak777

Zak777

Hi there !
Answer to this question makes me problems. How could it be to say I take all files form a project folder (probably to take mdf file with) and also to say “Exclude files from App_Data” folder. That doesn’t make any sense for me. To deploy database to remote Sql Server you need “Include all databases configured…”
What do you say?

thanks

Eloy

Eloy

I think Exclude Files from the App_Folder should not be checked:

Select the Exclude files from the App_Data folder check box.

The project uses SQL Server Express .mdf files in the App_Data folders, but you will deploy it by running scripts in an empty destination database. Therefore, you will not deploy the .mdf files.

https://msdn.microsoft.com/en-us/library/dd483479(v=vs.100).aspx

stenly

stenly

I dont think this is correct, requirements said “must merge the assemblies on the local machine with those on the host”, in other words just an assembly is what deployment is all about => only files needed to run this app is what I would choose and exclude debug symbols same app_data.

Pre-build not needed as its not mentioned in requirements (this is only the best practice to do so).

Does it makes a sense?