»
S
I
D
E
B
A
R
«
Evejob Development Environment Installation Part #6: .NET, C#, ASP.NET MVC and Azure Installation
Oct 21st, 2009 by evereq

.NET development Environment Installation

  • Download and install Microsoft SQL Server 2008 (any edition will fit, including Free Express)
  • Download and install Microsoft Visual Studio 2008 Standard, Professional or Team Edition (feel free to read about installation order in here)
  • Download and install service packs for SQL Server and for Visual Studio 2008 (at least SP1 required)
  • Download and install ASP.NET MVC 1.0
  • Download and install latest Azure SDK (make sure that Enable IIS7 with ASP.NET and WCF HTTP Activation – read more on here)

Creating EvejobNET Solution

Open Visual Studio, select “File / New Project” and fill form with following details (make sure you select ASP.NET MVC Web Application template):

EvejobNETSolutionCreate

Press “OK” and on next window “Create Unit Test Project”, select “Yes” and press OK:

SelectVisualStudioUnitTests

You will get solution loaded into Visual Studio with 2 projects: ASP.NET MVC Application (EvejobNET) and Unit Tests project (EvejobNET.Tests):

EvejobNETSolution

You can now try to run it, just press “Start Debuging” Button and make sure that you agree with action to “Modify the Web.config file to Enable Debugging”. Your default browser will open test site, hosted by development server (build in into Visual Studio).

Creating EvejobAzNET Azure Solution

Go to “File / New Project”, select “Cloud Service” template in New Project Window and fill project name and path like on following screenshot:

EvejobAzNetSolutionCreate

After you press “OK” you will need to select Roles to be added to solution. At the time I write this, there was no ASP.NET MVC role available, so let’s just temporary add ASP.NET Web Role (keep default name for now):

AddWebRole

After you press OK, solution will be opened with WebRole1 Project. Now it is time to remove “WebRole1″ temp project from solution (don’t forget to delete unused folder, with content, WebRole1 in C:\evejob\EvejobAzNET).

Next step is to add new ASP.NET MVC project: like was done above for EvejobNET project – just simply right click in solution explorer on “Solution ‘EvejobAzNET’” and select “Add New Project”, than select ASP.NET MVC Web Application Template and give this template name “EvejobAzNETMvcWebRole” to keep Azure standard naming convention.

One more step to finish – you need to associate role, so in solution explorer right click on “No project associated (WebRole1)” and select same like on screenshot:

AssociateProject

In opened window for association, make sure that you select “EvejobAzNETMvcWebRole” project:

AssociateWithRole

Your solution will looks like this now:

AzNetSolution

Now it’s time to test it – just press “Start Debugging”  in Visual Studio. Probably you will get following question (if everything going well):

DevelopmentStorageNeeds

Sure thing, correct answer “Yes” :) Ones it finished you will get another window that show “Development Storage Initialization” – just press “OK” button here and continue with execution.

You can get following popup also:

MicrosoftCloudToolsUpdates

I hope you answer yes, as probably you want to be sure that you use latest Tools available for Azure :)

Finally, your default browser probably opens with http://127.0.0.1:81/ Url and you will see “My MVC Application” :)

If so, that we just prepare everything to start EvejobAzNET development :)

Ah, one small note – you can check status in “Development Fabric” and in “Development Storage” – small icons are added to Windows taskbar – right click on each and select “Show …”:

DevelopmentFabric

DevelopmentStorage

Thats it!

Visual Studio 2008 and Microsoft SQL Server 2008 Installation order
Oct 13th, 2009 by evereq

Based on my experience, I suggest to install .NET developer environment in following order:

1) Microsoft SQL Server 2008 (Express with Tools or Express with Advanced Services minimum, as you probably will want to use at least Management Studio after installation… Sure if you have developer, standard or enterprise versions just install them)

2) Visual Studio 2008

3) Service Packs for Visual Studio and Service Packs for SQL Server (order here i think simply does not make any difference)

If you install SQL Server and Visual Studio in wrong order (i.e. Visual Studio and than SQL Server), you will probably have at least issues with Management Studio 2008 installation (update from Management Studio 2005) together with other ’small’, but time consuming issues…

»  Substance: WordPress   »  Style: Ahren Ahimsa
© Copyright 2008–2009 EvereQ.com All rights reserved.