Posts

Showing posts with the label VSeWSS

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.

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...