473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

sharepoint exception

Iam try to access the sharepointlist items using asp.net code below it make exception
Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerExcepti on' was thrown.
how it will be rectified?


Expand|Select|Wrap|Line Numbers
  1. try
  2.            {
  3.                 SharePointSvce.Lists listservice = new SharePointSvce.Lists();
  4.                 listservice.Credentials = System.Net.CredentialCache.DefaultCredentials;
  5.                 listservice.Url = "";
  6.                 string listGUID = "";
  7.  
  8.                 string ActiveItemViewGUID = "";
  9.  
  10.                 System.Xml.XmlNode activeItemData = listservice.GetListItems(listGUID, ActiveItemViewGUID, null, null, "5", null, null);
  11.                 foreach (System.Xml.XmlNode listitem in activeItemData)
  12.                 {
  13.                     System.Xml.XmlAttributeCollection attrs = listitem.Attributes;
  14.                     Console.WriteLine(listitem.OuterXml);
  15.                 }
  16.                                 Console.ReadLine();
  17.             }
  18.            catch (Exception ex)
  19.             {
  20.                 Console.WriteLine(ex.Message);
  21.                 Console.WriteLine(ex.StackTrace); 
  22.             }
Feb 18 '09 #1
4 2021
Curtis Rutland
3,256 Expert 2GB
What is the exception's message?
Feb 18 '09 #2
Frinavale
9,735 Expert Mod 8TB
Which line are you getting the error on?
This exception converts a SharePoint exception to a SOAP exception so that it can be deserialized on the Visual Studio .NET client...we need to know what the error message is before we can help you further.
Feb 18 '09 #3
exception at line

System.Xml.XmlNode activeItemData = listservice.GetListItems(listGUID, ActiveItemViewGUID, null, null, "5", null, null);

Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerExcepti on' was thrown.
Feb 19 '09 #4
Exception at line:
System.Xml.XmlNode activeItemData = listservice.GetListItems(listGUID, ActiveItemViewGUID, null, null, "5", null, null);
Feb 19 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: repalley | last post by:
hello guys, can we use MSOLAP in sharepoint custom web part actually i tried to but it is throwing exception :- security exception i dont know how to resolve this thing and there is no help on...
0
by: hareesh | last post by:
am opening wordapplication object (Have a reference to Microsfot Interop assembly) on the server side in sharepoint document library even handler. I am getting "access is denied" exception. The...
6
by: Michael S | last post by:
Not sure if I'm posting in the right group but here goes. I am getting the following error when trying to browse to an .aspx page which I have set up in a virtual directory under the default...
0
by: Joe L via .NET 247 | last post by:
I have written a web part. The webpart calls a web service toget info. I ran into problems with the webservice notresponding. We decided to have a cutoff for the time to waitfor a response from...
0
by: Fahad | last post by:
Hi, I am trying to update a list on sharepoint server via calling its standard built in web service. When ever i call the UpdateListitems() method, I get the following exception: at...
0
by: JFB | last post by:
Hi All, I'm trying to do a simple app in windows form vb.net to connect to a sharepoint server. Imports Microsoft.SharePoint Overloads Sub Main(args() As String) Dim siteCollection As New...
2
by: wale | last post by:
Yesterday I attempted to install sharepoint portal server 2003 on windows server 2003. Once we had installed it I realised that we had followed the setup instructions for a server farm set up as...
1
by: getobject | last post by:
I am building an ASP.Net site and wish to use a SharePoint to hold the information. I am trying to add an entry to a list using Sharepoint webservices and keep getting a SOAP exception. I have know...
20
by: Neil | last post by:
What is Sharepoint, and should I care?
2
by: Arielle | last post by:
Foreword: Our Sharepoint site runs off both Forms Based and Windows Authentication. That being said some users have dual accounts for both methods of authentication...but not all users. Each...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.