IIS Deploy ASP NET CORE Project
hi all, i tried to deploy an asp net core project using publish feature (publish to folder) to IIS server but i got this error which i try to search the stackoverlow lots of solution recommend to install net core hosting bundler, but i already installed and can't seem to resolve the issue (another installer i install : url rewrite module), the application is working fine if i run it using visual studio but not if i deploy to iis, can anyone help to advise why?
i downloaded the hosting bundler from microsoft site : https://dotnet.microsoft.com/en-us/download/dotnet/6.0
17 Replies
Hi there, did you also install the ASP.NET Core module for IIS?
i think i havent.. let me try that out..
sry i might be mistaken but when i try to search for ANCM for asp net core module i got redirected to here and the microsoft web say it's included inside the hosting bundler for asp net core, is this the correct bundler?
then you should be fine, did you restart the IIS service after the installation?
i tried to restart my windows, and i got a different issue this time.. do you have any idea what is this? 😦
are your .NET versions in sync?
I mean that you use the hosting bundle for .NET 6 if your app is also using .NET 6
and also which exact version of the hosting bundle did you install? Can you show the link?
yes, my project is using net 6, i double check from the program
and i download the hosting bundler for net 6 from this link https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-6.0.8-windows-x64-installer
You didn't install the hosting bundle then 🙂
It's confusing on the site of MS, this is the download for the hosting bundle: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-6.0.8-windows-hosting-bundle-installer
don't select the bit versions listed besides it, just the hosting bundle
ohhh.. i thought the bit version is the hosting bundler.. omg... 😅
thank you so much for helping me to check, let me try to install it first..
install this, restart the IIS service and give it a new try 🙂
okay can..
it works now after i install the correct hosting bundler, i should have pay attention to the link.. thank you so much for your help! ^^
you're welcome! 🙂
I had to setup that stuff all myself so I know a lot about how painful it can be sometimes 🙂
yeah.. i can't believe i spend hours and hours on this setup... 😅
all the best, have a great day!
same to you!