The Notes of Sagi Arsyad

My Paint is Black, Don't ask me to draw Rainbow
See also: Other Geeks@INDC

News

ASP.NET

My Organization

How to "Play" your Community Server SDK

this article is using Engrish,

this article is using :

  • Visual Studio 2005 SP 1
  • .NET Framework 2.0
  • Community Server 2007 SP1 (3.0.20510.895)
  • SQL Server 2005 SP 2
  • IIS 7.0 Vista (7.0.6000.16386)
  • Microsoft Web Application Project 

 

1. Prepare your file

first of all is download Community Server SDK and Community Server web install

and then download Microsoft web application project plugin for Visual Studio 2005 if it not installed yet in your PC

 

2. Create IIS Virtual Directory

open iis manager

start -> run -> inetmgr

right click on Default website (which binding port 80) and chose "add Virtual Directory"

name the virtual directory as "/cs" and point it to your "/Web" folder inside CS2007SDK source directory

in this example I use folder "C:\CS_2007_SP1\CS2007_3.0.20510.895.sdk\source\Web"

don't forget to set your virtual directory as Application

in some case you may need to set IIS 7 to running it virtual directory as Classic .NET application pool

okay, we finish with IIS

 

3. Create SQL Server database

open you SQL Server management studio and create new database

 

4. "prepare" the Community Server

in the step 1, I told you to download CS2007 web instal, not only the SDK. because CS2007 SP1 SDK  somehow not include web install SqlScript in their CSSDK pack.

now copy all .sql file in folder "/Web/Installer/SqlScripts" of CSWebInstall folder to "/Web/Installer/SqlScripts" of your CSSDK folder, and we ready for web install, it should about 10 .sql files.

 

5. Build & Configure connection string

run visual studio 2005 as administrator (in vista) and then open "Community Server 20.sln" inside source folder

and then build the solution (Ctrl + Shift + B)

modify connection string to

 

<?xml version="1.0"?>

  <connectionStrings>
      <remove name="SiteSqlServer" />
    <add name="SiteSqlServer" connectionString="server=(local);uid=;pwd=;Trusted_Connection=yes;database=CommunityServer" />
  </connectionStrings>

right click on "/Web/Default.aspx" and the chose view in browser

if you can see Community Server "Critical Error" like image below, it means it just one more step to success

 

5. Web Install

for more detail about this step, you can read at

http://docs.communityserver.org/wiki/page.aspx/23/web-install-wizard/

we're done

 

 

extra :  Create machineKey

to avoid your user keep loging out every several minutes, generate machineKey at :

http://aspnetresources.com/tools/keycreator.aspx

and then copy paste to your web.config file

 

Share this post: | | | |

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required) 
Are you human?:  


Enter the numbers above: