G
Guest
Hi All,
I am not sure whether this is the right newsgroup for this question but I am
posting it anyway. I am writing a Windows Service application using C# which
uses MS-CRM Web Services API to communicate with MS-CRM. It creates and
updates Account, SalesOrder, and Product entities.
For "Account" it uses following credentials:
string strServer = "2KSERV1-VPC";
string virtualDirectory = "MSCRMServices";
string strDir = "http://" + strServer + "/" + virtualDirectory + "/";
Microsoft.CRM.Proxy.BizUser bizUser = new Microsoft.CRM.Proxy.BizUser();
bizUser.Credentials = System.Net.CredentialCache.DefaultCredentials;
bizUser.Url = strDir + "BizUser.srf";
Microsoft.CRM.Proxy.CRMAccount account = new Microsoft.CRM.Proxy.CRMAccount
();
account.Credentials = System.Net.CredentialCache.DefaultCredentials;
account.Url = strDir + "CRMAccount.srf";
So basically I am using http request and response. Everything works well for
some time (may be for 5-6 new account insertions) but then I get following
error:
"There were not enough free threads in the ThreadPool object to comelete the
operation."
I did some research on that. Are there only 25 threads available per
process? If yes, how to get around this problem? The service is running on
the continuous basis.
Any help is appreciated.
Thanks,
Prasad
I am not sure whether this is the right newsgroup for this question but I am
posting it anyway. I am writing a Windows Service application using C# which
uses MS-CRM Web Services API to communicate with MS-CRM. It creates and
updates Account, SalesOrder, and Product entities.
For "Account" it uses following credentials:
string strServer = "2KSERV1-VPC";
string virtualDirectory = "MSCRMServices";
string strDir = "http://" + strServer + "/" + virtualDirectory + "/";
Microsoft.CRM.Proxy.BizUser bizUser = new Microsoft.CRM.Proxy.BizUser();
bizUser.Credentials = System.Net.CredentialCache.DefaultCredentials;
bizUser.Url = strDir + "BizUser.srf";
Microsoft.CRM.Proxy.CRMAccount account = new Microsoft.CRM.Proxy.CRMAccount
();
account.Credentials = System.Net.CredentialCache.DefaultCredentials;
account.Url = strDir + "CRMAccount.srf";
So basically I am using http request and response. Everything works well for
some time (may be for 5-6 new account insertions) but then I get following
error:
"There were not enough free threads in the ThreadPool object to comelete the
operation."
I did some research on that. Are there only 25 threads available per
process? If yes, how to get around this problem? The service is running on
the continuous basis.
Any help is appreciated.
Thanks,
Prasad