.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

Error calling sharepoint web services from .net 3.5 WCF client...

Posted By:      Posted Date: September 03, 2010    Points: 0   Category :SharePoint
Code Snippet                 using (OCUserProfileService.UserProfileServiceSoapClient service =                     new TestAndDestroy.OCUserProfileService.UserProfileServiceSoapClient(GetWcfBinding())) {                     service.ClientCredentials.Windows.AllowedImpersonationLevel = TokenImpersonationLevel.Impersonation;                                     PropertyData[] properties = service.GetUserProfileByName("domain\\user.name");                     foreach (PropertyData p in properties) {                        Console.WriteLine(p.Name);                        Console.WriteLine(p.Values);                    }       produces....The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://microsoft.com/webservices/SharePointPortalServer/UserProfileService:GetUserProfileByNameResponse. The InnerException message was 'Error in line 1 position 392. 'Element' 'IsPrivacyChanged' from namespace 'http://microsoft.com/webservices/SharePointPortalServer/UserProfileService' is not expected. Expecting element 'Name | Privacy'.'.  Please see InnerException for more details.   I'm totally stumped, any ideas???

View Complete Post

More Related Resource Links

Resume SharePoint Services Web Application and returns code 1387 error


Hello everyone! Newbie here. I would like to ask how to start the SharePoint Services Web Application on (WSS3.0,internal database, stanalone users) without getting error 1387 ?

I would love to provide more information regarding this issue but what I got is error 1387 displayed in the browser.

I look forward to seeing you guys feedback from your expertise angle.



Windows SharePoint Services v3.0 Database Error

Hi Below is the error from event viewer on the server based on the Above Event Type:     Error Event Source:  Windows SharePoint Services 3 Event Category:          Database Event ID:         3758 Date:               3/18/2009 Time:               4:38:40 PM User:                N/A Computer:       FIB-PORTAL Description: Database full error on SQL Server instance 'FIB-PORTAL\OfficeServers' in database 'WSS_Content'. Additional error information from SQL Server is included below.   Could not allocate space for object 'dbo.EventCache'.'EventCache_Id' in database 'WSS_Content' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.   For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.   Event Type:     Error Event Source:  MSSQL$OFFICESERVERS Event Category:          (2) Event ID:         1827 Date:               3/18/2009 Time:               4:38:40 PM User:                FIRSTINLAND\sharepointadmin Computer:       FIB-PORTAL Description: CREATE DATABASE or ALTER DATABASE failed because the resulting cumulative database size would exceed your licensed limit of 4096 MB per database.Any ideas on the Solution to the Above Issue...Best Regards,Adeoye...

Microsoft.SharePoint.Client.File.OpenBinaryDirect - returns a 404 error if the file being requested

Hopefully someone can help with this. I'm using Sharepoint 2010. On the server I have manually created a folder in the "Shared Documents" folder called "bin" and uploaded a file into this folder If I attempt to access the files in this folder using the Microsoft.SharePoint.Client.File.OpenBinaryDirect function,  I receive the following error: A first chance exception of type 'System.Net.WebException' occurred in System.dll: System.Net.WebException: The remote server returned an error: (404) Not Found.    at System.Net.HttpWebRequest.GetResponse()    at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()    at Microsoft.SharePoint.Client.File.OpenBinaryDirect(ClientContext context, String serverRelativeUrl). Any other files in any other folders under the shared documents folder are accessible. Here is my example code: ClientContext clientCTX = new ClientContext(SPURL);             //Pass the credentials to the client context             clientCTX.Credentials = credentials;             List DeployFilesList = clientCTX.Web.Lists.GetByTitle("Shared Documents");             CamlQuery caml

SharePoint Web Services - IIS 7 - Error 503, Service not Available

System: Server 2008 R2 Ent all patched up, SharePoint 2010 Ent with 2 web applications installed and no other sites. The SharePoint Web Services Site in IIS 7.0 has a question mark on its icon. Whe I browse the site either from IIS or my PC I get a generic white Service Unavailable - HTTP Error 503. The service is unavailable. All other sites including Central Administration are good. 

Visio Services on Sharepoint error

Hello I have seen other posts regarding this problem but no real solution other than using an RTM version of Visio. When I publish Visio drawings (.vdw) to our Sharepoint 2010 server, I get the following error Visio Services was unable to load this diagram because it was published with an older version of Visio. To resolve this issue, republish this diagram with an updated version of Visio. However my version is 14.0.476.1000 (32bit) which is newer than those mentioned in the other posts. The document makes it to the server just fine and can be opened in Visio from the server but when trying to view on Sharepoint, the error above is returned. Can someone please help? Thanks Thanks

SharePoint 2010 Reporting Services Integrated-mode Error

I am running SharePoint 2010 and Reporting Services 2008 R2 SharePoint integrated-mode. I am able to browse to the reportserver site : http://DBserver/reportserver which lists my site collections and I am able to get to the document library which holds my reports. However, when I try opening a report I get the following error: Report Server has encountered a SharePoint error. (rsSharePointError) The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again. For more information about this error navigate to the report server on the local server machine, or enable remote errors I am able to resolve that issue by going to Central Admin, Application Management, General Settings and turning Web Page Security Validation Off. But if I do that I get an error when using silverlight features like site, or list creation. Any ideas?

Error calling a WebRequest.Create() from within a Sharepoint webpart




I need to fetch data from a 3rd party URL (via a HTTP API call; different domain from where Sharepoint is hosted) to display inside a webpart. 

When I try to preview the webpart I get the following error:

Request for the permission of type 'System.Net.WebPermission, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

I've also added the following to my web.config. Tried with trust levels as WSS_Medium and Full with no avail.

Any ideas? The part of the code without the webrequest executes well.

Windows Sharepoint Services 3 error


I am seeing a repeated error "Unknown SQL Exception 2 occurred" almost once a minute. We are running SBS 2003 SP2 and we don't really use SharePoint. If someone can tell me how to fix this issue I would appreciate it. We can disable Sharepoint features if necessary.

Akira Kato

Trying to open a sharepoint library in Windows Explorer via IE 8 results in the error "your client d


I am attempting to connect to a Microsoft Sharepoint library, via the "Actions -> Open in Windows Explorer" option from the Sharepoint page.  When I do so, I get the error message "your client does not support opening this list with windows explorer".  In short, I am trying to get the "drag and drop" functionality of a Sharepoint library.

I am running Windows 7 64-bit and IE8.  The target Sharepoint environment is a MOSS 2007 EE.  My Windows "WebClient" service is running, and I have no problem connecting to this exact library via a Windows XP computer running IE8.

calling InfoPath 2007 Client from SharePoint 2010 Foundation


I'm relatively new to SharePoint and very new to InfoPath. A client I just acquired hired me to develop a fairly complicated InfoPath solution that they want to be able to call from within SharePoint. Right now, they have a new SharePoint 2010 Foundation system and Form Server is not installed. They also currently have Office 2007, including the InfoPath client, on all computers in the workplace (this is an intranet only situation).

First, I created the needed lists/libraries in SP. Then I set to work developing the form in IP Designer 2010 (setting it for IP 2007 client compatibility). While the form is not yet done, I now want to setup a link in a ListView in SharePoint that launches the IP 2007 client on the user's computer, but I'm having troubles figuring out which way to go. There is a fair amount of C# code used by the form and while I'm an administrator on the server, I'm not familiar with setting up certificates to enable full trust (if that's what I need to do).

As a newbie, I'd really appreciate any pointers to existing answers or guidance of whatever sort.


Windows SharePoint Services 3 5586 error



Our companyweb is not working. It was working a week ago but now it keeps giving us a 'Webpage cannot be found' error. I checked the event logs and I noticed the above error:

Log Name:      Application
Source:        Windows SharePoint Services 3
Date:          18/10/2010 11:50:47 AM
Event ID:      5586
Task Category: Database
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      COMSBS.local
Unknown SQL Exception 33002 occured. Additional error information from SQL Server is included below.

Access to module dbo.proc_GetRunnableWorkItems is blocked because the signature is not valid.

I have search on the internet for a solution but with little success. Could you please tell me how to fix this error.




"Windows SharePoint Services Web Application" service is showing 'Error starting'.


I just installed MOSS SP2 and ran the config wizard on the server.
I am facing issue with our farm. Found that "Windows SharePoint Services Web Application" is in a problem.

I tried below commands:-
stsadm -o provisionservice -action stop -servicetype spwebservice -servicename ""
stsadm -o provisionservice -action start -servicetype spwebservice -servicename ""
But getting error:- Provision of service failed. Additional information: 1387.

Checked eventvwr and found below error log:-
Event Type: Error
Event Source: Windows SharePoint Services 3
Event Category: Topology
Event ID: 7034
Date:  10/21/2010
Time:  5:16:10 AM
User:  N/A
Computer: <Servername>
An attempt to start/stop instance  of service Windows SharePoint Services Web Application on server <servername> did not succeed. Re-run the action via UI or command line on the specified server.

None of the sites are working and I cannot see anything in the IIS folder nor in the IIS manager. All application folders are missing. But, I can see all the sites & Content databasesin the Central Admin.

Can someone please help?


Event Error 3351 Windows SharePoint Services 3



I have been fighting this error on my WFE/APP Server for the last two weeks and I have followed the guidance from Microsoft but the fix did not help; the error is still there.  I have also researched a fix on the Internet but could not find anything other than the Microsoft fix.  Every morning between 12:45AM and 1:25AM I receive 11 of event ID 3351 errors on my WFE/App server.  While on my DB server I receive five Error 18456.  Every morning same time 7 days a week.

Any suggestions on how to fix the error? 

We have made no know changes to the MOSS configuration.


Event Type: Error
Event Source: Windows SharePoint Services 3
Event Category: Database
Event ID: 3351
Date:  3/6/2008
Time:  12:45:30 AM
User:  N/A
Computer: SERVER
SQL database login failed. Additional error information from SQL Server is included below.

Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

In the SQL Server Logs I receive Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. [CLIENT:  IP ADD

Developing Client Applications with Office 2010 and Business Connectivity Services for SharePoint Se

Walk through the client-side features of BCS and learn how to use those features to your advantage in various kinds of scenarios.

Getting Started with Windows SharePoint Services

Of all of the capabilities of SharePoint, I thought I would start with the most basic installation - as a corporate intranet. It is likely that we will need to discuss some of the elements of SharePoint as we go along, so this also gives us the opportunity to review these elements for future reference.

Before going into too much detail, I would like to point out that you can try the core SharePoint framework (known as Windows SharePoint Services or WSS) for free. On Microsoft's Web site you can download a trial version of Virtual PC 2004 (VPC). Using VPC, you can install the Windows 2003 Evaluation Kit and the WSS add-on. This combination will give you 45 days to evaluate the setup.

Building a Searchable Phone Directory with Windows SharePoint Services

I want to continue to build out the intranet site we've started in our previous articles. A standard item in every intranet is a staff/employee list. Most companies implementing Windows SharePoint Services (WSS) are large enough to have a database that contains all employees. We will use the aggregation features of SharePoint to include data from this database into our intranet.

New Features in Windows SharePoint Services 3.0

Windows SharePoint Services 3.0 (WSS 3.0) is the next version of WSS 2.0, released on 2007, and Microsoft Office SharePoint Server 2007 (MOSS 2007) is built on top of this. Windows SharePoint Services 3.0 takes full advantage of Microsoft ASP.NET 2.0 and the core Microsoft .NET 2.0 runtime. WSS 3.0 offers a lot of new features and programmability support. I have consolidated a list of new features and enhancements in the below section:
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