How do we publish an MVC Application using web deploy method ? [Resolved]

Posted by Kumarkrishna184 under ASP.NET MVC on 12/23/2015 | Points: 10 | Views : 524 | Status : [Member] | Replies : 3
How do we publish an MVC Application using web deploy method ?

Thanks and Regards,
Krishna Kumar



Responses

Posted by: Rajnilari2015 on: 12/23/2015 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
@Kumarkrishna184 Sir, please follow the below steps

a) Right Click on the project and choose the Publish Web option.

- In the Profile section , create a new Profile

- In the Connections section ,Choose Publish Method as FileSystem and provide a Target location e.g.
D:\MyTestProject\PublishFolder

- In the settings section , choose Configuration as "Release-Any CPU"

b) Then click on the Publish Button and the assemblies will be published in the release mode at the specified location. So inside the D:\MyTestProject\PublishFolder we will have

Areas,Bin,Content,ExternalDBOperations,fonts, Scripts, Service References, Views folders and
favicon.ico,Global.asax,packages.config,web.config etc.

c) Now visit C:\inetpub\wwwroot and create a folder by the name say PublishMyTestProject

d) Copy-paste the Published files/folder from D:\MyTestProject\PublishFolder to C:\inetpub\wwwroot\PublishMyTestProject

e) Open IIS and under Default Web Site the PublishMyTestProject folder will appear. Right click on that and Choose "Convert To Application"

f) Finally, right click on the PublishMyTestProject -> Manage Application ->Browse.

Hope this helps.

--
Thanks & Regards,
RNA Team

Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kumarkrishna184 on: 12/24/2015 [Member] Starter | Points: 25

Up
0
Down
Thanks Sir.....

Thanks and Regards,
Krishna Kumar

Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajnilari2015 on: 12/24/2015 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 25

Up
0
Down
@Kumarkrishna184 Sir, Glad that it helped you.

--
Thanks & Regards,
RNA Team

Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response