Knowledge Base

The leading provider of version control solutions and TWAIN SDKs

Dynamic .NET TWAIN: No permissions to run DSSCN.exe in user AppData folder

For Dynamic .NET TWAIN v6.x and lower versions only, for V7.x+ please refer to http://developer.dynamsoft.com/dnt/kb

Scenario:
If you enable the property ScanInNewProcess to invoke an independent 32-bit process to access the scanner. Some users who don't have appropriate permission to access to the C:\Users\{User Name}\AppData\Local\Temp\Dynamsoft\DynamicDotNetTwain\ directory will be unable to use the application to scan.

Cause:
Before Dynamic .NET TWAIN (v5.3+) launches a new 32-bit scanning process, the SDK will try to create a new folder under C:\Users\{User Name}\AppData\Local\Temp\Dynamsoft\DynamicDotNetTwain\ and place the DSSCN.exe in this folder. When users call the method AcquireImage to scan, the DSSCN.exe will be executed to talk to the scanner driver (32-bit). Users without required permissions to the folder C:\Users\{User Name}\AppData\Local\Temp\Dynamsoft\DynamicDotNetTwain\ will be unable to scan under a 32-bit scanning process.

Resolution:
Set the property ScanInNewProcess to false to disable the mechanism.

dynamicDotNetTwain.ScanInNewProcess = false;




Article Details

Last Updated
15th of September, 2016

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF

User Opinions (0 votes)

No users have voted.

How would you rate this answer?



Thank you for rating this answer.

Related Articles

No related articles were found.

Attachments

No attachments were found.

Continue