Where do I see this running?
Adventure Works Resorts (WLQuickApps.SocialNetwork) Deployment Guide
User Experience customization
Install the following on your computer (Windows Server 2003, Windows Vista or later):
Windows Live Account Setup
You will need to gain access and/or credentials from each of the following, which will be stored in the Web.config of the Web project:
- Windows Live Authentication (http://msm.live.com/app) (see the web.config for redirect URLs - http://localhost:50008/WLQuickApps.SocialNetwork.WebSite/Register.aspx if you are running in local debug mode)
Time Lapse in setting up account: Instant
- Windows Live Alerts (contact email@example.com for an account) Time Lapse in setting up account: Upto 3 business days
- Silverlight Streaming (https://silverlight.live.com/account/create.aspx)
Time Lapse in setting up account: Instant
- MapPoint (https://mappoint-css.live.com/MwsSignUp/Default.aspx)Time Lapse in setting up account: Documented few days but is only a couple of minutes.
Visual Studio 2005
- Open the WLQuickApps.SocialNetwork.sln file in notepad
- Change "Microsoft Visual Studio Solution File, Format Version 10.00" to "Microsoft Visual Studio Solution File, Format Version
- Launch the solution file in VS 2005
The VideoProcessorService runs as a Windows Service and encodes media into Silverlight apps, which are then uploaded to Silverlight Streaming for hosting. To set up:
- Create an MSMQ message queue (such as "ProcessorQueue")
- Vista Configuration Process:
- Computer Manager
- Services & Applications,
- Message Queueing,
- Right Click Private Queues
- New Private Queue call the new queue ProcessorQueue
- IMPORTANT: You must open the ProcessorQueue and allow NETWORK SERVICE full access to the queue.
- Deployment - you can either
- Copy the .EXE, .CONFIG, .xml, .bat and error.zip from build output of the VideoProcessorService project and copy them to the location you want the service to reside at.
- To install and start the service run HELPER_Install.bat and HELPER_StartService.bat
- Run HELPER_StopService.bat to stop the service
- Run the service from the build directory
- Remember to stop the service using HELPER_StopService.bat before you rebuild the Service Project.
- After you build the service you will need to browse to the DEBUG\bin (or RELEASE\bin) directory and execute HELPER_Install.bat and HELPER_StartService.bat
- Check the .CONFIG file. Configurations need to be made before you start the service. See comments in the .CONFIG file for more detailed configuration information.
- ServiceWorkingDir - is where your *.exe resides
- MediaSubmissionQueue - private message queue you created earlier. NOTE: The message queue name must be in the form "<Computer>\private$\<queuename>" or ".\private$\<queuename>"
- ProcessorWorkingDir - directory where the audio and video files are processed (make sure NETWORK SERVICE has permissions to this folder)
- NOTE: if changes need to be made, stop the service first, make the changes, and then restart.
- To debug the service you should start the service; open Visual Studio and Attach to Process; tick All Sessions and All Users and select WLQuickApps...VideoProcessor.
- By default, events are sent to the Application event log with a source of "WLQuickApps Media Processor Service"
- NOTE: If you are running the application on Windows Vista, you will need to give the
Network Servicve account read and write permissions to the event log. Grant the
Network Service user read/write permissions to: HKEYLOCALMACHINE\System\CurrentControlSet\Services\EventLog and Read access to HKEYLOCALMACHINE\System\CurrentControlSet\Services\EventLog\Security
- Create a database called "SocialNetwork"
- Run the SocialNetwork.sql script found in the project root to set up the tables (NOTE: be sure to be running this against the
SocialNetwork database and not the master database).
Web app setup
- Be sure to update Web.config with the credentials obtained from the Windows Live steps above and SQL Connection string
- You will need:
- Windows Live App ID and Secret Key
- Silverlight Streaming Account ID and Key
- MapPoint Account ID and Password
- Windows Live Alerts ID and Key
- Configure Web.config to point to the right MSMQ queue for media encoding (ProcessingQueue)
- Configure Web.config to point to a valid MediaDropPath (create a folder share \\<computername>\MediaDrop) - this is where media will be uploaded for processing before being uploaded to Silverlight Streaming. Make sure the web application has sufficient
permissions to write to this folder.
- Build the Web project in Visual Studio 2005 or Visual Studio 2008 Beta 2
- Deployment options:
- Copy/publish the output of the Web project to the virtual directory set up earlier for Web hosting
- Run the site in local debug mode (the Web Site has been set to non dynamic ports
- build the Video Processing *.exe file and copy it into the bin directory of the website
- Step through the web.config of the Web Site and verify the fields are set.
- Step through the app.config of the Video Processing Service and verify the fields are set.