0

I am trying to deploy .net core 3.1 Test Web API application into IIS and I am getting error 500.19 error code 0x8007000d. Can you please help me to identify what is wrong with the config file. Here is the code:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <location path="." inheritInChildApplications="false">
    <system.webServer>
        <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
        </handlers>
        <aspNetCore processPath=".\Test.exe"
                    stdoutLogEnabled="false"
                    stdoutLogFile=".\logs\stdout"
                    hostingModel="inprocess" />
    </system.webServer>
    </location>
</configuration>

Using Jexus manager I generated a report and it says Invalid certificate, I installed IIS manager on my local machine and tried to browse using localhost and it returns error 404.

Martin Brisiak
  • 3,872
  • 12
  • 37
  • 51
Mikey
  • 49
  • 7
  • Does this answer your question? [How do I configure a .net core API to work in IIS?](https://stackoverflow.com/questions/50612351/how-do-i-configure-a-net-core-api-to-work-in-iis) – Lex Li May 29 '20 at 01:49
  • I have both of the .net core 3.1 and ASP.Net Module installed. I was able to run the application in stand alone. It seems that the problem is coming from IIS – Mikey May 29 '20 at 04:00
  • Run some basic diagnostics and the cause should be clear, https://docs.jexusmanager.com/tutorials/ancm-diagnostics.html – Lex Li May 29 '20 at 04:01
  • @LexLi, some strange thing is happening, I added the site in jexsusmanager and whenever i try to browse to it, error 404 is displayed. – Mikey May 29 '20 at 04:40
  • Generate a report and edit your question to include it. That should reveal enough information for others to review. – Lex Li May 29 '20 at 04:46
  • report was generated and it says invalid certificate but i am using local host, no experience with iis – Mikey May 29 '20 at 05:08
  • I was able to fix my problem by installing the hosting bundle. I am doing self contained deployment, so why do i need that? – Mikey May 29 '20 at 06:11
  • 1
    Explained quite well in https://stackoverflow.com/questions/54113388/net-core-self-contained-deployment-not-working – Lex Li May 29 '20 at 12:05
  • You are the man. I was confused....Thank you very much. – Mikey May 29 '20 at 14:05
  • 1
    Does this answer your question? [.NET Core - Self Contained Deployment not working](https://stackoverflow.com/questions/54113388/net-core-self-contained-deployment-not-working) – Lex Li Jan 20 '21 at 08:24

0 Answers0