Been scouring web, this seems like a very simple thing to do…I have done a lot of PHP deployments, but ASP.NET is killing me…
I built ASP.NET app in Visual Studio. I can run it from the IIS Express button. Not sure what it does, sticks in on a new port. Anyway, I want to take this app and put it under IIS Express so I can run it just from localhost in browser. I know how to Publish, and can create the publish folder under bin. All very simple. But, in the directions, it says to copy all those files to the web site – I’ve done that, into the document root. But there is no htm, html, .aspx, etc, etc file. How do I run this app that I copied over?
For example, my app is HelloWorld. There are EXE, DLL, PDB, JSON, and other files in the publish folder. There is a wwwroot folder with CSS and other stuff. What do I need to do to put this under IIS Express and run it as /localhost/HelloWorld or whatever?
I am missing something very elementary here. I feel stupid, because I’ve done some very complex sites with PHP, JS, MySQL, etc, etc…
No static files such as HTML is a normal phenomenon in AspNet Core application hosting files. Just place all build output files into the root directory of the website. Also, please ensure that the Asp.Net Core hosting bundle has been installed on the webserver.
In addition, IIS Express just a simplified version of the webserver, in order to facilitate Visual Studio debugging web application. try to enable the IIS standard web server in windows.
Feel free to let me know if the problem still exists.
Answered by Abraham Qian on January 1, 2022
1 Asked on December 7, 2021 by jeremy-thompson
0 Asked on December 7, 2021 by ranga-vittal
0 Asked on December 7, 2021 by aashutosh
3 Asked on December 7, 2021 by anurag-singh
0 Asked on December 7, 2021
1 Asked on December 5, 2021 by eamon-ryan
2 Asked on December 5, 2021 by william-beachy
1 Asked on December 5, 2021 by niko-konovalov
2 Asked on December 5, 2021 by commander
2 Asked on December 5, 2021 by user13882705
3 Asked on December 5, 2021 by tzvi2
2 Asked on December 5, 2021 by user11974734
1 Asked on December 5, 2021
2 Asked on December 5, 2021 by luke-newman
2 Asked on December 5, 2021 by ktulu-hala
4 Asked on December 5, 2021 by dcsan
Get help from others!