Skip to main content

Questions tagged [exception-handling]

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 hardware mechanisms.

Filter by
Sorted by
Tagged with
0 votes
1 answer
73 views

I am creating a event handler that will sync documents between two sites on the same site collection when one is uploaded. This is the item added handler. public override void ItemAdded(...
belmer1416's user avatar
1 vote
1 answer
5k views

When I try to load AJAX scripts into private site it runs with any problems, but when I do public site I have AccessException, I read a lot of it, and I found this link, where have same problem and ...
Gerry's user avatar
  • 13
1 vote
0 answers
696 views

I am currently trying my best to implement a Handler to redirect error pages on Sharepoint 2013. Our project has a bunch of webparts that are inside pages - and when these webparts reach certain ...
Malavos's user avatar
  • 159
3 votes
1 answer
601 views

I am trying to implement try/catch scope in my JSOM, but I am getting the error message in the question's title. Below is my code: errScope = new SP.ExceptionHandlingScope(context); ...
Natalie's user avatar
  • 285
0 votes
1 answer
1k views

I came up with the workflow shown below, which seemed to do the job at first. The purpose of the workflow is to notify via email that a document is about to expire. First, it checks if the ...
Manuel Leyva's user avatar
1 vote
0 answers
50 views

I have a requirement where I am checking a user account whether it does exist in User Profile Service or not. And if the account doesn't exist then it will create an account. I am using CSOM for this. ...
user47967's user avatar
0 votes
1 answer
111 views

I am writing an ItemUpdating event receiver for a document library in MOSS 2007 (yes, I am still on that version!) and need to bake in some validation. If the validation fails or if an exception is ...
Web User's user avatar
  • 229
0 votes
0 answers
34 views

I'm trying to retrieve all available site-columns from my sharepoint site. This is what I do: ClientContext clientContext = new ClientContext(siteURL); clientContext.Credentials = websService....
Abhishek's user avatar
  • 163
3 votes
1 answer
2k views

So I create a Modal Dialog with this code: function openModalDialog(title, url, callback) { var options = { title: title, url: url, dialogReturnValueCallback: callback ...
Szab's user avatar
  • 198
2 votes
0 answers
1k views

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 ...
Thomas Doman's user avatar
0 votes
0 answers
47 views

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 ...
Shashank Srivastava's user avatar
2 votes
0 answers
1k views

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 ...
Martin's user avatar
  • 21
0 votes
0 answers
232 views

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 ...
Ziba Leah's user avatar
  • 1,987
3 votes
2 answers
169 views

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 ...
Jordan's user avatar
  • 31
11 votes
2 answers
13k views

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 ...
thanby's user avatar
  • 2,680
0 votes
0 answers
3k views

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 ...
MarGa's user avatar
  • 101
5 votes
1 answer
3k views

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 ...
Girish's user avatar
  • 101
0 votes
1 answer
245 views

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 via ...
bloodfire1004's user avatar
1 vote
3 answers
17k views

I'm trying to retrieve list items for my "Country" list through web services. This is my list: https://i.sstatic.net/158MI.png & this is my code: using System.Linq; using System.Text; using ...
lephleg's user avatar
  • 189
0 votes
1 answer
1k views

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, ...
Kevin's user avatar
  • 219
1 vote
1 answer
1k views

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 ...
Philipp Schmid's user avatar
1 vote
0 answers
461 views

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 ...
dotnetmirror.com's user avatar
5 votes
2 answers
5k views

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 that ...
Stef Heyenrath's user avatar
4 votes
1 answer
814 views

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 ...
Ole Albers's user avatar
1 vote
2 answers
1k views

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 ...
NICK's user avatar
  • 131
1 vote
1 answer
3k views

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 ...
SteveCl's user avatar
  • 323
1 vote
1 answer
824 views

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 ...
Ole Albers's user avatar
0 votes
2 answers
677 views

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 ...
AlexSSE's user avatar
  • 703
0 votes
2 answers
867 views

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 ...
Tangiest's user avatar
  • 531
6 votes
2 answers
4k views

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 ...
Ziba Leah's user avatar
  • 1,987
1 vote
0 answers
1k views

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 ...
Mansi Desai's user avatar
2 votes
3 answers
1k views

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 ...
Mohit's user avatar
  • 810
0 votes
1 answer
92 views

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 ...
user avatar
0 votes
1 answer
834 views

I've started receiving the following Sharepoint exception whenever I log a user in via Forms Authentication; Value cannot be null. at Microsoft.SharePoint.Utilities.SPUtility.FormatAccountName(...
Brian Scott's user avatar
5 votes
6 answers
16k views

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
4 answers
1k views

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 ...
ngm's user avatar
  • 1,023
5 votes
3 answers
1k views

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 ...
Jaap Vossers's user avatar
  • 5,030