failed to load dll

mc 3,906 Reputation points
2024-06-16T01:25:33.6566667+00:00

but when I register it .and

User's image

Internet Information Services
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,600 questions
{count} votes

Accepted answer
  1. Lex Li (Microsoft) 4,987 Reputation points Microsoft Employee
    2024-06-17T20:59:15.12+00:00

    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,

    1. 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.
    2. 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


0 additional answers

Sort by: Most helpful