Posts

Showing posts with the label Visual Studio 2008

Enable Debugging in the VSeWSS with Visual Studio 2008 and MOSS 2007

Go to the application you are deploying your feature to, and open web.config and make following changes in the given sections (CustomeErrors, compilation and SafeMode sections are already there): <customErrors mode="Off" /> <compilation debug="true"… <SafeMode CallStack="true"… Now press F5 and it should start debugging your projects/features/solutions created with VSeWSS.

VSEWSS - The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate,NTLM'."

I faced this issue after installing VSeWSS (Visual Studio Extensions for Windows SharePoint Services) V1.3. O/S was Windows Server 2003 SP2 and I was trying to package my solution for SharePoint in Visual Studio 2008 when it kept failing by giving following errors: “The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate,NTLM'."" and (at times when I was trying different things) the following error: “The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate,NTLM'.” Do the following to resolve, go to (try after each step in order): 0. If you are using domain account, make sure you are connected to that domain otherwise user (against which the VSeWSS site application pool is running) will not be able to authenticate. 1. Follow this article and make sure IIS en...

Writing HttpHandler for SharePoint

I am assuming that you already have WSS/MOSS installed on your system and you are using Visual Studio 2008. 1. Download and install VSeWSS (Visual Studio Extensions for WSS) http://www.microsoft.com/downloads/en/details.aspx?FamilyID=B2C0B628-5CAB-48C1-8CAE-C34C1CCBDC0A&displaylang=en 2. Create new project and select SharePoint group on the left. Then select Empty from the templates (make sure SharePoint group of template is selected). Name the project "MyTest". (that means, this is also going be your assembly name). Select "Partial Trust" when it asks. 3. Add new class, say "MyNewHandler". 4. Inherit the new class from "System.Web.IHttpHandler". 5. Right click on the "System.Web.IHttpHandler" and click "Implement". 6. Modify your code to look like the following: public bool IsReusable { get { return false; } } public void ProcessRequest(HttpContext context) { context.Response.Writ...