7
Answers

Security.Cryptography.RSACryptoServiceProvider.Decrypt - cannot access a disposed object

archlee

archlee

20y
4k
1
Our company has a web program to decrypt an encrypted string. The program works fine if not many requests calling it. If not (say over 150 requests at the same time), it runs into one of the following situations: 1) System.Security.Cryptography.RSACryptoServiceProvider.ImportParameters(RSAParameters parameters) at System.Security.Cryptography.RSA.FromXmlString(String xmlString) at ....... Cannot access a disposed object or 2) System.Security.Cryptography.RSACryptoServiceProvider.Decrypt(Byte[] rgb,Boolean fOAEP) at ...... Cannot access a disposed object I appreciate if anyone could point me to the right direction. Arch
Answers (7)
0
Anna Hawks

Anna Hawks

NA 243 0 16y
http://support.microsoft.com/kb/934838
Accepted
0
Amreesh Sharma

Amreesh Sharma

NA 16 3.2k 16y
Hi all,
Actually what happens when you host a web application using your central administration that time one has to give "configurable" under "Select a security account for this application pool" instead of choosing "Predefined (Netwok service).

Regards
Amreesh Sharma
0
srini vasan

srini vasan

NA 2 0 16y
When you login with your username & password into sharepoint (2007) site, it displays as a "System Account" instead of your username or full name on the top right corner of the website. What ever changes you make inside the site, for example upload a file, post a comment, sharepoint marks it as a System account instead of your name.
 
To fix this, you must run the following commands:
 
stsadm -o updatefarmcredentials -identitytype NetworkService
 
followed by:
 
iisreset
 
 
Because your account was used to create the SharePoint databases, your account is marked as a System Account.  You need to run the STSADM command "updatefarmcredentials" and set it to an account like the NetworkService account to prevent this from occurring.