Browse by Tags

Sorry, but there are no more tags available to filter with.
Build Scripts for a SharePoint Solution
20 March 09 06:53 PM | Blogging about SharePoint: Posts
Body: I thought it would be instructive to describe how I build and deploy a SharePoint solution that I have built in Visual Studio 2008. I put this process together before I was aware of WSPBuilder, and probably before WSPBuilder was as popular and mature as it is now. That means that I created my solution manifest and my diamond directive file manually. It also means that although I use the structure of the 12 hive in my solution, I don't do it in quite the same way that you would with WSPBuilder . I also find that the out of the box VS2008 / VSeWSS 1.2 support for workflow development doesn't do solutions in the way I want. I set up my Visual Studio project to do the following on every build ( side note: additional build modes that have different behaviors are sometimes desired - perhaps I'll set that up for my next project). As background, note that I am working in a virtual machine that has MOSS and Visual Studio installed locally. The Post-Build script in Visual Studio 2008 for my project: time /T cd ..\..\deployment call RollbackDeployment.bat http://%COMPUTERNAME%/pathToSiteCollection <solutionName> echo end of rollback time /T copy $(TargetPath) $(ProjectDir)WebSolutionPackage echo start install call Install...
Corrupted Workflow Association?
16 February 09 06:20 PM | Blogging about SharePoint: Posts
Body: I prefer to blog about solutions rather than problems, but lately I've been running into more of the later... Here's one. I have a list with a workflow association, and when I try to remove the workflow association in my development environment, SQL Server goes nuts and eats up all the CPU. Interactive performance degrades and the only thing I can do is restart the SQL Server service. My workaround at this point is just to rename the workflow association to include the word "Bad" in the name, so I know not to try to delete it again. I suspect the only way to fix this is to go into the content database and do some table editing directly, but that is a strictly forbidden action unless under the supervision of Microsoft Support, and it's not worth a call to them at this point. Though if anyone has seen this happen before or has any idea why it happens and how a workflow association can "go bad", I'd like to hear about it. --Michael Category: SharePoint Development Published: 2/16/2009 3:20 PM Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
BDC Business Data Column - Can you limit the rows updated?
16 February 09 05:52 PM | Blogging about SharePoint: Posts
Body: I've just posted a question on the MSDN forums as follows: I have a Task list that has two content types that inherit from Workflow Task. Let's call them CT1 and CT2. CT2 has a Business Data Column while the others do not. This Task list can contain several thousand records, though the number of active tasks at any given time is small (e.g. 20). The Business Data Column gets its data from a web service. I have a view that displays only the active tasks, and includes the business data column in the columns displayed. When I click on the update link (the circular green arrows at the top of the business data column), the subsequent pages warns that it will update ALL items in the list, not just the ones in the current view. Is it possible to restrict the update to only the items in the view? I posted that at http://social.msdn.microsoft.com/Forums/en-US/sharepointbdc/thread/fae084a3-0fdf-4951-a8f9-d0229a4b0a83 . In my scenario, updating only a few records is perfectly reasonable, and the time that it would take to update all records would be enough to make the users unhappy. In my scenario, a user might want to run the update several times a day, and really only cares about making sure they have the latest data for a very...
Twitter ROI == Minutes! AKA Better CAML Intellisense
16 February 09 12:32 AM | Blogging about SharePoint: Posts
Body: So I've just today gotten on Twitter . First thing I did was to start following a bunch of SharePointy tweeters, and some Magenicons (Magenic Consultants). Andrew Connell's most recent tweet is a link to one from John Holliday. He has a package to make your CAML intellisense RADICALLY better. Check it out here: http://johnholliday.net/post/2009/01/18/Feed-your-CAML-some-IntelliSense-so-it-doesnt-bite-you-in-the-you-know-what!.aspx --Michael Category: SharePoint Development Published: 2/15/2009 9:32 PM Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Debug XOML Bogus - why?
16 February 09 12:15 AM | Blogging about SharePoint: Posts
Body: On Friday, I was debugging a SharePoint workflow that I built in Visual Studio 2008. When I ran it, then stepped through the running workflow in the debugger, the designer view of the running XOML did NOT match the designer view of the workflow. In fact, the "live" XOML that was generated by the debugger was a visualization of an old build of my codebase. WTF? In particular, I had a parallel activity in my workflow, with 5 branches. In my current build, I had commented out branches 2-5, and renamed all the activities in branch 1. When my code ran, I could tell by the messages I was writing to the history list that the current version of my workflow was indeed running. But when I stepped into it, the "live" XOML designer view that the debugger created had all 5 branches of parallel activity enabled, and branch 1 had all the old names. How is that even possible? Michael Category: SharePoint Development Published: 2/15/2009 9:15 PM Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks