AnswerBun.com

Built ASP.NET Application in Visual Studio - How Move it to IIS Express?

Stack Overflow Asked by DaveC on January 1, 2022

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…

Thanks…

One Answer

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.
https://dotnet.microsoft.com/download/dotnet-core/thank-you/runtime-aspnetcore-3.1.6-windows-hosting-bundle-installer
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.
enter image description here
https://docs.microsoft.com/en-us/iis/install/installing-iis-7/installing-iis-on-windows-vista-and-windows-7
Feel free to let me know if the problem still exists.

Answered by Abraham Qian on January 1, 2022

Add your own answers!

Related Questions

How to store a list of objects in sqflite?

1  Asked on January 17, 2021 by 0x4b50

         

SQL to allocate rows from one table to another

3  Asked on January 17, 2021 by user3093820

   

JavaScript LocaleDateString back to Date Object

1  Asked on January 16, 2021 by victor-molina

         

Python global variables unexpected behavior

3  Asked on January 16, 2021 by user118967

     

Spying module and mocking module function

3  Asked on January 16, 2021 by ninita

         

Palindrome Checker for strings in C

1  Asked on January 16, 2021 by bradley-felix

 

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir