Last post Feb 24, 2014 12:27 AM by YPradeep23
Feb 21, 2014 03:10 PM|YPradeep23|LINK
We have an asp.net application which consumes WCF service developed by any 3rd party vendor. In most of the cases it is working as expected, but sometimes it is giving "The system cannot find the file specified" error.
I greatly appreciate any help in resolving the issue.
Feb 23, 2014 10:33 PM|Fuxiang Zhang - MSFT|LINK
Thanks for your post.
Based on your description, I see you call the web service using own asp.net application.
And get the error "System.Security.Cryptography.CryptographicException: The system cannot find the file specified".
This is the clinet issue, and may occured due to some user priveledge issues in IIS. Please try to set your iis currectly.
There is a similar issue with solutions, please check it and find your answer.
Hope this helps, thanks.
Feb 24, 2014 12:27 AM|YPradeep23|LINK
Finally I found the resolution...
The error is due to application is not being able to find certificate files to send to Service Request. Application “App Pool” is trying to load the certificates from Account of App pool runs (domain account) & the profile information is not available to
IIS. But once the App Pool user logs-in, account profile will be loaded automatically and available for service call.
The reason for this behaviour is that Service Client's “store location” is selected as “CurrentUser”. Due to this Web Service calls will be successful as long as AppPool User logged in to server. Otherwise it will though the above error.