Re: Programmatic Subsite Creation



I tried both ways and set the AllowUnsafeUpdates = true on the web. Strange
how I can create a top level site from anywhere, but fail with subsites.

Thanks for the info

"Nikander and Margriet Bruggeman" wrote:

> Hello,
>
> Also, make sure this code is executed within a HTTP POST, the update of the
> site database fails on a GET request.
>
> Kind regards,
> Nikander & Margriet Bruggeman
>
> > Hi,
> >
> > are you working with web parts or a web application?
> >
> > you need admin rights to create a subsite, and you (probably) need to
> > untighten your portal security trust level in web.config too.
> >
> > start by adding Full to trust in web.config and log in as an
> > administrator when running the application.
> >
> > if that doesnt help, you need to impersonate the admin user
> > programmaticly
> >
> > hope this helps
> > Anders
>
>
>
>
.