This question is regarding using STSADM command to create new site collection in Active Directory Account creation mode.
My setup is like this-
I have 2 virtual PCs in a Windows XP Pro SP3 host. Both VPCs are Windows Server 2003 R2. One VPC acts as the DC, DNS Server, DHCP server, has Active Directory installed and is also the Database Server.
The other VPC is the domain member and it is the IIS web server, POP/SMTP server and it has WSS 3.0 installed.
I created a new site using the GUI in Central Admin page. For creating a site collection under the newly created site, I needed to use the STSADM command line tool since it cannot be done from Central Admin page in Active Directory Account creation mode.
Thats where i got into a problem-
stsadm.exe -o createsite -url http://vivek-c5ba48dca:1111/sites/Sales -owneremail
[email protected] -sitetemplate STS#1
The format of the specified domain name is invalid. (Exception from HRESULT: 0x800704BC)
The following is the output from the SHarepoint LOG-
*
stsadm: Running createsite
9e7d Medium Initializing the configuration database connection.
95kp High Creating site http://vivek-c5ba48dca:1111/sites/Sales in content database WSS_Content_Sharepoint_1111
95kq High Creating top level site at http://vivek-c5ba48dca:1111/sites/Sales
72jz Medium Creating site: URL "/sites/Sales"
72e1 High Unable to get domain DNS or forest DNS for domain sharepointsvc.com. ErrorCode=1212
8jvc Warning #1e0046: Adding user "spsalespadmin" to OU "sharepoint_ou" in domain "sharepointsvc.com" FAILED with HRESULT -2147023684.
72k1 High Cannot create site: "http://vivek-c5ba48dca:1111/sites/Sales" for owner "@\@", Error: , 0x800704bc
8e2s Medium Unknown SPRequest error occurred. More information: 0x800704bc
95ks Critical The site /sites/Sales could not be created. The following exception occured: The format of the specified domain name is invalid. (Exception from HRESULT: 0x800704BC).
72ju High stsadm: The format of the specified domain name is invalid. (Exception from HRESULT: 0x800704BC) Callstack: at Microsoft.SharePoint.Library.SPRequest.CreateSite(Guid gApplicationId,
String bstrUrl, Int32 lZone, Guid gSiteId, Guid gDatabaseId,
String bstrDatabaseServer,
String bstrDatabaseName,
String bstrDatabaseUsername,
String bstrDatabasePassword,
String bstrTitle,
String bstrDescription, UInt32 nLCID,
String bstrWebTemplate,
String bstrOwnerLogin,
String bstrOwnerUserKey,
String bstrOwnerName,
String bstrOwnerEmail,
String bstrSecondaryContactLogin,
String bstrSecondaryContactUserKey,
String bstrSecondaryContactName,
String bstrSecondaryContactEmail, Boolean bADAccountMode, Boolean bHostHeaderIsSiteName) at Microsoft.SharePoint.Administration.SPSiteCollection.Add(SPContentDataba...
72ju High ...se database,
String siteUrl,
String title,
String description, UInt32 nLCID,
String webTemplate,
String ownerLogin,
String ownerName,
String ownerEmail,
String secondaryContactLogin,
String secondaryContactName,
String secondaryContactEmail,
String quotaTemplate,
String sscRootWebUrl, Boolean useHostHeaderAsSiteName) at Microsoft.SharePoint.Administration.SPSiteCollection.Add(String siteUrl,
String title,
String description, UInt32 nLCID,
String webTemplate,
String ownerLogin,
String ownerName,
String ownerEmail,
String secondaryContactLogin,
String secondaryContactName,
String secondaryContactEmail, Boolean useHostHeaderAsSiteName) at Microsoft.SharePoint.StsAdmin.SPCreateSite.Run(StringDictionary keyValues) at Microsoft.SharePoint.StsAdmin.SPStsAdmin.RunOperation(SPGlobalAdmi...
72ju High ...n globalAdmin,
String strOperation, StringDictionary keyValues, SPParamCollection pars)
8wsw High Now terminating ULS (STSADM.EXE, onetnative.dll)
*
Seems to me that the trouble started with this -
Unable to get domain DNS or forest DNS for domain sharepointsvc.com. ErrorCode=1212
Network connection to the sharepointsvc.com domain seems to be fine.
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsadm -o getproperty -pn ADAccountDomain
<Property Exist="Yes" Value="sharepointsvc.com" />
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsadm -o getproperty -pn ADAccountOU
<Property Exist="Yes" Value="sharepoint_ou" />
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>nslookup sharepointsvc.com
Server: vm-winsrvr2003.sharepointsvc.com
Address: 192.168.0.5
Name: sharepointsvc.com
Addresses: 192.168.0.21, 192.168.0.5
Is there any way of checking the domain connection from within Sharepoint (like using some getproperty of the STSADM tool)
Does anyone have any clue about this ? (any pointers would be very helpful)
Thanks.