How to call unmanaged code in ASP.NET website and host it in IIS?

前端 未结 1 1651
半阙折子戏
半阙折子戏 2021-01-17 02:11

I have created a C++ dll. It works fine and does the job.

I have created methods in asp.net that call the methods in C++ dll. DLL path is absolute. It works fine to

相关标签:
1条回答
  • 2021-01-17 02:54

    Did you confirm that the authenticated user of the application pool which is running your app has the appropriate permissions to read and execute the DLL?

    Try adding permissions for the user who is running the application pool for IIS7. For IIS6, if you are using anonymous authentication trying giving permission to the IIS anonymous user as configured in your Web Site settings. See here for IIS6 and here for IIS7.

    0 讨论(0)
提交回复
热议问题