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 …
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 …
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 …
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, …
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 …
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, …
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, …
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 …
...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 …
..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 …
[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 …
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 - …
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 …
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 …
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 …
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 …
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 = …
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 …
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 …
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 - …