Exception handling is the process of responding to the occurrence, during computation, of exceptions – anomalous or exceptional events requiring special processing – often changing the normal flow of program execution. It is provided by specialized programming language constructs or computer ...

learn more… | top users | synonyms

1
vote
1answer
671 views

Provisioning did not succeed. Details: Failed to initialize some site properties for Web at Url: <url> OriginalException: A cobalt error was thrown

I am trying to provision sites using SharePoint 2013 Client-side Object Model (CSOM) via SharePoint apps. I get the exception below when the method context.ExecuteQuery() is executed. Has anyone come ...
1
vote
0answers
39 views

SPException error codes and meanings (refreshing form request digest via SharePoint REST services)

Where can I find a list of error codes and their meanings for SharePoint exceptions? I can't find any list of any kind online, just specific cases here and there. My specific need arises out of the ...
1
vote
2answers
3k views

SoapServerException on Lists.GetListItems()

I'm trying to retrieve list items for my "Country" list through web services. This is my list: http://i.stack.imgur.com/158MI.png & this is my code: using System.Linq; using System.Text; using ...
0
votes
0answers
11 views

Using SharePoint exception handling in hybrid application

I am struggling to figure out a way to handle exceptions in my application. My application is Hybrid and mainly a .Net application that uses SharePoint 2010 for document management only. I want to ...
1
vote
1answer
633 views

Check if SPUser has access to an SPWeb object without causing an Access Denied redirect

As part of a Workflow Association Form code-behind we need to access information on different sites (in the same site collection). It is possible that the user trying to configure a workflow does not ...
1
vote
0answers
125 views

Valid sharepoint user that doesn't have a user profile causing workflow errors

I have created a work flow that retrieves some details, such as the manager and some address details, about users on our SharePoint. The information is retrieved for after the fact analysis we do on ...
0
votes
1answer
86 views

How to add workflow tasks to a currently running workflow?

I would like to know how I can add a new workflow task to a currently running workflow. Essentially, my scenario is this: created a custom application page approval form user can add new approvers ...
0
votes
0answers
38 views

SharePoint 2013 didn't log exceptions

I have a problem with SharePoint 2013. I have created a WSP package that works great on 2010 but doesn't on 2013. Actually, when I tried to access to the page, I receive the classic "Unexpected error ...
3
votes
2answers
87 views

Getting spuser from multiple types of information

If this sounds confusing it's because I'm al little confused on it myself. Basically I have an application (originally written by someone else but never finished) that needs to perform various actions ...
3
votes
1answer
1k views

Handling workflow errors

Environment: 2013 Enterprise, Workflow Server on WFE, SPD 2013 This seems like a pretty simple question coming from a programming background, but I just can't find any information on it. When ...
0
votes
1answer
1k views

Custom WCF service - includeExceptionDetailInFaults

I've got a custom WCF service that I created using the CKS toolkit for SharePoint. How do I enable includeExceptionDetailInFaults in these services? The way I understand it is, when using ...
0
votes
0answers
189 views

Feature ‘XXX’ for list template ‘YYY’ is not installed in this farm. The operation could not be completed

So I'm very new to SharePoint. And I'm supposed to debug a website SharePoint 2013. So when I open this page a web service is supposed to get me data from a distant database and display it in a ...
1
vote
2answers
2k views

Client Object Model : “Microsoft.SharePoint.Client.ServerException: The request uses too many resources”

When deleting 1000+ (link) items from a list in one batch using the COM, I encountered this exception : Microsoft.SharePoint.Client.ServerException: The request uses too many resources It seems ...
2
votes
3answers
803 views

Sharepoint site throws exception on clicking save button after uploading a file

I have deployed an event reciever with item added event on a document library in sharepoint site. In item added event I am calculating the number of pages for the uploaded document and updated a ...
0
votes
1answer
521 views

Exception error when getting master page in powershell

I wanted to see which site collections in our 2010 environment are not following the rules and are deactivating the Master Page in the settings. I have some powershell code that works just fine, ...
1
vote
0answers
174 views

NullReferenceException while running SharePoint products ( Central admin site is not working)

We are able to access the sharepoint sites but the centeral admin is not working so tried to run the share point product with exsisting farm and sharepoint_configdb. After step7, we are getting error ...
0
votes
2answers
363 views

Identify SharePoint 2010 exception

I a problem with identifying the origin of the exception in SP 2010 Enterprise. Environment: Standalone SP2010 AAM configured Authentication: Claims based. SSL enabled. Description: New web ...
3
votes
1answer
340 views

SPSecurity.CatchAccessDeniedException = false: Does Sharepoint keep this setting?

When I add SPSecurity.CatchAccessDeniedException = false; this disables the redirection to a login site. Does Sharepoint keep that setting until I set it to "true" or just as long until the object is ...
1
vote
2answers
814 views

CriticalExceptionCount in SharePoint 2010

Can anyone please describe me what is the role of CriticalExceptionCount measure in SharePoint 2010? Couldn't understand the below line: ResourcesPerPoint - Represents a normalization factor for ...
1
vote
1answer
411 views

Weird “Access Denied” - behaviour in read-only mode

In a sharepoint project I save data to a list. When the Administrator sets the database to ReadOnly, I want to capture the Exception that occurs when trying to write to that list and prevent the ...
0
votes
2answers
515 views

Error Handling Strategy for Sandboxed SharePoint Solutions

I am looking to develop an error handling strategy for a SharePoint solution that makes use of sandboxed webparts. I was initially looking at a general exception handling approach based on this ...
4
votes
1answer
625 views

How to Handle Unathorized Exception

I need to handle unauthorized exception.. My code is something like: try { //MY CODE } catch (Exception exx) { //My Code } I can't understand why if a NOT AUTH exception is thrown, my code didn't ...
0
votes
0answers
609 views

Exception in converting string to person or group type

I want to insert the user account for each user in a list column. As the list column is of type Person or Group, I need to convert the string type value to the person or group type. I have used the ...
0
votes
1answer
81 views

List does not exsist

I have a really strange behavior of a Sharepoint site here Having a Site and a subweb , everthing works as expected when I use RDP to work with the sites. But when I remotly access the site , every ...
0
votes
1answer
302 views

FormatAccountName exception after logging into Forms site

I've started receiving the following Sharepoint exception whenever I log a user in via Forms Authentication; Value cannot be null. at ...
3
votes
6answers
9k views

SharePoint Development in C# + Best way to deal with error handling

I have been developing pages and web parts in SharePoint 2007/2010 for the past year. One of the things that I always incorporate in my code is try/catch blocks to deal with error handling if an ...
5
votes
4answers
1k views

Catch exception in web part, or let it bubble up?

I'm writing a web part for other sites to use in their SharePoint installation. In the logic of the web part I throw exceptions at certain failure points. I'm wondering whether it is a better ...
1
vote
0answers
742 views

What is the best practice handling “Save Conflict” SPException? [closed]

What is the best way to work around the SPException thrown when updating an SPListItem recently edited by another process? Is this a good approach? What can be done to not to lose the update data? ...
5
votes
3answers
741 views

What happens to executing Timer Jobs when the Timer Services is restarted?

What happens to executing Timer Jobs when the Timer Service is restarted? Does it abruptly abort any executing jobs? Is there an exception to catch (for example ThreadAbortException) in your timer ...