One of my fax sending items can send a fax through the direct console, but when the same code is changed to webapi and deployed to IIS, the fax sent to the interface is directly reported.
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005)
I thought it was a code writing problem, but it didn’t work
Later, it was found that the problem was IIS
Modify the application pool of webapi, change the project running permission to localsystem, and restart the project!
The reason is analyzed. It is speculated that only if the identity is localsystem, windows will assign permissions to the application to operate hardware related interfaces, such as COM port. Other identities will be considered unsafe.
Similar Posts:
- Permissions required by Vibrator.vibrate: android.permission.VIBRATE
- dism /online /cleanup-image /scanhealth Error: 740
- How to Solve MYSQL Error: Can’t create test file xxx lower-test
- How to Solve Xcode Error: could not attach to pid “xx”
- mysql 1142 – SELECT command denied to user ‘root_ssm’@’localhost’ for table …
- Android Error: open failed: EACCES (Permission denied)
- [Solved] Mac Error: PermissionError: [Errno 1] Operation not permitted: ‘xxxx’
- The component with CLSID {000209ff-0000-0000-c000-000000000046} in the com class factory failed due to the following error: 80070005 access denied. The latest solutions
- [Solved] WARN checkPermissions Missing write access to /usr/local/lib/node_modules
- mysql 1449 The user specified as a definer does not exist