Monthly Archives: April 2013

Creating WebReuest with Credentials for SharePoint

using System.Net; using System.IO; WebRequest mywebReq; WebResponse mywebResp; StreamReader sr; string strPageHtmlContent; mywebReq = WebRequest.Create(“http://yoursharepointsite”); mywebReq.PreAuthenticate = true; /************** Use this*************************/ NetworkCredential networkCredential = new NetworkCredential(“yourUserName”, “yourPassword”); mywebReq.Credentials = networkCredential; /**************************************************/ /**************Or use this************************* mywebReq.Credentials = CredentialCache.DefaultCredentials; **************************************************/ mywebResp = … Continue reading

Posted in SharePoint 2010, Visual Studio 2010 | Leave a comment

Unexpected error on server associating the workflow

Problem: Received following error message when trying to publish a SPD workflow: “Errors were found when compiling the workflow. The workflow files were saved but cannot be run.” “Unexpected error on server associating the workflow” Resolutions: Go to your SharePoint … Continue reading

Posted in SharePoint 2010, SharePoint Designer 2010 | Leave a comment