I have been working on task to connect to Dynamics CRM in C#.Net. I am quite new with CRM environment and not aware of what its capable of doing completely.
Although my connection is successful, recently I have started noticing the connection does not remain persistent. Sometime it connects, sometime it is not connecting.
I have been trying in haphazard manner to resolve this issue.
I am here to share few alternatives I have thought about and response to resolve this situation.
1. Is there any retry mechanism available to connect to CRM Dynamics?
2. I have applied "RequireNewInstance=true" in connection string, but still no luck.
3. If I close the browser and run the app again after initial failure, it works. (with fluke !)
I get below error:
Unable to Login to Dynamics CRM. OrganizationServiceProxy is null.
Any suggestions are welcomed.