Posted by Steve Pietrek on February 28, 2008
I wrote a post listing steps for debugging assemblies located in the GAC. Today I ran into an issue, when I ran Start-Run-%SYSTEMROOT%AssemblyGAC, where the folder which contains my DLL was not available. After digging around, it appears the assembly is in the GAC but isn’t in the GAC.
Anyway, I poked around Visual Studio and found an improved option.
1. Open Visual Studio
2. Open Tools-Options and navigate to the Debugging item
3. Uncheck the option “Enable Just My Code (Managed only)”
4. Select Debug-Attach to Process.
5. Select the correct w3wp process. To know the correct w3wp process, see this post.
6. Set breakpoints accordingly.
Update: Doug Ware has a similar post - “great minds think alike”. It contains a little more information and pictures. Worth checking out.
Posted in SPDev | No Comments »
Posted by Steve Pietrek on February 26, 2008
Posted in SPErrors, SPLife | No Comments »
Posted by Steve Pietrek on February 26, 2008
One of my co-workers wanted a quick way to export a SPS 2003 document library and import the results into a MOSS 2007 document library. After a little research, found SPIEFolder and it works great.
http://www.codeplex.com/SPIEFolder
Allows you to either Import a file system folder (And all files and subfolders) into a SharePoint Document Library, and also export a SharePoint Document Library to the file system for WSS 2.0/SPS2003 or WSS 3.0/MOSS 2007. This tool completely replicates the document libraries folder hierarchy to the file system when exporting, and replicates the folder hierarchy from the file system to the document library when importing.
Posted in SPTools | No Comments »
Posted by Steve Pietrek on February 18, 2008
Today I was looking to roll my own site map. Nothing special - just wanted to display the content in a SPTreeView. The code is fairly basic:
...
PortalSiteMapProvider portalSiteMap = new PortalSiteMapProvider();
portalSiteMap.IncludePages = PortalSiteMapProvider.IncludeOption.Always;
portalSiteMap.IncludeHeadings = false;
portalSiteMap.EncodeOutput = true;
…
Read the rest of this entry »
Posted in SPErrors | No Comments »
Posted by Steve Pietrek on February 18, 2008
I have been working on a custom application.master file for a client. Things look good but when I attempted to add a workflow to a list, I received the following error:
Unable to validate data. at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)
RESOLUTION: Duh! I knew this was an issue but forgot to remove it. The problem is I had the Search box included in application.master - a no-no. After removing it from the application.master, things seem to be working now - at least I was able to add a workflow. Next step is to create a HTTPModule which will automatically switch the application.master for _layouts pages. I’ll blog about this when I am complete.
Posted in SPErrors | No Comments »
Posted by Steve Pietrek on February 13, 2008
Today I mysteriously lost over 8GB of disk space since Monday. They say size doesn’t matter but this is crazy… 8+ GB of SharePoint logs!!!!

Nothing in the Event Viewer shows anything out of the ordinary. The only thing I can think of is I have not been shutting down my VM recently. I just put the host into hibernate. Yesterday, I noticed my time was off by 9 hours so I reset the time in the guest. Bet I threw SharePoint for a loop doing that.
Bottom line: If you use VMware, I would suggest at least suspending the VM before hibernating the host. Weird!
Posted in SPErrors | No Comments »
Posted by Steve Pietrek on February 10, 2008
Mike Gannoti has just purchased a new HP XDX. Seems perfect for SharePoint developers - except for carrying it around.
Oh my!
Link
Posted in SPGeneral | No Comments »
Posted by Steve Pietrek on February 8, 2008
I like CAML Query Builder. I use it often. Highly recommended. By specifying a URL and selecting a list, you can quickly build out your CAML query. There are a few things you need to be aware of however:
1. By default, the CAML query contains <Query>. If you include <Query>, the query will return all items in the list. To apply the query, remove <Query> and </Query>
<Query><OrderBy><FieldRef Name=’Sequence’/></OrderBy></Query>
2. The copy to clipboard includes double quotes which results in the error: CS1002: ; expected:
<OrderBy><FieldRef Name="Sequence"/></OrderBy>
To fix, just replace the double quotes with single quotes
<Query><OrderBy><FieldRef Name='Sequence'/></OrderBy></Query>
I’m sure these items are documented - I just missed them.
Update 1 (2/8/2008): Looks like Àlex Peláez ran into the same issue.
Posted in SPTools | No Comments »
Posted by Steve Pietrek on February 7, 2008
The February 2008 Cincinnati SharePoint User Group meeting will take place on 2/11 at 6:00 pm at MAX Technical Training in Mason. Check out the website. There are two sessions:
- SharePoint integrating with Document Management, Caleb Miller, Tahoe Partners
- Real World SharePoint Deployments, Brad Young, ProSource Corporation
Posted in SPUserGroups | No Comments »