-help mycommand

May 5, 2009 at 2:52 PM

I loaded the code in VS2008 , no changes to make sure I get it right.  Am I doing something wrong?

c:>stsadm -help mycommand

Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: type
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Microsoft.SharePoint.StsAdmin.SPStsAdmin.GetExtendedCommand(String type)
   at Microsoft.SharePoint.StsAdmin.SPStsAdmin.Main(String[] args)

May 6, 2009 at 12:11 AM
Make sure the DLL is in the GAC.  Ideally you want to build the solution and then install the WSP but for dev purposes the build actions should be putting the dll in the GAC for you (it's possible it's not finding gacutil.exe - check the build scripts/actions and verify that gacutil exists.