Bits and Pieces

Bits and Pieces

Tools and Code by Avner Shahar-Kashtan

Home Archive Categories Tags Blog Tools & Projects About Me RSS
  • Conditional Publication

    2005-04-02 Avner Shahar-Kashtan Miscellaneous Debris
    This is a nice trick I ran into when going over the sourcecode for the XML-RPC.NET library: #if (DEBUG) public #endif void Serialize(...) This lets you run your unit tests when developing, but remember to set your methods to private when …
  • A man's home (network) is his Castle

    2005-01-13 Avner Shahar-Kashtan Miscellaneous Debris
    The Longhorn Identity System (codename "Castle") is a long-awaited feature. It replaces the ancient Workgroup model in home Windows installation with something that's more lightweight than a full-blown Active Directory. Been hoping for …
  • IBF Debugging

    2004-12-28 Avner Shahar-Kashtan Miscellaneous Debris
    The hour is late, so I will be brief. If you want to debug an Office 2003 IBF solution, you must have C++ installed as part of your VS.NET 2003 installation. If you click on "Build Solution and Execute Action" and see the build succeed but …
  • Creating or customizing Field Types

    2004-12-10 Avner Shahar-Kashtan Miscellaneous Debris
    Customizing SPS is sometimes a hassle. I'm not talking about customizing graphics or Frontpaging the pages into submission - I'm talking about extending the object model. Creating new templates for sites and lists, and so on. It's a hassle, …
  • Quick Tip: Erasing many Portal Areas.

    2004-12-08 Avner Shahar-Kashtan Miscellaneous Debris
    Erasing a Portal Area via the interface is a bit annoying - you go to the Manage Portal Site to get the Area Tree, right-click and Delete, then you have to confirm again, wait 10-15 seconds, then press another button to get back to the …
  • Creating or customizing Field Types

    2004-12-07 Avner Shahar-Kashtan Miscellaneous Debris
    Customizing SPS is sometimes a hassle. I'm not talking about customizing graphics or Frontpaging the pages into submission - I'm talking about extending the object model. Creating new templates for sites and lists, and so on. It's a hassle, …
  • SPS and Renaming AD Accounts

    2004-12-06 Avner Shahar-Kashtan Miscellaneous Debris
    We've been seeing some strange behaviour after we rename a group or user in the Active Directory: When we go to the Site Settings to define site-wide permissions, the old username is still displayed. If we remove it and then add it again, …
  • Web Part Versioning

    2004-12-04 Avner Shahar-Kashtan Miscellaneous Debris
    If you have a web-part on your development machine that occasionaly decides to die - give you Not Marked As Safe errors even though it is, and requires removal and readding for it to work (with no other steps necessary), you may have a …
  • Some thoughts on SPS Content Indexing [3/3]

    2004-11-29 Avner Shahar-Kashtan Miscellaneous Debris
    ...and just one more. Various indexing problems I've encountered. "Cannot create the file because it already exists - 0x800700B7" This error was reported in the gatherer log for my Portal_Content index. It occured several times - once for …
  • Some thoughts on SPS Content Indexing [2/3]

    2004-11-29 Avner Shahar-Kashtan Miscellaneous Debris
    ..and we're back. Enabling multiple Site Directories By default, a Sharepoint installation comes with a Site Directory where WSS sites are listed and found. Each Site Directory holds a custom list called Sites which contains metadata about …
  • Some thoughts on SPS Content Indexing [1/3]

    2004-11-29 Avner Shahar-Kashtan Miscellaneous Debris
    [Warning: I only have Hebrew SPS installations around, so if I make some mistakes when translating the menu options, try to guess what I meant :] Advanced Search Mode Most of the features mentioned require Sharepoint to be in Advanced …
  • Crash and Burn

    2004-11-26 Avner Shahar-Kashtan Miscellaneous Debris
    An annoying bug that had one developer here tearing his hair out (our would have, had he any) - an ASCX user-control that has been working fine for a few weeks started to cause strange Visual Studio crashes or hangs. The project compiles - …
  • Object Model Security

    2004-10-23 Avner Shahar-Kashtan Miscellaneous Debris
    In a comment to my post here, Jim asked why he can't access the WSS object model in his code, even though it's running under the Sharepoint context. Since a month has passed and I can't re-enable comments on that post, I'll just answer …
  • Double Hop and ASP.NET - a workaround.

    2004-09-22 Avner Shahar-Kashtan Miscellaneous Debris
    Many people have stumbled across the IIS Double-Hop issue when trying to access Active Directory information on an ASP.NET page. In short - when we access an ASP.NET page, IIS can impersonate our user credentials for code execution (if set …
  • Binding to Sharepoint List Items (Part 2 of 2)

    2004-09-22 Avner Shahar-Kashtan Miscellaneous Debris
    In the first part of the post we went over binding an SPListItemCollection to a DataGrid for quick'n'dirty binding of Sharepoint list data. The problem with this approach is that extensibility is a problem. To paraphrase the specific …
  • Binding to Sharepoint List Items (Part 1 of 2)

    2004-09-22 Avner Shahar-Kashtan Miscellaneous Debris
    Databinding is cool. It lets us connect our front-end GUI elements (say, a DataGrid) to our back-end data elements (a DataSet, for instance) without the drudgery of synchronizing the two all the time. True, ASP.NET Datagrids are …
  • Question: Singleton Inheritance

    2004-09-14 Avner Shahar-Kashtan Miscellaneous Debris
    I have this class, that implements the singleton pattern, and a subclass. public class Base { public static Base Instance; static Base() { System.Type myType = MethodInfo.GetCurrentMethod().DeclaringType; Instance = …
  • How to get the current SPS Area in a Web-Part

    2004-09-13 Avner Shahar-Kashtan Miscellaneous Debris
    When we write a WebPart or WebControl that resides in a SPS Area, we will want to know at runtime which area we reside in. This, surprisingly enough, is not trivial. It's not even easy. In fact, it's downright obscure You can easily get the …
  • VB Build Events

    2004-09-03 Avner Shahar-Kashtan Miscellaneous Debris
    Having found myself developing in VB.NET alongside C# recently, I was rather annoyed at the lack of pre- and post-build-events for VB projects in VS.NET2003. A quick check of the DTE automation model showed that while the .VBPROJ file …
  • PortalRight - all wrong.

    2004-08-23 Avner Shahar-Kashtan Miscellaneous Debris
    A followup to this post: The PortalRight enumeration defined in Microsoft.Sharepoint.Portal.Security is, for some reason, derived from UInt32 rather than Int32. You can see this in the Object Browser when in a VB.NET project. This anomaly - …
← Newer
8 / 10
Older →

Bits and Pieces — Tools and Code by Avner Shahar-Kashtan