Hello to all,
I'm new to forum.
I have the following problem.
I have Sharepoint 2013 online(Office 365)/Office 2013/Visual Studio 2013.
I would like to implement a new solution for my users andconnect Outlook with Sharepoint List.
But because i'm new to Developing i start more simple with a new Project in VS 2013 in Visual C% with Console Application.
I have a custom list in Sharepoint online 2013 and i start to query from VS to get the data of the List.
My code is the following
using System;using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using ConsoleApplication1.ServiceReference1;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
TradersTrustIntranetTestDataContext dc =
new TradersTrustIntranetTestDataContext(new Uri("https://myintranet/sites/test/_vti_bin/ListData.svc"));
dc.Credentials = new NetworkCredential("myusername", "mypass", "mydomain");
var result = from d in dc.Daily
select new
{
Title = d.Title,
Description = d.Description,
};
foreach (var d in result)
Console.WriteLine(d);
}
}
}
When i start i get the following error
Can someone help me?