Miscellaneous DebrisAvner Kashtan's Frustrations and ExultationsAnother Sharepoint Web Services rant : untyped data vs. incompletely typed data- September 6, 2007 Working with the Web Services in WSSv2 and v3 is an exercise in sheer frustration. I've written before about serious and glaring omissions in the Web Services API that Sharepoint exposes, but it's not only the things missing, it's the lack of consistency in the APIs that ARE implemented that's annoying. For most of the APIs, the return value for most methods is an XmlNode, usually documented pretty well in the SDK. It means we have to fiddle with XML to extract data, but it's not so bad. For...http://weblogs.asp.net/avnerk/archive/2007/09/06/another-sharepoint-web-services-rant-unty... Return of the GC Hole: Another one from the C++CLI trenches- September 6, 2007 A few days ago I wrote of a GC hole I accidently created in my C++CLI code (with thanks to commenter Nish for the name of the phenomenon). I had the following code snippet set inside a private function: pin_ptr<Byte> pinnedBuffer = &data0; char buffer = (char)pinnedBuffer; Because the pin_ptr went out of scope when the function ended, I had a pointer to a memory location that was quickly moved by the GC, and got me a whole buffer...http://weblogs.asp.net/avnerk/archive/2007/09/06/return-of-the-gc-hole-another-one-from-th... Windows Services, services.msc and the "This Service is marked for deletion" error.- September 5, 2007 In my current project, we have a windows service that we are developing and debugging, which involves a lot of installinguninstalling the service. One common problem when uninstalling a service is that while the uninstallation is successful, you still see the service listed in the Services console(services.msc). If you try to start it, stop it or uninstall it again (using installutil.exe or sc delete) you get an uninformative "This service has been marked for deletion". The KB...http://weblogs.asp.net/avnerk/archive/2007/09/05/windows-services-services-msc-and-the-quo... Dynamically creating a Sharepoint Web-Service proxy instance- September 3, 2007 In my current code, I find myself accessing many Sharepoint web services. In one run of code I can access 5-6 different web services on dozens of different sites, not necessarily even on the same server. Given that I find myself writing a lot of boilerplate code looking like this: using (SiteData siteDataWS = new SiteData()) siteDataWS.Credentials = CredentialsCache.DefaultNetworkCredentials; siteDataWS.Url = currentSite.ToString() + "_vti_binSiteData.asmx"; .http://weblogs.asp.net/avnerk/archive/2007/09/03/dynamically-creating-a-sharepoint-web-ser... Visual Studio help-launcher rant- September 3, 2007 Yes, I know I am far from the first to bemoan the atrocious behavior of Visual Studio 2005 when you press the F1 button, even accidently. The first time you do it - or other times, if it deems the contents sufficiently changed for some reason - you are treated to an obnoxious and uncancellable dialog saying Help is updating itself and showing an uninformative neverending progress bar. Worse yet, this window, despite being non-modal (due to running in a different process, dexplorer.exe) still...http://weblogs.asp.net/avnerk/archive/2007/09/03/visual-studio-help-launcher-rant.aspx |