Re: Programmatic Subsite Creation



I working with a webpart and have I tried impersonation of the admin, full
trust.

I ended doing a work around by creating a site template for the top level
site with a webpart the generates all the subsites. Not quite how I wanted
to do this, but it's a one time deal and it works.

Thanks for your help

"anders.rask@xxxxxxxxx" wrote:

> 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
>
>
.



Relevant Pages

  • Re: Handling Sysads resignation/termination
    ... the admin is out-- what is the ... your HR department and your firm's Attorneys ... You can't protect yourself against the actions of one in a trusted position ... the breech of trust has taken place. ...
    (Pen-Test)
  • Re: Child Domain Setup Quiestion
    ... The trust created is Bidirection, Implecit, Transitive trust between domains ... There are three levels of Administration in a windows 2003 based ... 1] Enterprise Admin - have admin previlages to all the domains in the forest. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Running VSTO on Terminal Server
    ... The solution is that although the Configuration tool appears to be working ... I had a net admin make the change to ... Microsoft.Web.Services.dll and again I was unable to establish trust for the ... > I also added a full trust policy at the level of the VS projects directory ...
    (microsoft.public.vsnet.vstools.office)
  • Re: software to control domain administrators
    ... "If I can't trust my admin he/she shouldn't be one" is an archaic school ... enterprise administrators are less and less common in favor of dividing ...
    (Security-Basics)
  • Re: ? about google toolbar
    ... Chuck,,THanks for your help-Yes I do trust ... >>install it but would not allow it. ... >Can you trust your daughter? ... running an admin ...
    (microsoft.public.security)