We help IT Professionals succeed at work.
Get Started

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

Last Modified: 2012-06-27

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?
Watch Question
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE