SharePoint - Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException

Asked By Megha Nagpal
28-Dec-11 09:57 AM

Hi All,
I'm new to Sharepoint and i'm getting this exception
Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown, the inner exception is null

with this code

XElement result = listClient.GetListItems("VentureAdmin", "", GetQuery("UserName", UserName), MakeViewFields(new String[] { }), "1000", new XElement("QueryOptions"), null);



Kindly suggest a workaround.

Thanks in advance.


Megha Nagpal
megha.nagpal@lntinfotech.com
  Suchit shah replied to Megha Nagpal
28-Dec-11 11:29 AM
If you need to use Web-Service rather than API and edit it SharePoint Designer, would you please try this:
 
·         Migrate your web-page logic to a UserControl and then package with a webpart, after that you can use the webpart in SharePoint Desinger,
but this also need some deployment on server.
 
·         Also, you can use J-Query for webservice in SharePoint Designer, as suggestion in this thread, and you only need to re-write the btnSubmit method,
replace it to client method using J-Query.

Is the name tasks also the actual listname in the url? i.e. http://siteurl/lists/tasks? is the list in a subsite and are you using the service under the site-collection?

IF the list is in a subsite the use http://sitecollectionurl/subsite/_vti_bin/lists.asmx as the Service url, otherwise the lists.asmx will try to find the tasks list in the rootweb instead of the subsite.

Create New Account
help
Please Help! Urgent! - User Control not Displayed SharePoint Hi Guys, I have a major problem displaying an user control in my project. Basically with my project because this issue. Here's my development environment: OS: Windows 2003 SE Sharepoint: Sharepoint Services 3.0 IDE: VS Studio 2005 SE + Sharepoint Extensions 1.1 Database: SQL Server 2005 Express User Control Location: C: \ Program Files \ Common 12 \ TEMPLATE \ CONTROLTEMPLATES Here's the code I am using: protected override void CreateChildControls() { protected UserControl userControl; protected string userControlPath; try { / / sets the user control as visible GUI on the web page this.userControl.Visible = true; / / prepare User Control for loading on web page base.CreateChildControls(); this.Controls.Clear this.userControlPath = @"(~ / _controltemplates / LoginUserControl.ascx"; this.userControl = (UserControl)this.Page.LoadControl(userControlPath); this.Controls.Add(this.userControl); } catch (Exception ex) { ex.ToString
Access Denied with RunWithElevatedPrivileges (MOSS 2007) SharePoint Hi All, I'm creating a usercontrol that runs through a website and al it's subsites and counting the number of documents. The Usercontrol is shown a webpage via the smartpart (http: / / www.codeplex.com / smartpart). The usercontrol works on all site collections except from one, and there it gives a Access Denied protected void ButtonSearch_Click(object sender, EventArgs e) { SPSecurity.RunWithElevatedPrivileges(HandleRoot); } private void HandleRoot() { / / Avoid that sharepoint handles Access Denied Exception: bool catchAccessDenied = SPSecurity.CatchAccessDeniedException; SPSecurity.CatchAccessDeniedException = false; try { / / Create SiteCollectionObject: using (SPSite site = new SPSite node.Text + = "(" + numberOfDocs + ")"; TreeSPOverview.Nodes.Add(node); } } } catch (UnauthorizedAccessException uaaEx) { LabelError.Text = uaaEx.Message; } catch (Exception ex) { LabelError.Text = ex.Message; } finally { / / Ask Sharepoint to handle Access Denied Exception again: SPSecurity.CatchAccessDeniedException = catchAccessDenied; } } I don't think there is
how to debug visual webpart for sharepoint 2010 in visual studio 2010 i am unable to debug visual webpart for sharepoint 2010 in visual studio 2010. after attaching w3wp it is not debug mode. HI Designing controls in the toolbox. In the next section below we’ll take advantage of the SharePoint server model in order to interact with SharePoint lists, but to pull data from our LOB database it’s standard data access stuff like and these styles will be displayed the same way in the Web Part in SharePoint. image Right-click on the designer to open the code-behind. In the Page_Load event WebControls Imports System.Web.UI.WebControls.WebParts Imports LowInventoryWebPart.NorthwindService Partial Public Class LowInventoryWebPartUserControl Inherits UserControl Protected Sub Page_Load( ByVal sender As Object , ByVal e As EventArgs ) Handles Me .Load 'Webpart Me .GridView1.AutoGenerateColumns = True Me .GridView1.DataSource = result.ToList() Me .GridView1.DataBind() Catch ex As Exception Me .Label1.Text = ex.ToString End Try End Sub End Class Debugging the Web Part Feature and Package designers are very flexible. (For more information watch this Channel 9 Interview: SharePoint Feature and Package Designers in Visual Studio 2010 and read Packaging and Deploying SharePoint Solutions
Server.Transfer in a SharePoint web page is looping SharePoint I need to make a Server.Transfer in a Sharepoint page. A response.redirect works fine. However, Server.transfer is entering in an infinit loop striclly the following: _ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ Option Strict On Partial Public Class usrTransfer Inherits System.Web.UI.UserControl Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Redirect instead, it will work fine 'Response.Redirect(" / PressReleases / Pages / default.aspx") Catch ex As Exception Throw ex End Try End Sub End Class _ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ SharePoint Development Discussions System.Web.UI.UserControl (1) SharePoint (1) System.EventArgs (1) Server.Transfer (1) PressReleases (1) UsrTransfer (1) It's an infinite