0

I have created an Angular2/.NETCore application in Visual Studio, which when debugged works fine. I published this on my local IIS, and this also is running fine. However when I moved everything to a remote server, I got the following error:-

HTTP Error 500.19 - Internal Server Error

Detailed Error Information:
Module     IIS Web Core
Notification       Unknown
Handler    Not yet determined
Error Code     0x8007000d
Config Error       

I checked that I have the correct permissions on the remote IIS, however I cannot understand why I am getting this error.

I already tried the following link

but no luck so far.

Anyone has any idea what the problem might be?

Thanks for your help and time.

Community
  • 1
  • 1
JMon
  • 3,387
  • 16
  • 63
  • 102
  • source of error can be not changed DataSourceString or give permissions virtual directory to default user. – Vinutha N May 10 '17 at 08:57
  • When you open a terminal at the location of your web app and type `dotnet the.app.dll`, does this report an error? – Martin Ullrich May 10 '17 at 09:11
  • @VinuthaN sorry did not understand you – JMon May 10 '17 at 10:12
  • @MartinUllrich I opened a command prompt at the location of the application (ex c:\myapp) and I got "The application to execute does not exists" – JMon May 10 '17 at 10:13
  • and is there a `dotnet.exe` (=> dotnet installation directory) on the system's `PATH` environment variable? – Martin Ullrich May 10 '17 at 10:22
  • yes Martin when I do donet --help, I get the help, which means that its installed correctly right? – JMon May 10 '17 at 10:25
  • 1
    Have you install [.NET Core Windows Server Hosting bundle](https://learn.microsoft.com/en-us/aspnet/core/publishing/iis#install-the-net-core-windows-server-hosting-bundle) on remote server? – Sanket May 10 '17 at 10:41
  • how do I know if that is installed? Let me try to install it – JMon May 10 '17 at 10:52
  • That Server hosting bundle did eventually work Martin! How can I add this as the answer? Maybe it will help others – JMon May 10 '17 at 11:31
  • Added as answer @Johann, Please accept. – Sanket May 10 '17 at 11:42

1 Answers1

1

Install the .NET Core Windows Server Hosting bundle on the hosting system. The bundle will install the .NET Core Runtime, .NET Core Library, and the ASP.NET Core Module.

For more information refer this link.

Sanket
  • 19,295
  • 10
  • 71
  • 82