❔ Unable to create IIS virtual directory with Rider

When I try and debug my web app using Rider, it builds the solution file but when it tries to start the web site it gives the error, "Unable to create IIS virtual directory". When I debug it in VS2022 the web site starts up fine. I am running Rider as Administrator, and when I start IIS Express via the command line, as follows:
./iisexpress /config:C:\MySolutionPath\.idea\config\applicationhost.config
./iisexpress /config:C:\MySolutionPath\.idea\config\applicationhost.config
it seems to start up fine. What could be causing this, and how do I fix it? Where can I look and what tools can I use to resolve this problem?
2 Replies
meta
meta2y ago
I am using Rider and starting IIS express is difficult for me. I have configured ASP.NET IIS dll to rider and succeeded in running IIS. But I prefer the original dotnet execution method and no problem with it in Rider. I think the reason is UAC problem, your program can't write files on C drive without access control
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server