Buy Lipitor Without Prescription, I’ve had the chance to do some SharePoint development and it’s been an experience for sure! Specifically, I’ve been trying to write a custom HTTP handler. This was much more difficult than I expected. I’m not familiar with the Visual Studio extensions for SharePoint, so I was writing and deploying the code pretty manually.
What I ended up doing, for simplicity, was create the entire source file in a single ashx file. I don’t even register the handler, so it’s really just invoked like any other URL, using an HTTP GET request. I’m not sure that needed to be an ashx file, but there are no ASP.NET pieces here so it seems cleaner. I use the Assembly tag to reference assemblies that I need, then move straight to the using statements, and then to my class definition. No code-behind – all in the ashx. Again, I’m not sure that this was needed, but it was easier to manage. I couldn’t do any debugging, and I was manually deploying.
I copied the file to the c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\##\TEMPLATE\LAYOUTS, then created a subfolder for my code. Every time I hit the page, I got a “Runtime Error” message. I never did find a way to see the underlying error, even with changes to Web.config to turn off custom errors. The only thing I can think of, is that there is another Web.config file at a different level that overrode those settings since even an iisreset didn’t get things working. Once I got compilation working though, you’d better believe I had a try/catch surrounding everything so I’d know what was going on.
To reference files in the LAYOUTS folder, I just used http://MYHOST/sites/_layouts/MYFOLDER/MYFILE.ashx. I discovered that I could link to images, XAP files (for Silverlight) or whatever else for ease of deployment with no document libraries involved.
I wasn’t able to reference custom libraries, but I didn’t have a real need so I didn’t try very hard. I had considered moving my code in compiled form via a DLL, but I ended up merging it all into the uncompiled ashx file and doing a file copy.
The final step was interacting with the SharePoint instance itself. The SPContext.Current reference was null. Even passing in the HttpContext object it failed. What I ended up doing was just passing in the host name of the machine I was working on. It’s a pain and would need changing on a new deployment, but it’s a pretty small change, and since it’s the code’s deployed as source, you don’t need to recompile.
In the end, I had what I needed. I realized, afterwards, some things that would have made things better, but the lack of runtime error support was awful. I didn’t know if my code failed or if it didn’t even compile – it looked the same either way. Finally getting the handler in place and doing its job is a wonderful feeling. Now my next SharePoint experience will have a little more knowledge behind it.. Lipitor reviews. Lipitor samples. Lipitor without prescription. Lipitor blogs. Lipitor duration. Lipitor results. Rx free Lipitor. Lipitor images. Lipitor photos. Cheap Lipitor. Lipitor brand name. Low dose Lipitor. Canada, mexico, india. Lipitor forum. Where can i cheapest Lipitor online. Buying Lipitor online over the counter. Purchase Lipitor. Generic Lipitor. Buy Lipitor without a prescription. Where can i order Lipitor without prescription. Lipitor from mexico. Lipitor trusted pharmacy reviews. Herbal Lipitor. Lipitor overnight. Lipitor natural. About Lipitor. Real brand Lipitor online. Lipitor wiki. Lipitor without a prescription. Buy Lipitor online no prescription.
Similar posts: Periactin For Sale. Buy Lumigan Without Prescription. Buy Hydrochlorothiazide Without Prescription. Buy Spiriva Without Prescription. Inderal For Sale. Temovate Cream used for. Online buying Betnovate hcl. Amikacin price. Buy Inderal without prescription. Cephalexin without prescription.
Trackbacks from: Buy Lipitor Without Prescription. Buy Lipitor Without Prescription. Buy Lipitor Without Prescription. Buy Lipitor Without Prescription. Buy Lipitor Without Prescription. Comprar en línea Lipitor, comprar Lipitor baratos. Ordering Lipitor online. Lipitor duration. Lipitor mg. Lipitor from canadian pharmacy.
Posted Friday, November 13th, 2009 at 4:52 pm by Arian Kulp