I have developed most of my project in Visual Studio 2019, however as I prefer the other JetBrains IDE's I wanted to move my asp.net core 2.2 project to Rider.
Application 'C:\Project\Project' wasn't able to start. Application .dll was not found at C:\Program Files\JetBrains\JetBrains Rider 191.6733.764\lib\ReSharperHost\JetBrains.IisExpress.Worker.dll
Does anyone know what could be wrong? The target framework etc looks correct
I created a new project in Rider and it works fine.
According to the error message, the error is caused by some settings in IIS configuration. So,firstly, here are two articles about Visual Studio and Vs code do when you publish a .net core application on iis with this tools. I believe that the principle
is similar to the rider you use.Here are the links, I hope it could help you.
Then for a walk round , since the error happens in iis ,so I think we could directly pass iis process, you could set the .net core mode as out of process ,so that it will not call iis process for it.Else you could see in the csproj file of .net core ,the
host model mode is in process by default. So you could set it as out of process.
Lastly,I suggest that you could post this thread to Rider forum.Here is the link, I hope it could help you.
Member
19 Points
45 Posts
Developing in Rider 2019.1 EAP
Apr 30, 2019 09:24 AM|Shadow_Kittencorn|LINK
I have developed most of my project in Visual Studio 2019, however as I prefer the other JetBrains IDE's I wanted to move my asp.net core 2.2 project to Rider.
web.config:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="InProcess">
<environmentVariables>
<environmentVariable name="ASPNETCORE_HTTPS_PORT" value="44307" />
<environmentVariable name="COMPLUS_ForceENC" value="1" />
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
</environmentVariables>
</aspNetCore>
</system.webServer>
</location>
</configuration>
lauchsettings.json:
{
"iisSettings": {
"windowsAuthentication": true,
"anonymousAuthentication": false,
"iis": {
"applicationUrl": "https://localhost",
"sslPort": 0
},
"iisExpress": {
"applicationUrl": "http://localhost:50133",
"sslPort": 44307
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
However when running with the IIS Express config in Rider I get an error complaining about the line:
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
So I commented it for now (it still runs fine in VS 2019).
I am now getting:
HTTP Error 500.0 - ANCM In-Process Handler Load Failure
Event Log:
Application 'C:\Project\Project' wasn't able to start. Application .dll was not found at C:\Program Files\JetBrains\JetBrains Rider 191.6733.764\lib\ReSharperHost\JetBrains.IisExpress.Worker.dll
Does anyone know what could be wrong? The target framework etc looks correct
I created a new project in Rider and it works fine.
Participant
1300 Points
522 Posts
Re: Developing in Rider 2019.1 EAP
May 01, 2019 07:45 AM|Wei Zhang|LINK
Hi Shadow,
According to the error message, the error is caused by some settings in IIS configuration. So,firstly, here are two articles about Visual Studio and Vs code do when you publish a .net core application on iis with this tools. I believe that the principle is similar to the rider you use.Here are the links, I hope it could help you.
https://stackoverflow.com/questions/47233521/how-to-locally-run-net-core-2-0-app-in-vs-code-the-same-way-visual-studio-does
https://blog.lextudio.com/how-visual-studio-launches-iis-express-to-debug-asp-net-core-apps-d7fd3677e3c3
Then for a walk round , since the error happens in iis ,so I think we could directly pass iis process, you could set the .net core mode as out of process ,so that it will not call iis process for it.Else you could see in the csproj file of .net core ,the host model mode is in process by default. So you could set it as out of process.
Lastly,I suggest that you could post this thread to Rider forum.Here is the link, I hope it could help you.
https://rider-support.jetbrains.com/hc/en-us/community/topics/200410195-General-Discussion
Best Regards
Wei