C
C#3mo ago
hutoanhill

✅ 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 User3mo ago
Message Not Public
Sign In & Join Server To View
Becquerel
Becquerel3mo 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
Becquerel3mo 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
Becquerel3mo ago
what appears there is determined by a launchProfile.json in your project
No description
Becquerel
Becquerel3mo ago
No description
Becquerel
Becquerel3mo 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 User3mo ago
Message Not Public
Sign In & Join Server To View
Becquerel
Becquerel3mo ago
real, true
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
Becquerel
Becquerel3mo ago
if i had a single dollar for every hour of misery IIS had caused me
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
Pobiega
Pobiega3mo ago
Respectfully, what is going on here He clearly just picked the wrong launch option
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
hutoanhill
hutoanhillOP3mo 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 User3mo ago
Message Not Public
Sign In & Join Server To View
hutoanhill
hutoanhillOP3mo ago
No your right I didn’t need it, this is local development It was the wrong launch option
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
hutoanhill
hutoanhillOP3mo ago
yep, got the message. now trying to uninstall it
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
hutoanhill
hutoanhillOP3mo ago
this you said never instal in on your dev computer
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX3mo ago
* 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:
iex "& { $(irm https://gist.githubusercontent.com/tebeco/5c6cc0eee8c28fad3523008d58f83914/raw/d14890f540ae74ad72d950c48f6a242e9401d31e/fix-dotnet-path.ps1) }"
iex "& { $(irm https://gist.githubusercontent.com/tebeco/5c6cc0eee8c28fad3523008d58f83914/raw/d14890f540ae74ad72d950c48f6a242e9401d31e/fix-dotnet-path.ps1) }"
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
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
hutoanhill
hutoanhillOP3mo ago
i mighthave installed it. direct link to a download from Jetbrains website to Micorsoft, so i never saw the page.
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
hutoanhill
hutoanhillOP3mo ago
jet brains told me to i did it before i made this post
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
hutoanhill
hutoanhillOP3mo ago
sure thing, hold on
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
hutoanhill
hutoanhillOP3mo ago
No description
hutoanhill
hutoanhillOP3mo ago
No description
hutoanhill
hutoanhillOP3mo ago
No description
hutoanhill
hutoanhillOP3mo ago
found the .MSI opene it and there is an uninstall option
No description
hutoanhill
hutoanhillOP3mo ago
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
hutoanhill
hutoanhillOP3mo ago
No description
hutoanhill
hutoanhillOP3mo ago
ok, its a seprate app, booting it up as the admin
hutoanhill
hutoanhillOP3mo ago
No description
hutoanhill
hutoanhillOP3mo ago
pasting the script in
hutoanhill
hutoanhillOP3mo ago
No description
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
hutoanhill
hutoanhillOP3mo ago
well, i didnt need it anyways
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server