voltje
Legacy Member
Weet niet of iemand hier kan helpen maar toch proberen.
Mijn code wil niet aanmelden op de sharepoint server
ik krijg steeds unauthorized en login en pass zijn juist...
try
{
ClientContext context = new ClientContext(server);
context.AuthenticationMode = ClientAuthenticationMode.FormsAuthentication;
context.FormsAuthenticationLoginInfo = new FormsAuthenticationLoginInfo(login, pass);
Web web = context.Web;
context.Load(web, w => w.Created);
context.ExecuteQuery();
DateTime date = web.Created;
MessageBox.Show(date.ToShortDateString());
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
Mijn code wil niet aanmelden op de sharepoint server
ik krijg steeds unauthorized en login en pass zijn juist...
try
{
ClientContext context = new ClientContext(server);
context.AuthenticationMode = ClientAuthenticationMode.FormsAuthentication;
context.FormsAuthenticationLoginInfo = new FormsAuthenticationLoginInfo(login, pass);
Web web = context.Web;
context.Load(web, w => w.Created);
context.ExecuteQuery();
DateTime date = web.Created;
MessageBox.Show(date.ToShortDateString());
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}