✅ 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•3mo ago
Message Not Public
Sign In & Join Server To View
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
in this part of rider where you have your project name, click on it and you'll probably see different options
what appears there is determined by a launchProfile.json in your project
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•3mo ago
Message Not Public
Sign In & Join Server To View
real, true
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
if i had a single dollar for every hour of misery IIS had caused me
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Respectfully, what is going on here
He clearly just picked the wrong launch option
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
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•3mo ago
Message Not Public
Sign In & Join Server To View
No your right I didn’t need it, this is local development
It was the wrong launch option
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
yep, got the message. now trying to uninstall it
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
this
you said never instal in on your dev computer
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
* Open
powershell
in a terminal in admin mode as in the following video:
https://cdn.discordapp.com/attachments/569261465463160900/1157744344183341156/20230930-1822-10.7436061.mp4
* copy/paste the following script:
in case of an invalid setup detected, it will:
* tell you that it did (or not) detected an invalid Path
setup
* in case some action are require it will ask you to Press Enter to confirm
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
i mighthave installed it. direct link to a download from Jetbrains website to Micorsoft, so i never saw the page.
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
jet brains told me to
i did it before i made this post
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
sure thing, hold on
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
found the .MSI opene it and there is an uninstall option
going to uninstall.
checking out that video to make sure i open powershell right...
updating powershell as prompted to by powershell
installing powershell 7
hm.. followed the instructions and i still have powershell 7
ok, its a seprate app, booting it up as the admin
pasting the script in
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
well, i didnt need it anyways
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View