IIS 7 and Above
How we can troubleshoot the C++ native module after deployment on IIS...
Last post Nov 09, 2020 04:00 AM by lextm
Oct 19, 2020 07:43 AM|mukeshdutt|LINK
I have created a C++ native module; during development, I have tested with IIS express command line. After development, we have deployed the same on IIS. However, module was not reacting to anything. Then, I thought there might be some problem with my code.
Subsequently, I have created and deployed a simple application which is use to write "Hello World" in the response, using
WriteEntityChunks method, but same was not also working there.
Please find below steps, how I have deployed on IIS:
Oct 20, 2020 06:59 AM|Jalpa Panchal|LINK
You can debug your native module by attaching the debugger to the w3wp process.
1)In Visual Studio, go to Tools > Attach to Process >
(select show processes from all sessions, and all users checkboxes at the bottom of the dialog. Make sure Attach Type is Native, or Managed And Native)
2)Select the W3WP.exe process, and click Attach.
3)Go to Debug > Windows > Modules (the naming coincidence is accidental), and make sure that the symbols for your DLL are loaded. If not, Right Click and do Load Symbols, and manually browse to your symbol file.
Put the breakpoint and debug away.
Oct 28, 2020 03:27 AM|Jalpa Panchal|LINK
Is your issue solved? If your issue is solved then I request you to mark the helpful suggestion as an answer. This will help other people who face the same issue. If your issue still exists then try to refer the solution given by the community members. If
then also you have any further questions then let us know about it. We will try to provide further suggestions to solve the issue. Thanks for your understanding.
Nov 09, 2020 04:00 AM|lextm|LINK
Those steps are not guaranteed to work, as IIS can generate unnecessary conditions for the native module and prevent it from working.