Issue
When calling the TWAINPro for .NET SaveSettings() function and attempting to save a configuration data as "mySettings.ini", the following error occurs:
Cannot create file
This happens regardless of which directory you use for saving the file. What is causing this issue and how to fix it?
Cause
The issue lies with the file extension, ".ini". It appears that the ".ini " extension triggers an unintended behavior (perhaps in the OS) and is causing the app to treat the file location as a registry or system configuration file rather than a file path.
Fix
Rename the file and change the extension to something else (such as ".ini ").
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article