'ASP.NET Core 5.0 Razor page Deployment in Windows server 2012 R2
I have created a razor page in asp.net core web app (.Net 5.0) and all works fine in my development machine. Now I have to deploy it in my test server which is windows server 2012 R2 version.
I Installed the ASP.NET core bundle version 6.0 in the test server and restarted my machine. I have the publish folder from the development machine. All I have is to copy those files to the test server.
Now I go to the IIS server and see the list of application pools and I dont see .Net 5.0 or .Net 6.0.
I have the following list of application pools
.Net 4.5
.net 2.0,
.net 2.0 with classic,
ASP.NET 4.0
ASP.NET 4.0 CLASSIC
but nothing related to .Net core or .Net 5.0
Even if i create a new application pool in IIS server it shows only
.Net CLR 2.0
.Net CLR 4.0
No Managed code
How will I associate my website to .Net core version ? (5.0 or 6.0)
Thanks, Venkat.
Solution 1:[1]
Its figured out. Looks like the ASP.NET core hosting is very simpler than expected. All I had to was the following.
0.First publish the files to a folder.
1.Copy the published files to the root directory of the website.
2.Install the ASP.Net core bundle version 6.0 and restart the machine.
and thats all... it works. no need to configure application pool or anything in the IIS server. Deploying the website is much easier in asp.net core.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
