Hi @Simmy Fleischer ,
If you try to follow the instructions here: Security Warning: Attaching to a process owned by an untrusted user can be dangerous. If the following information looks suspicious or you are unsure, do not attach to this process, but this time find or create the key under HKEY_CURRENT_USER\Software\Microsoft\VisualStudio<version>\Debugger and set it to 1, will it work?
Update1:
- Close VS => run regedit => select HKEY_USERS => click File => select Load Hive => find the privateregistry.bin file => click Open => give it a name for example "VS" => click OK.
- On the left => expand the "VS" => Software => Microsoft => VisualStudio => 17.0_xxxxxxxx => Debugger.
- Right-click and select New => DWORD (32-bit) Value => select the newly created value and right-click it => Rename => give it the name "DisableAttachSecurityWarning" => right-click it => Modify => input "1" in Value data box => click OK.
- On the left => select "VS" => File => Unload Hive => Yes => close Registry Editor => start VS 2022 as administrator => attach to the IIS.
- Remember to reset the value to "0" after you finish debugging.
Best Regards,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.