Link to home
Start Free TrialLog in
Avatar of ThatSharepointGuy
ThatSharepointGuyFlag for Japan

asked on

Error: "The site <sitename> could not be found in the Web application SPWebApplication Name=MOSS Parent=SPWebService"

Greetings.

I created a blank site collection, by using the following command:
>stsadm -o createsite -url "http://server/sitecollection" -owneremail "myemail@mail.com" -ownerlogin domain\account -sitetemplate STS#1 -title "Site Collection"

Operation completed successfully!

And then I try to create a sub site, by using the following command:
stsadm -o createweb -url "http://server/sitecollection/site"  -sitetemplate SPSNHOME -title "Site" -unique

And I receive the following error:
The site http://server/sitecollection/site could not be found in the Web application SPWebApplication Name=MOSS Parent=SPWebService.

What might be causing this?
I want the Site to be a publishing news site, so I enabled the Publishing features via command line...yet every time I try to create this site under the site collection, I get this error.

In my Server Manager "Application" even log, i see this:
Event log message was: 'Failed to initialize some site properties for Web at Url: 'http://server/sitecollection''. Exception was: 'Microsoft.SharePoint.SPException: List does not exist

The page you selected contains a list that does not exist.  It may have been deleted by another user. ---> System.Runtime.InteropServices.COMException (0x81020026): List does not exist

What "list"?  I created the Blank site collection, and it is indeed Blank...If i go to the page, i get a "page not found" error, which is what is supposed to happen, I assume?
ASKER CERTIFIED SOLUTION
Avatar of EagleUK
EagleUK

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ThatSharepointGuy

ASKER

Eagle,

Worked perfectly!  Thanks for catching that!