Questions tagged [c-sharp]

C# is one of the programming languages designed by Microsoft for the Common Language Infrastructure.

Filter by
Sorted by
Tagged with
1
vote
0answers
706 views

Cannot invoke method or retrieve property from null object. Object returned by the following call stack is null. \“File\r\n\”

I am trying to edit an existing page with this code. When I am setting a publishComment it is throwing this exception. item["Title"] = pageTitle; item["PublishingPageContent"] = pageContent; item....
1
vote
3answers
2k views

Add resource assignment work by day

For a few days I'm trying to write the assignment progress for a specific task for a specific date. For example: I'm able to set the overall progress of the task but not the actual work that resource ...
0
votes
1answer
146 views

getting all AD groups and users of a site collection

Hello everybody I am quite new to the Sharepoint, I am trying to get all the AD groups who have permissions on a sitecollection. I am able to get all the SPgroups and users using the code below in my ...