Step 6. Receive "Value cannot be null"

Aug 7, 2008 at 1:56 AM
Edited Aug 7, 2008 at 2:04 AM

Did I miss a something?

Environment follows:

Windows Server 2008 with .NET 3.5 SP1 (beta)
Visual Studio 2008 V 9.0.21022.8 RTM
Microsoft SQL Server 2005
EDITED: only sdms currently allows anonymous access
http://dev.global-webnet.net/sdms  internet access (has webpart with hardware info if required)

Other....
Visual Studio 2005
Windows SDK 6.0a and 6.1
.NET Framework SDK 2.0
Visual Studio 2005 SDK
Visual Studio 2005 Tools for Applications SDK

------ Build started: Project: HRManagement, Configuration: Debug Any CPU ------
HRManagement -> B:\Downloads\2008\SharePointServer\Codeplex\patterns_&_practices_SharePoint_Guidance\Training Management\HRManagement\bin\Debug\HRManagement.dll
------ Build started: Project: AccountingManagement, Configuration: Debug Any CPU ------
AccountingManagement -> B:\Downloads\2008\SharePointServer\Codeplex\patterns_&_practices_SharePoint_Guidance\Training Management\AccountingManagement\bin\Debug\AccountingManagement.dll
------ Build started: Project: TrainingManagement.RegistrationApproval, Configuration: Debug Any CPU ------
C:\Windows\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:"B:\Downloads\2008\SharePointServer\Codeplex\patterns_&_practices_SharePoint_Guidance\Training Management\AccountingManagement\bin\Debug\AccountingManagement.dll" /reference:"B:\Downloads\2008\SharePointServer\Codeplex\patterns_&_practices_SharePoint_Guidance\Training Management\HRManagement\bin\Debug\HRManagement.dll" /reference:"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\Microsoft.Office.Workflow.Tasks.dll" /reference:"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\Microsoft.SharePoint.dll" /reference:"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\Microsoft.SharePoint.Search.dll" /reference:"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\Microsoft.SharePoint.WorkflowActions.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Design.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.Design.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Transactions.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Web.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Web.Services.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.Workflow.Activities.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.Workflow.ComponentModel.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.Workflow.Runtime.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /debug+ /debug:full /filealign:512 /keyfile:TrainingManagement.snk /optimize- /out:obj\Debug\TrainingManagement.RegistrationApproval.dll /target:library Constants.cs Properties\AssemblyInfo.cs Properties\Settings.Designer.cs RegistrationApprovalWorkflow.cs RegistrationApprovalWorkflow.Designer.cs C:\Users\Administrator.GWNSERVER\AppData\Local\Temp\opr19_7p.cs

Compile complete -- 0 errors, 0 warnings
TrainingManagement.RegistrationApproval -> B:\Downloads\2008\SharePointServer\Codeplex\patterns_&_practices_SharePoint_Guidance\Training Management\TrainingManagement.RegistrationApprovalWorkflow\bin\Debug\TrainingManagement.RegistrationApproval.dll
------ Deploy started: Project: TrainingManagement.RegistrationApproval, Configuration: Debug Any CPU ------
Successfully installed this assembly into the global assembly cache: TrainingManagement.RegistrationApproval.dll.
Successfully restarted Internet Information Services (IIS).
Successfully copied workflow.xml to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\FEATURES\TrainingManagement.RegistrationApproval\workflow.xml.
Successfully copied feature.xml to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\FEATURES\TrainingManagement.RegistrationApproval\feature.xml.
Failed to install the workflow template to Microsoft Office SharePoint Server.
Value cannot be null.
Parameter name: uriString
Failed to deploy the workflow template to Microsoft Office SharePoint Server.
========== Build: 3 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

Aug 7, 2008 at 7:17 AM

This error comes up when the SharePoint url is not specified in the SharePoint Debug Settings of a workflow project.

Please note step 5 in the installation instructions.

If you right click on the workflow project and select "SharePoint Debug Settings..." you will see a dialog that will allow you to specify the url.

Aug 7, 2008 at 12:55 PM
Here is a link to a wink (flash) demo of the issue, I started recording after successfully complying with the steps for the TrainingManagement project.  http://www.global-webnet.net/flash/demo/SharePointInstall.htm 
Aug 7, 2008 at 9:55 PM
You need to specify the SharePoint url in the "SharePoint Debug Settings" and not the C# Project Settings. Sorry for the confusion.
Aug 8, 2008 at 1:03 AM

Lacking any SharePoint experience, and a common core of knowledge, I made a number of bad assumptions, I also learn alot of things and Blog on my adventures HERE.   Perhaps there will be value that you can gleen from it as it comes from a Newbies perspective (not sure if this is part of your target audience).   I also provide a screen shot using the Post-Build event to update the GAC with the applicable DLLs.

Suggestion - perhaps you could reword 5, e.g. 

5.  In Visual Studio, right click on the Training Management Registration Approval workflow project and specify the same SharePoint URL to deploy the workflow to in the "Target Site" setting of the projects Properties. (Do not automatically associate the workflow.)

Aug 11, 2008 at 5:27 PM
Thanks BillKrat for your suggestions. We are definitely targeting people who are new to SharePoint like yourself. We're continuing to refine our guidance and polish it up so that the start up experience is easy and painless.