IIS 7 and Above
publish mvc project on iis in another pc
Last post Jul 10, 2018 08:22 AM by deepakpanchal10
Jul 07, 2018 10:16 AM|keremgenisel|LINK
how can ı publish mvc project on iss in another pc ?
Jul 09, 2018 01:52 AM|deepakpanchal10|LINK
Hi keremgenisel ,
For detailed steps, you can refer link below.
Hosting ASP.NET MVC Application On IIS
Disclaimer: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these
sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to
make sure that you completely understand the risk before retrieving any software from the Internet.
Thank you for your understanding.
Jul 10, 2018 06:28 AM|keremgenisel|LINK
thank you so much for your answer and is the same way for asp .net core mvc ?
Jul 10, 2018 08:22 AM|deepakpanchal10|LINK
To host Asp.net Core in IIS you can refer steps below.
On the hosting system, create a folder to contain the app's published folders and files. An app's deployment layout is described in the Directory Structure topic.
Within the new folder, create a
logs folder to hold ASP.NET Core Module stdout logs when stdout logging is enabled. If the app is deployed with a
logs folder in the payload, skip this step. For instructions on how to enable MSBuild to create the
logs folder automatically when the project is built locally, see the Directory structure topic.
IIS Manager, open the server's node in the
Connections panel. Right-click the Sites folder. Select
Add Website from the contextual menu.
Site name and set the Physical path to the app's deployment folder. Provide the
Binding configuration and create the website by selecting
Under the server's node, select
Right-click the site's app pool and select
Basic Settings from the contextual menu.
Edit Application Pool window, set the .NET CLR version to
No Managed Code:
ASP.NET Core runs in a separate process and manages the runtime. ASP.NET Core doesn't rely on loading the desktop CLR. Setting the
.NET CLR version to
No Managed Code is optional.
Confirm the process model identity has the proper permissions.
If the default identity of the app pool (Process Model >
Identity) is changed from
ApplicationPoolIdentity to another identity, verify that the new identity has the required permissions to access the app's folder, database, and other required resources. For example, the app pool requires read and write access to folders where the
app reads and writes files.
These are the main steps but to get detailed information about whole process, I suggest you to refer the link below.
Host ASP.NET Core on Windows with IIS