Click here to Skip to main content
15,944,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have successfully generated a publish folder via following command;

dotnet publish -c Release -r win10-x64 --self-contained



Here is the generated exe file in publish folder. If I run the exe file, the website runs with no problem on localhost:5000.

However; when I try to put this website on iis, I have the following error;

HTTP Error 500.19 - Internal Server Error<pre>

Error Code     0x8007000d<pre>


Here is my web config file;
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
    </handlers>
    <aspNetCore processPath=".\AURORA.MvcWebUI.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
  </system.webServer>
</configuration> 
<!--ProjectGuid: 1E855145-26EA-4E34-8527-9A44CCB14290--> 

Could you help me please?

What I have tried:

I have tried to delete each part of the web config file but could not make it work
Posted
Updated 11-Oct-17 7:54am
Comments
Wessel Beulink 11-Oct-17 5:10am    
Your web configuration doesn't matter. Just clear the map, redeploy and edit the web configuration by IIS. Even without web configuration IIS will create a new one.
tasinsahin 11-Oct-17 5:37am    
Map? What map? Could you please tell it step by step? I am really new to iis :)

Reinstalling aspnet core module solved my problem.
 
Share this answer
 
v2
Create folder [
logs
] folder inside your deploy folder.
 
Share this answer
 
Comments
tasinsahin 11-Oct-17 5:59am    
sorry didnt solve the problem
kulile 11-Oct-17 6:01am    
What does if say on the log file that is produced on that folder?
kulile 11-Oct-17 6:08am    
You might want to have a look at this

https://stackoverflow.com/questions/16836473/asp-net-http-error-500-19-internal-server-error-0x8007000d
tasinsahin 11-Oct-17 13:54pm    
thanks for the reply :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900