set load user profile to true for cryptographic exception but it is writing logs in AppData

130 views Asked by At

I have a WCF service which in turn calls other service and uses .p12 key for verification. I have set Load User Profile in Application pool to true to handle "CryptographicException was unhandled: System cannot find the specified file" exception. After this change, each service call is writing logs to below path - C:\Users\AppPool\AppData\Roaming\Microsoft\Crypto\RSA. Can anyone please help how to eliminate writing logs to specified path.

PS: - Previously service used to work with Load User Profile to false and there were no logs writing to path. This has happened after setting Load User Profile to TRUE in AppPool.

Thanks in advance.

0

There are 0 answers