Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Creation of a site collection in MOSS 2007 using C#.NET 2008 [modified]

Creation of a site collection in MOSS 2007 using C#.NET 2008 [modified]

Scheduled Pinned Locked Moved C#
csharpcomcollaborationquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mgr_2k7
    wrote on last edited by
    #1

    I created a site collection in a Web Application using the following code snippet in a Console Application: ============================================================================ SPWebApplication webApp = SPWebApplication.Lookup(new Uri("http://devportal.domain.local")); webApp.Sites.Add( "/", // site URL "testsite", // site title "Test Site Description", // site description 1033, // site LCID that represents the language, e.g. 1033 = en-US "STS#0", // site template, e.g. STS#0 = Team Site @"localdomain\my_alias", // site owner login "Test Owner", // site owner name "abc@def.com"); // email Console.WriteLine("Site Created"); Console.ReadLine(); ============================================================================ However, I am not able to view the same? How should I view it?

    modified on Tuesday, October 20, 2009 8:33 AM

    L K 2 Replies Last reply
    0
    • M mgr_2k7

      I created a site collection in a Web Application using the following code snippet in a Console Application: ============================================================================ SPWebApplication webApp = SPWebApplication.Lookup(new Uri("http://devportal.domain.local")); webApp.Sites.Add( "/", // site URL "testsite", // site title "Test Site Description", // site description 1033, // site LCID that represents the language, e.g. 1033 = en-US "STS#0", // site template, e.g. STS#0 = Team Site @"localdomain\my_alias", // site owner login "Test Owner", // site owner name "abc@def.com"); // email Console.WriteLine("Site Created"); Console.ReadLine(); ============================================================================ However, I am not able to view the same? How should I view it?

      modified on Tuesday, October 20, 2009 8:33 AM

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      mgr_2k7 wrote:

      How should I view it?

      As a total mess! What is this supposed to be about and what is its relevance to the C# forum?

      1 Reply Last reply
      0
      • M mgr_2k7

        I created a site collection in a Web Application using the following code snippet in a Console Application: ============================================================================ SPWebApplication webApp = SPWebApplication.Lookup(new Uri("http://devportal.domain.local")); webApp.Sites.Add( "/", // site URL "testsite", // site title "Test Site Description", // site description 1033, // site LCID that represents the language, e.g. 1033 = en-US "STS#0", // site template, e.g. STS#0 = Team Site @"localdomain\my_alias", // site owner login "Test Owner", // site owner name "abc@def.com"); // email Console.WriteLine("Site Created"); Console.ReadLine(); ============================================================================ However, I am not able to view the same? How should I view it?

        modified on Tuesday, October 20, 2009 8:33 AM

        K Offline
        K Offline
        Keith Barrow
        wrote on last edited by
        #3

        mgr_2k7 wrote:

        How should I view it?

        Poorly. This code is a mess and made less readable by the fact you haven't enclosed it in pre tags. When I did decipher the code, SPWebApplication is a Sharepoint class, so you've posted to the wrong forum.

        CCC solved so far: 2 (including a Hard One!)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups