All of a sudden, stsadm has stopped working, crashing on all commands it is run with (even -help!)
> stsadm.exe -help Unhandled Exception: System.ArgumentNullException: Value cannot be null. Parameter name: path at System.IO.DirectoryInfo..ctor(String path) at Microsoft.SharePoint.StsAdmin.SPStsAdmin.EnsureExtendedOperationMap() at Microsoft.SharePoint.StsAdmin.SPStsAdmin.EnsureFullOperationMap() at Microsoft.SharePoint.StsAdmin.SPStsAdmin.LookupOperationName(String strOperation) at Microsoft.SharePoint.StsAdmin.SPStsAdmin.Main(String args)
I'm baffled as to why. The only significant thing to change on the server between yesterday and today was the installation of the Citrix Web Interface for SharePoint webparts.
UPDATE: I also receive the following error when starting Central Administration from the Start Menu (Start -> Microsoft Office Server -> SharePoint 3.0 Central Administration)
A failure occurred when accessing the HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\Web Server Extensions\12.0\WSS registry key. Repair this product by selecting it from the Add/Remove Programs menu.
If I access Central Administration via a browser and typing in the URL (e.g. http://intranet:8080), it works fine.
MORE UPDATE: I dug into stsadm a bit by disassembling with .NET Reflector. Turns out the line it is bailing on is:
FileInfo files = new DirectoryInfo(SPUtility.GetGenericSetupPath("config")).GetFiles("stsadmcommands.*.xml");
The reason being, I believe, because
SPUtility.GetGenericSetupPath("config") is returning null. I set up a test console app and sure enough,
SPUtility.GetGenericSetupPath("config") returns null. So something is obviously severely hosed somewhere.
I noticed when running the test console app that I get the following output:
A first chance exception of type 'System.DllNotFoundException' occurred in Microsoft.SharePoint.dll
which doesn't sound good. So I ask Visual Studio to break on all exceptions, even handled ones, and the exception is as follows:
System.DllNotFoundException: Unable to load DLL 'onetnative.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Note: I've started a separate question regarding this onetnative.dll problem...
Has UAC been enabled and you are not running your command prompt as an Administrator perhaps?
As far as I can trace it back, this was caused by an installation of the wrong version of Microsoft J#.
J# is a pre-requisite of the Citrix Web Interface for SharePoint webparts. I installed the 32bit version mistakenly, then uninstalled and installed the 64bit version. I have a hunch (based on a good bit of testing, but not 100% verified) that this caused .NET/CLR applications to start looking in the 32bit node of the registry rather than 64bit.
(albeit with null returned from the method.) However I notice a message in the output window: A first chance exception of type 'System.DllNotFoundException' occurred in Microsoft.SharePoint.dll So if I get Visual Studio to break on all exceptions, even handled ones, the exception is as follows: System.DllNotFoundException: Unable to load DLL 'onetnative.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) I've checked and onetnative.dll does exist in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN.
After following Spence Harbar's Rational Guide to implementing SharePoint Server 2010 User Profile Synchronization (http://www.harbar.net/articles/sp2010ups.aspx) exactly (and having it work several... is in the right groups with the right permissions. Thoughts? UPDATE The SQL Server now has the following error, repeatedly: Event 17806 SSPI handshake failed with error code 0x8009030c, state 14 while...) the synchronization service. The original errors are back, though BOTH the FIM services are started on the APP server. UPDATE From the ULS, this seems to be the error that is my plague. 07/09/2010 13:09
and it produces the same error message. I’ve googled a lot but can’t seem to get anywhere, they all say "add in the pages section" but it’s already there? Update 1 I've been looking through the SharePoint..., PublicKeyToken=71e9bce111e9429c" /> </tagMapping> </pages> However I don’t get the error when I select an old web application to change provider. I’ve even copied the entire... (0x17C4) 0x1F00 Windows SharePoint Services Topology 8gp8 Medium Adding web config node - Path - configuration/configSections
I have some code that creates a SharePoint site. When the code runs as part of the solution it works. However, when I run it as a unit test I get the following error: The test adapter 'WebHostAdapter' threw an exception while running test 'CreateSiteTest'. The web site could not be configured correctly; getting ASP.NET process information failed. Requesting 'http://localhost... the following tags on my test: [TestMethod()] [HostType("ASP.Net")] [UrlToTest("http://localhost/SitePages/Home.aspx")] Any idea why I am getting this error?
` -owneremail "<user email>" ` -sitetemplate "STS#1" ` -ownerlogin "<domain\user.name>" (Sidenote: I'm in Powershell with an alias set up for stsadm.) When I run the command, at the Powershell prompt I get only the following output: User cannot be found. If I look into the ULS logs, I see the following related logs (truncated a bit for clarity): Creating site http... to contact the global catalog server If I create a site collection through Central Administration, using the same <domain\user.name> credentials, the site collection is created fine. Any ideas
:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN\PSCDiagnostics_7_22_2010_12_19_7_246_77_9654224.log If I look in the log, the following stack trace is shown: 07/22/2010 12:19:14... accessing the HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\Web Server Extensions\12.0\WSS registry key. Repair this product by selecting it from the Add/Remove Programs menu...Something has happened to my SharePoint install. If I try to run the SharePoint Products and Technologies Configuration Wizard I get the following error pop up: An exception of type
); Update: I've built a C# console app which creates all lists / lookup columns / content types and add the lookup column to corresponding content type. Result: same thing, same magic number 13. Anyone interested in seeing and running the script send me an email at: ovulex [ at ] yahoo.com. I will report this to Microsoft. ScreenShot http://img63.imageshack.us/img63/6412/magicnumber13.png ... = list; SPQuery query = new SPQuery(view); System.Text.StringBuilder sbViewFields = new System.Text.StringBuilder(); // all fields from view foreach (string field in view.ViewFields
I have this (an attempt to solve the task): <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes.../WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage... is: How do I write the XSLT to calculate and show the sum of all values in the "Distance" column in a Data View Web Part? The column might have empty values (does not have empty values now by the way
I'm writing some code against the search API in SharePoint 2007, and am seeing some interesting behaviour. I'm using the KeywordQuery 'model' rather than FullTextSqlQuery, since this matches the advanced search form our client wants. I'm using the following code to execute the search - this builds a keyword search query in the same format as the OOTB web parts: ResultTableCollection...; resultTables = keywordQuery.Execute(); } After this, I load into a DataTable and eventually get XML to transform. Currently I'm using the default XSL from the CoreResultsWebPart