This project is read-only.

This page helps you get your development environment up and running so you can build new stuff, debug or just investigate portal solution.

information_24You can use same codebase for both on-premises and cloud development. If you don’t need Windows Azure support then you can miss the steps required for getting cloud configuration up and running. You still need Windows Live application account to authenticate your users.



Setting up development environment is easy.

  1. Install Visual Studio 2010 Ultimate with Service Pack 1.
  2. Install ASP.NET MVC 3 latest updates.
  3. Install Windows Azure extensions for Visual Studio.
  4. Install MSSQL Server 2008 R2 (Express or better).
  5. Install IIS Express (web project uses IIS Express).

This is enough for starting development for shared hosting and dedicated server.


Currently we are using same credentials and database names in all development environments:

  • server: (local)
  • database: enetamvc
  • username: enetamvc
  • password: enetamvc

Before deploying database objects create user and database and add the user to database user with dbo permissions.

Database deployment is done using EnetaMvc.Data.Schema.MSSQL2008 project. Before deployment you have to configure the deployment settings:

  1. Right click on EnetaMvc.Data.Schema.MSSQL2008.
  2. Select Properties from context menu.
  3. Move to Deploy tab.
  4. Click on [Edit…] button after Target Connection field.
  5. Define connection to database you created before (you can use your Windows account because this connection is used for database deployment only).
  6. Save project settings.

To deploy database objects to database:

  1. Right click on EnetaMvc.Data.Schema.MSSQL2008 project.
  2. Select Deploy from context menu.
  3. Now database objects will be deployed to database.
warning_24To test database deployments effectively database will be created from zero on every deployment.

Configuring Live ID

You need Live ID application account to authenticate users.

  1. Open your browser and open the address
  2. Log in using your Live ID.
  3. Create new application and set following configuration options to appSettings.conf file located in web application folder (create this file if it doesn’t exist):
    • WLA_ApplicationMode: http
    • WLA_ApplicationId: insert your application ID from Live page where you just registered your application
    • WLA_ApplicationKey: insert your application key from Live page where you just registered your application
    • WLA_ApplicationAlgorithm: wsignin1.0
  4. Save appSettings.conf.

warning_24Live ID service doesn’t allow anymore localhost accounts. Register some arbitrary domain it allows you to use and add this domain to your host file so it points to local machine. This way you can test your application with Live ID service in your development machine.

This is it. If you have any problems or questions about setting up Visual Studio solution to your development environment then please feel free to contact us.

Last edited Jan 26, 2012 at 9:50 AM by gpeipman, version 7


No comments yet.