value cannot be null. parameter name value error in CRM 2011

I was getting the above error while trying to create a SharePointDocumentLocation programmatically. However I was able to create an incident record without any issue.

As it turned out, this is what I was missing


OrganizationServiceProxy orgService = new


OrganizationServiceProxy(organizationUri, homeRealmUri, credentials, null);


orgService.EnableProxyTypes();

Hope it helps!


Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

1 thought on “value cannot be null. parameter name value error in CRM 2011”

  1. Could you help me?

    I had that problem, so I used the orgService.EnableProxyTypes(); method
    but now I’ve got the “Access Denied” exception.

    Like

Share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s