.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Accessing CRM2011 OrganizationData.svc from SharePoint WebPermission problems

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :SharePoint

I'm attempting to query the OrganizationData.svc web service from a SharePoint EventReceiver but don't seem to have the appropriate credentials. Thing is if I attempt to access it via a console app my credentials work fine. I expect that since the EventReceiver is making the call, in scenario 2, that the identity is that of the process running SharePoint, but for some reason the credentials provided don't work. Is there an approach that works? Thanks


The wss_minimaltrust.config change I made was  <IPermission class="WebPermission" version="1" Unrestricted="true"> </IPermission> as per http://www.coderetard.com/2008/06/16/sharepoint-c-systemsecuritysecurityexception-request-for-the-permission-of-type-systemnetwebpermission-system-version2000-cultureneutral-publickeytokenb77a5c561934e089-failed/


Scenario 1: Console App

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;


namespace OrgDataCo

View Complete Post

More Related Resource Links

Accessing SharePoint 2010 Data with Server-Side APIs

Accessing SharePoint data in server-side solutions is one of the most common tasks that you will perform as a SharePoint developer. SharePoint 2010 provides powerful server-side APIs that enable you to retrieve, add, edit, and delete SharePoint data programmatically. SharePoint 2010 also includes the new LINQ to SharePoint technology that enables you to work with SharePoint data efficiently and easily.

Office Add-Ins: 3 Solutions for Accessing SharePoint Data in Office 2010


SharePoint 2010 introduces a number of new ways to access business data and present it to the user. We'll show you several options that range from no-code solutions to fully integrated Office add-ins.

Donovan Follette , Paul Stubbs

MSDN Magazine July 2010

SSRS 2008 R2 and sharepoint 2007 report builder problems


I upgraded our enterprise sql server 2008 to sql server 2008 r2 last weekend.  Along with this i installed the report builder 3.0 on the servers as well and the updated ssrs add in for sharepoint.  The upgrade went fine, no errors that i could find.  The problem is now when i go to a library that has the report builder content type enabled and click report builder report under new it does not load report builder 3.0.

I updated the custom report builder url in central administration from /_vti_bin/ReportBuilder/ReportBuilder_2_0_0_0.application to /_vti_bin/ReportBuilder/ReportBuilder_3_0_0_0.application

however when i do click the new report builder report it kicks me over to http://company.com/ReportServer_MossEnt  which itemizes out each individual sharepoint site in the farm.

Is the integration of ssrs 2008 r2, sharepoint 2007 and report builder 3.0 work?  did i install the wrong version of the report builder add in?  The above is the only problem i am having now.

all servers are server 2008, 64 bit and moss 2007 enterprise with sp2 & april 2010 cu

Problem accessing Sharepoint 2007 MySite


My users are having an issue accessing their mysites.  When they go to the main portal page or any other site and click the link at the top right of the page to go to their Mysite they are thrown into an endless authentication loop.  If they cancel out of the loop the URL in the address bar is for http://mossserver/_layouts/MySites.aspx

For a user to successfully get to their myself they need to enter the full url like http://mossserver/personal/username/default.aspx

Now, I know somewhat how this happened.  It resulted from me trying to delete a user's mysite and I apparently did it wrong but I'm not sure what I did.  It almost seems like I deleted a redirect page or something...

Looking for any ideas.



Attachements problems - also - How to add Office Communicator link to sharepoint Form ?



I have created an Infopath 2007 form and published it to Sharepoint 2007.

1. I can add "attachements" to the form, but the function can handle only one attachement per link. If i need to add 10 attachements, i have to create 10 attachement functions to the form.

Is it possible to create one attachement function in the Infopath form, that is able to save several attachements under it?

2. Is it possible to save .exe, .msi and similar files to the form as attachements? Sharepoint says security settings prohibit this.

3. How can i add a link that shows up as MS Office Communicator link in the form? For example: John Smith in Office communicator is now Online. I want his name and his status to show also in the Infopath form, when somebody opens it in Sharepoint.

Please help!


Quick Note: Accessing Data in a SharePoint 2010 Web Part by using LINQ

In this exercise, you develop and deploy a visual Web Part that reads data from two lists by using a LINQ query and displays it in a DataGrid control.

Quick Note: Accessing Multiple SharePoint 2010 Lists by Using LINQ

In this exercise, you develop and deploy a visual Web Part that reads data from three lists by using LINQ queries and displays the results in a grid view control.

Accessing BLOB Data from External Systems Using Business Connectivity Services in SharePoint Server

Learn how to use BCS in SharePoint Server 2010 to access and surface BLOB data in the SharePoint user interface and search.

Sample: Accessing BLOB Data from External Systems Using Business Connectivity Services in SharePoint

Download sample code as you learn to use BCS in SharePoint Server 2010 to access and surface BLOB data in the SharePoint user interface and search.

Video: Accessing SharePoint 2010 List Data

In this video you will learn how to create strongly typed classes using a tool called SPMetal to do LINQ programming against a SharePoint 2010 list. (Length: 15:22)

Module 5: Accessing SharePoint 2010 Data with Client-Side APIs

SharePoint 2010 provides a new client object model that enables you to create SharePoint solutions that run remotely from the SharePoint server farm.

Module 6: Accessing External Data with Business Connectivity Services in SharePoint 2010

SharePoint 2010 provides a new set of technologies known as Business Connectivity Services for retrieving, editing, updating, and deleting data from external systems.

Video: Accessing SharePoint 2010 Data on the Server

This video provides an overview of approaches for accessing SharePoint 2010 data by using the server-side APIs. (Length: 3:32)

Video: Accessing SharePoint 2010 Data from a .NET Application

This demonstration shows how to use the client object model from a Windows Presentation Foundation application. (Length: 5:26)

Video: Accessing SharePoint 2010 Data in Silverlight by Using CAML

This demonstration shows how to use the client object model and CAML to access SharePoint data in Silverlight applications. (Length: 6:39)

Issues accessing saved documents in SharePoint


Hello, I believe there is an issue with a current document link in SharePoint.  When we click on the main Document Folder (labelled - Project Descriptions) we are typically provided access to a large list of subfolders and documents.  For some reason now, when we click on the main Document folder, a dialogue box opens up prompting me with the following language:

Do you want to open or save this file?

  • Name: Allitems.zip
  • Type: Compressed (zipped) Folder, 6.13KB
  • From: sharepoint.ambit-consulting.com

If you click "open", you're redirected to a blank page in SharePoint.  Our documents are no where to be found.  Please help.


Josh - AMBiT Consulting Inc.

Accessing "Accessibility task pane" of Sharepoint designer using API

Hi I have a requirement to add some information to Accessibility task pane. Does anybody have idea on how to access the task pane of sharepoint designer and inserting new data to it using API? I am using sharepoint desinger 2007. Regards Sujasree
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend