You can only published MVC application, class library dose not need to be published, becoz it already in published form(.dll) which is referenced in your MVC application.
You published only Global.Call.Domain.MVC.
Remember to click “Mark as Answer” on the post, if it helps you.
Navneet Kumar Mitawa
You can configure the publish profile to run the grant script in the membership database during deployment because that database deployment uses the dbDacFx provider. You can't run scripts during Code First Migrations deployment, which is how you're deploying
the application database. Therefore, you have to manually run the script before deployment in the application database.
In Visual Studio, open the Grant.sql file that you created earlier.
Click Connect.
In the Connect to Server dialog box, enter .\SQLExpress as the Server Name, and then click Connect.
In the database drop-down list select ContosoUniversity, and then click Execute.
Remember to click “Mark as Answer” on the post, if it helps you.
Navneet Kumar Mitawa
USE [master]
GO
/****** Object: Login [IIS APPPOOL\ASP.NET v4.0] Script Date: 12/13/2016 5:35:40 PM ******/
CREATE LOGIN [IIS APPPOOL\.Net V4.5] FROM WINDOWS WITH DEFAULT_DATABASE=[master], DEFAULT_LANGUAGE=[us_english]
GO
ALTER SERVER ROLE [sysadmin] ADD MEMBER [IIS APPPOOL\.Net V4.5]
GO
ALTER SERVER ROLE [dbcreator] ADD MEMBER [IIS APPPOOL\.Net V4.5]
GO
CREATE LOGIN [IIS APPPOOL\.Net V4.5] FROM WINDOWS WITH DEFAULT_DATABASE=[master], DEFAULT_LANGUAGE=[us_english]
GO
ALTER SERVER ROLE [sysadmin] ADD MEMBER [IIS APPPOOL\.Net V4.5]
GO
ALTER SERVER ROLE [dbcreator] ADD MEMBER [IIS APPPOOL\.Net V4.5]
GO
Remember to click “Mark as Answer” on the post, if it helps you.
Navneet Kumar Mitawa
Member
58 Points
130 Posts
Deploying n-tire mvc application on IIS server
Dec 13, 2016 08:54 AM|balvindersingh|LINK
Hi
i want to Deploying my n-tire mvc app on iis server with data base. so how can i doing this.
All-Star
17642 Points
3510 Posts
Re: Deploying n-tire mvc application on IIS server
Dec 13, 2016 09:12 AM|Chris Zhao|LINK
Hi Balvindersingh,
This tutorial shows how to deploy an ASP.NET web application to IIS on the local computer.
https://www.asp.net/mvc/overview/deployment/visual-studio-web-deployment/deploying-to-iis
Best Regards,
Chris
Contributor
2923 Points
1417 Posts
Re: Deploying n-tire mvc application on IIS server
Dec 13, 2016 09:37 AM|navneetmitawa|LINK
Try this also..
http://www.c-sharpcorner.com/UploadFile/4b0136/getting-started-with-iis-host-and-publish-in-mvc-5/
Navneet Kumar Mitawa
Member
58 Points
130 Posts
Re: Deploying n-tire mvc application on IIS server
Dec 13, 2016 09:54 AM|balvindersingh|LINK
Hi Navneet
yes i'm try but only mvc app one project but , i have n-tire app so how can i doing?in wright way....
Contributor
2923 Points
1417 Posts
Re: Deploying n-tire mvc application on IIS server
Dec 13, 2016 10:40 AM|navneetmitawa|LINK
https://www.youtube.com/watch?v=wfyKN1-bOGs
http://www.c-sharpcorner.com/uploadfile/francissvk/how-to-publish-asp-net-web-application-using-visual-studio-2/
http://www.c-sharpcorner.com/uploadfile/8ef97c/how-to-publish-asp-net-mvc-on-iis-mvc-5-0-part-3/
If you set project dependency in well order then all reference already comes with in bin folder check your published directory...
Doesn't need to separately published all reference.
Navneet Kumar Mitawa
Member
58 Points
130 Posts
Re: Deploying n-tire mvc application on IIS server
Dec 13, 2016 10:45 AM|balvindersingh|LINK
ok thanks...
Contributor
2923 Points
1417 Posts
Re: Deploying n-tire mvc application on IIS server
Dec 13, 2016 10:49 AM|navneetmitawa|LINK
You can only published MVC application, class library dose not need to be published, becoz it already in published form(.dll) which is referenced in your MVC application.
You published only Global.Call.Domain.MVC.
Navneet Kumar Mitawa
Member
58 Points
130 Posts
Re: Deploying n-tire mvc application on IIS server
Dec 13, 2016 10:52 AM|balvindersingh|LINK
thanks........
Member
58 Points
130 Posts
Re: Deploying n-tire mvc application on IIS server
Dec 13, 2016 10:58 AM|balvindersingh|LINK
yes all ref file are located in bin folder .
Member
58 Points
130 Posts
Re: Deploying n-tire mvc application on IIS server
Dec 13, 2016 10:59 AM|balvindersingh|LINK
and database deploy..??
Contributor
2923 Points
1417 Posts
Re: Deploying n-tire mvc application on IIS server
Dec 13, 2016 11:41 AM|navneetmitawa|LINK
Already shared link...
http://www.c-sharpcorner.com/UploadFile/4b0136/getting-started-with-iis-host-and-publish-in-mvc-5/
https://www.asp.net/mvc/overview/deployment/visual-studio-web-deployment/deploying-to-iis
Run the grant script in the application database
You can configure the publish profile to run the grant script in the membership database during deployment because that database deployment uses the dbDacFx provider. You can't run scripts during Code First Migrations deployment, which is how you're deploying the application database. Therefore, you have to manually run the script before deployment in the application database.
Navneet Kumar Mitawa
Contributor
2923 Points
1417 Posts
Re: Deploying n-tire mvc application on IIS server
Dec 13, 2016 12:07 PM|navneetmitawa|LINK
Run this script in sql
Navneet Kumar Mitawa
Member
58 Points
130 Posts
Re: Deploying n-tire mvc application on IIS server
Dec 13, 2016 12:18 PM|balvindersingh|LINK
ok
mean run in my sql server
http://my.jetscreenshot.com/29458/20161213-bqvy-53kb.png
Member
58 Points
130 Posts
Re: Deploying n-tire mvc application on IIS server
Dec 13, 2016 12:19 PM|balvindersingh|LINK
http://my.jetscreenshot.com/29458/20161213-bqvy-53kb.png
SAME as this
Contributor
2923 Points
1417 Posts
Re: Deploying n-tire mvc application on IIS server
Dec 14, 2016 05:35 AM|navneetmitawa|LINK
Then run this script for permission over data base server
Navneet Kumar Mitawa