C
C#2w ago
hutonahill

✅ IIS?

Soooo.. i tried to run my ASP.NET project and rider threw an error i had never seen before. It said i had to set up IIS. i though what the heck, you didn't need this 20 min ago. but I clicked the link to the settings and followed the instructions. I think i installed iis, then i wanted me to install ASP.NET Core module. I clicked the doc page and, found the Microsoft link for the install, rebooted and i am done. but i am not. still doesn't work. While rider filled in the IIS express root folder on its own it did not fill in the ASP.NET core module file location. 1) what on earth is IIS? 2) why didn't i need it 20 min ago? only major change i made to the code was adding a hosted service 3) Where is the file location for ASP.NET Core module? (going to sleep, then oral surgery, then more sleep, so i am going to be delayed getting back to this.)
42 Replies
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Becquerel
Becquerel2w ago
IIS is a platform for hosting web apps. more specifically you use it as a 'reverse proxy' you don't need it for just running your asp.net project locally what you are likely doing is selecting an option for 'iis express' which boots up a small version of IIS to host your app for you
Becquerel
Becquerel2w ago
in this part of rider where you have your project name, click on it and you'll probably see different options
No description
Becquerel
Becquerel2w ago
what appears there is determined by a launchProfile.json in your project
No description
Becquerel
Becquerel2w ago
No description
Becquerel
Becquerel2w ago
when you choose the 'http' or 'https' launch profiles, your app will run under 'kestrel', which is the name for the http server built into asp.net core
Where is the file location for ASP.NET Core module?
idk what this is but if you do want to run your app under iis, you probably need to install the 'hosting bundle' from microsoft's website. it's on the download page if you go search for .NET 7, .NET 8, etc your app also needs a web.config file to run under IIS. this is generated by running dotnet publish on it (as opposed to dotnet build)
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Becquerel
Becquerel2w ago
real, true
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Becquerel
Becquerel2w ago
if i had a single dollar for every hour of misery IIS had caused me
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Pobiega
Pobiega2w ago
Respectfully, what is going on here He clearly just picked the wrong launch option
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
hutonahill
hutonahill2w ago
Oral surgery complete Very good answers Hm… how do I tell if I installed this? I followed a direct download link from the rider website to Microsoft.
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server