My First Post - How to get started with Community Server 2007 SDK using VS 2008 and IIS in Windows Vista
OK, I know for quite long time I wasn't involved in .NET community by online. I have my reasons; someday I'll share with you.
For this first post, I'll share to you about How to get started with Community Server 2007 SDK using VS 2008 and IIS in Vista. This topic I and Reza presented in MSDN Day - Web Application Framework yesterday afternoon (Nov 30, 2007). Here we go...
- Download the SDK from: http://get.communityserver.org/download/cssdk
- Extract the downloaded file, e.g.: CS2007.1_3.1.20917.1142.sdk.zip
-
Database preparation:
- Open SQL Server Management Studio/Express, then create new database, for example: CS2007SDK
- Create a SQL Server login and grant login access to CS2007SDK database. At minimum, following db roles are required: db_securityadmin, db_ddladmin, db_datareader, db_datawriter
- Execute cs_3.1_CreateFullDatabase.sql against CS2007SDK database. You'll find that file in the SqlScripts directory in the SDK
-
Create a new community by running the cs_system_CreateCommunity stored procedure like this:
exec dbo.cs_system_CreateCommunity 'localhost/cs', 'dev', 'admin@example.org', 'admin', 'admin', 0, 0
Where:
localhost/cs = CS URL
dev = Application Name
admin@example.org = Admin email
admin = Admin username
admin = Admin password
0 = Password is stored as plain (0) or encrypted (1)
0 = Sample blog and gallery are not created (0) or created (1)
-
IIS Preparation:
- Create a virtual directory in IIS (e.g: cs2007sdk) pointing to the Source\Web directory, so you have a complete URL: http://localhost/cs2007sdk. It should have Read & Run Scripts permissions. Make sure IIS runs ASP.NET 2.
- If you use IIS 7 in Vista, you need to create Application instead of virtual directoy. And use Classic .NET AppPool as Application Pool, if not, you'll be told there're some invalid configs in web.config
-
Development preparation:
Some of those steps are found in several other blogs, but some are tricky b*st**d steps. So, please if you have more systematic steps, post a comment or post a blog and tell me the link, because it's quite painful J
Hopefully useful.