Hi
The remote server returned an error:(500) in SharePoint 2013
exception throwing on this line clientContext.Execute Query();
thanks
Rajkumar.R
Hi
The remote server returned an error:(500) in SharePoint 2013
exception throwing on this line clientContext.Execute Query();
thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manesh GolekarRank #5,709 · 289 reputationPosted Aug 13, 2014, 3:43 AM EDT
namespace CSOMContentTypes
Manesh GolekarRank #5,709 · 289 reputationPosted Aug 13, 2014, 3:19 AM EDT
Rajkumar R14 reputationPosted Aug 13, 2014, 3:27 AM EDT
namespace CSOMContentTypes
{
class Program
{
static void Main(string[] args)
{
ClientContext clientContext = new ClientContext("http://cph-spsdev27-d:6000");
// Get the SharePoint web
Web web = clientContext.Web;
ContentTypeCollection ctColl = web.ContentTypes;
clientContext.Load(ctColl, coll => coll.Include(contentType => contentType.Name));
clientContext.ExecuteQuery();
foreach (ContentType ct in ctColl)
{
Console.WriteLine(ct.Name);
}
Console.ReadLine();
}
}
}
Rajkumar R14 reputationPosted Aug 13, 2014, 7:26 PM EDT
Thanks Manesh its working for me
Do you have idea how to customize upload aspx page using CSOM
Manesh GolekarRank #5,709 · 289 reputationPosted Aug 15, 2014, 12:26 AM EDT
Could you describe more in details about expected functionality ..?
Rajkumar R14 reputationPosted Aug 18, 2014, 4:06 AM EDT
Hi Manesh
I have to show the cascading dropdown on the upload aspx page .Based on the content type the Filtered value will show the second column. Please refer the attached file. How to do this SharePoint 2013 CSOM model
Manesh GolekarRank #5,709 · 289 reputationPosted Aug 18, 2014, 12:52 PM EDT
Content Type Activity Area Category
Document Economy Inquiry
Document Economy Service
etc.
2. ON your form (image : Content type) Add button upload file - and open your custom upload
in model pop up (/customupload.aspx?CT=Document) pass your content type as Query param
3. Bind first drop down on load by querying to your master list and retrieve all ActivityArea
4. Based on selection of Activity Area - again query on master list and pull respective
categories
(http://www.c-sharpcorner.com/UploadFile/0e18a8/retrieve-items-from-a-list-in-sharepoint-2013-using-csom-jav/)
5. Upload Control - Add file
( for upload code this should help :- http://readersharepoint.blogspot.com/2014/07/add-attachment-to-list-using-jquery-and.html)
6. Save Data in Doc lib with (Content Type , Activity Area , Category and Selected files )