0x80070005
is expected as you are forcing IIS (a Windows service app) to load the files from your personal folder (C:\Users\angellaYu\source\repos
, which usually has access restrictions). What I recommend is that,
- To just test/debug your IIS module, learn and use IIS Express which runs under your own account. The challenging part to you is how to better incorporate IIS Express executable and config file to your workflow, but this is doable.
- Once you get everything work as expected, create a proper installer for IIS, and install the module to a more suitable location (eithe Program Files or system32).
It's relatively difficult to find simple examples here, as most of IIS extensions/modules are not open sourced, but ASP.NET Core module and HttpPlatformHandler v2 are both available on GitHub, https://github.com/dotnet/AspNetCore and https://github.com/lextudio/httpplatformhandlerv2