Carlos Femmers Blog

Carlos Femmer lives in Lafayette, LA and builds a few solutions for JCLS and Agency Virtual Tours

Porting Windows Azure project to Visual Studio 2010 RC

February 12, 2010 05:46 by carlos

I am porting a windows azure project over to the new build of Visual Studio 2010 RC.  I had an older project which referenced Microsoft.ServiceHosting.ServiceRuntime (which does not exist in the released version).  I went through some trials and tribulations to figure this out.  Also, I wanted to test the Bing search to see if I can research this problem completely using only Bing.  Here we go.

 The first issue when I opened and converted the project was the missing assembly references.

After doing some digging in Bing, I found the new service reference was now called -- Microsoft.WindowsAzure.ServiceRuntime.

You will also have to replace the using statements from the class files.  I did a quick replace across the entire solution to replace with Microsoft.WindowsAzure.ServiceRuntime:

After trying to build it states that the RoleManager does not exist. It needs to be replaced with RoleEnvironment. Be careful if you intend to use the quick replace. 

Next you have to replace IsRoleManagerRunning with IsAvailable:

Next, I got an error stating the role does not contain a definition for "GetConfigurationSetting".  It needs to be replaced with GetConfigurationSettingValue

Next, Error at catch(RoleException).  You need to replace with catch(RoleEnvironmentException).

 

Basically these are the main items that would need to be changed.  If you implemented other features of Azure (e.g. Diagnostics), then you would also have to change out to support the new version.

In Summary -

I was able to use Bing to find the information I needed :)

Updating the information was trivial.  Just had to take one error at a time.

 


Tags:
Categories: Windows Azure
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Related posts

Comments