How to deploy an asp.net mvc 4 application with database? -
i'm new asp.net
, want following:
i have asp.net mvc 4
website uses local database (mdf). want install website on windows 2012 server (amazon ec2).
my questions:
- how handle database?
- how move onto server?
there several steps:
- according microsoft (http://msdn.microsoft.com/en-us/library/dd410407(v=vs.90).aspx), should publish first website local folder; can embark database clicking
include files app_data folder
. - you transfer published folder windows 2012 in, example, subfolder of
c:\inetpub\wwwroot
. - you have create new web site in iis (i'll let search ;-) )
note: not familiar mdf
files, have modify web.config
, point actuel path of mdf
file (c:\inetpub\wwwroot\my_site\appdata\mydatabase.mdf
).
note: also, iis user account should have right write database; folder c:\inetpub\wwwroot\my_site\appdata\
should have security modified accordingly (right click, properties / security
) add iis user (as account should run web site).
Comments
Post a Comment