1

I am getting this error

  HTTP Error 500.21 - Internal Server Error
  Handler "aspNetCore" has a bad module "AspNetCoreModuleV2" in its module list

i published my project in the release mode, and using filezilla i published it to my godaddy hosting space. When i try to open the site using URL i am getting this following error.

Anything idea?

enter image description here

Nithin Paul
  • 2,169
  • 3
  • 33
  • 55
  • Hi @Nithin Paul, did you try this [solution](https://stackoverflow.com/a/54539874/3520507)? – DarkSideMoon Jan 03 '21 at 11:33
  • DArkSideMoon, this bundle installation is to perform at my hosting machine right? not in my local machine in which i am developing my applciation? I am using godaddy to host this app, – Nithin Paul Jan 03 '21 at 11:36
  • yes, you right. You should install bundle on your hosting machine – DarkSideMoon Jan 03 '21 at 11:38
  • In go daddy how will i do it? using connecting using remote desktop? using ip? i tried it but was not able to connect it before? – Nithin Paul Jan 03 '21 at 11:40
  • What `OS` did you use for hosting in godaddy? Is it Windows server and IIS? – DarkSideMoon Jan 03 '21 at 11:43
  • I am using windows – Nithin Paul Jan 03 '21 at 11:46
  • Another thing is we are using share hosting, Means we purchased our domain in gsuit and later we moved to godaddy, so under which space we need to install this bundles – Nithin Paul Jan 03 '21 at 11:52
  • It is interesting, because the solution of this problem it is install `hosting bundle` on the machine using ftp client such as [WinSCP](https://winscp.net/eng/download.php). But I found the same problem in [godaddy support](https://uk.godaddy.com/community/GoDaddy-Web-Hosting/HTTP-Error-500-21-Internal-Server-Error/td-p/157069) - they said _They don't support .net core 3_ – DarkSideMoon Jan 03 '21 at 11:55
  • Well, you can try to install `hosting bundle`. This is [guide](https://winscp.net/eng/docs/guide_connect) how to connecto to the server. But I think you don't have right to install any additional software on theirs machines - that is way support said that - **They don't support .net core 3** – DarkSideMoon Jan 03 '21 at 12:00
  • Correct version of hosting bundle you can find [here](https://learn.microsoft.com/uk-ua/aspnet/core/host-and-deploy/iis/?view=aspnetcore-5.0#install-the-aspnet-core-modulehosting-bundle) – DarkSideMoon Jan 03 '21 at 12:01
  • Ohh :/ that means i need to move to .net corelates then :( let me check your link to connect to remote desktop. and will try to install these bundles, – Nithin Paul Jan 03 '21 at 12:02
  • Yes, try it. Maybe it helps. Write here after you try. – DarkSideMoon Jan 03 '21 at 12:08
  • Otherwise, there are a lot of others hosting servers for .net core. – DarkSideMoon Jan 03 '21 at 12:09
  • Sure darksidemoon, i will update, anyway thanks for your help :) – Nithin Paul Jan 03 '21 at 12:12
  • No problem :) I think we will continue discussion here and I will write answer on your question after our investigation about install hosting bundle. I think the best wasy to solve problem, change hosting provider. – DarkSideMoon Jan 03 '21 at 12:28
  • Go daddy's shared hosting is supported till 2.0 now, and they want me to purchase VPS which is little expensive. So either i may need to consider another hosting provider or need to downgrade my app to 2.0 – Nithin Paul Jan 03 '21 at 13:06
  • I will be preferred to change hosting, because we have net core 5.0 with a lot of new features, but they support only 2.0 – DarkSideMoon Jan 03 '21 at 13:09
  • Why did you migrate from google hosting? Is it expensive? – DarkSideMoon Jan 03 '21 at 13:10

1 Answers1

3

After invetigation issue - I found support answer in godaddy site - They don't support .net core 3

The best way to solve this issue - migrate to other hosting server

There are severals hosting servers that support net core:

Also, my recommendation do not deploy .Net core application in windows server in IIS. Deploy your application in Linux. Net Core with Linux

DarkSideMoon
  • 835
  • 1
  • 11
  • 17
  • Finally the site is up, had to down grade my .net target framework to 2.0. Had to do some coding changes in startup.cd file otherwise didnt create any major issues DarkSideMoon – Nithin Paul Jan 05 '21 at 08:51