my6solutions

asp .net, the social web & other distractions

 

Running Apps


PayPal - The safer, easier way to pay online!

Disclaimer

I am in no way affiliated with Microsoft or Google. I am just another developer trying to make a difference. All opinions and observations are usually my own.

Installing pesta and raya for OpenSocial .NET

Prerequisites

- ASP .NET 3.5,
- ASP .NET MVC, download
- Your favourite versioning tool, eg. Tortoise SVN
- Access to MS SQL database or SQL database express
- FREE Visual Web Developer Express or Visual Studio

 

Installation

Create 3 folders on your drive somewhere called
- pesta (shared dll)
- pestaserver (gadget server)
- raya (sample site)

Then, check-out the code for each folder at the locations specified below (show photo)
- pesta @ https://pesta.googlecode.com/svn/trunk/pesta/pesta/
- pestaserver @ https://pesta.googlecode.com/svn/trunk/pesta/pestaServer/
- raya @ https://raya.svn.codeplex.com/svn/raya

 

While waiting for your code to finish downloading, you will need to downloading the IKVM libraries. You can do that here. The use of this filewill be explained later. Basically, the htmlparser and rewriter are the only ones left that have not been ported over. Once this is done, the contents of the above zip file will be irrelevant.

Once you have checked out the above projects, open the .csproj files under each project. Basically, both pestaserver and raya is dependent on pesta (pesta builds into Pesta.NET.dll).

What I normally do is that I open 2 copies of Visual Studio; the projects pesta and pestaserver will be loaded on the first VS; pesta and raya will be loaded on the second VS.


 

 

pestaServer

Now back to IKVM.Shindig.dll.0.1.zip. Extract the contents of this file somewhere. Next, go to your pestaserver project and delete the existing references for the following files (as they refer to the incorrect path)
- IKVM.OpenJDK.ClassLibrary
- IKVM.Runtime
- IKVM.Runtime>JNI
- shindig

Now, Add References.. to the 4 files that you have extracted somewhere above. You may additionally need to remove the existing reference for pesta and add the pesta project again as a reference for pestaServer. You should be able to build the solution correctly now.

 

Installing the SQL database

You either use SQL Server Management Studio or from the command line via sqlcmd to create the database. Under the raya project, there is a file called raya.sql. This is the database script. You will first need to create a database called raya. Once this is done, simply execute the script (raya.sql) from raya.

 


pestaServer web.config

There are only 3 things you need to do here
1. Point the connection string to the database you've created
2. Specify the address for containerUrlPrefix. This is the address of the "raya project" when it starts up. You can update the dynamic port number later.
3. Either specify the tokenMasterKey so that communication between the site and gadget server includes a security token OR set allowUnauthenticated to true to bare it all.

FYI: There will be another article on how to setup OAuth.

raya

With the raya project, you will just need to delete the current reference to pesta and add the reference to pesta again.

You will only need to configure the web.config file. In this file, you will need to
1. Point the connectionString to the database you created above
2. If you had specify the tokenMasterKey for pesta, you will need to specify the same value here
3. Specify the address of the gadget_server, ie. the address that pesta is running on.


And that should be it. If you have any questions, I can be contacted at seanlinmt at my6solutions dot com

Bookmark and Share

Categories: ASP .NET | OpenSocial | Pesta
Permalink | Comments (4) | Post RSSRSS comment feed

Comments

Chris Jolly

Saturday, February 28, 2009 10:18 PM

Chris Jolly

Hi Sean,

I have been playing with your pesta and rava projects - great work ! I can make it run under the ASP.Net Development Server from Visual Studio, but I can't seem to make it work by running them as IIS websites. For example, I can get to the home page of pestaserver but if I click on any of the example links, IIS throws an error like this:

HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable

This looks like an http re-write error, but maybe is a security problem ?

A seperate problem is when running under ASP.Net Development Server, none of the OpenSocial gadgets (like ToDo) seem able to persist data.

Thanks for any help and keep up the great work

Chris

Admin

Sunday, March 01, 2009 12:27 PM

Admin

Hi Chris,
  That sounds like a problem with ASP .NET MVC. The simplest way is to make aspnet_isapi.dll handle all types of files and get it not to "verify that file exists" first. For a better explanation, try blog.codeville.net/.../.

Pesta itself will not allow you to persist data of of the box. But there should be an example there that uses cookies to do this (sample 5). For a better example, you can download raya; http://www.codeplex.com/raya. Raya is an example of a site using OpenSocial using a MS SQL database to persist state.

Sean

Chris Jolly

Monday, March 02, 2009 5:02 AM

Chris Jolly

Thanks Sean - have also been using raya - another great piece of work...
I will let you know if I still have problems

swapsharing.wordpress.com

Saturday, October 10, 2009 12:37 PM

pingback

Pingback from swapsharing.wordpress.com

OpenSocial relationship between pesta, pestaServer, raya, shindig and IKVM « Swap’s K.T.