1
Vote

Error in loading Microsoft.ServiceHosting.ServiceRuntime;

description

Hi,
I am getting the following compilation errors. I am using Visual Studio 2008 Professional Edition. Need some help to resolve this.
 
Error 1 The type or namespace name 'ServiceHosting' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) E:\SKAzure\AzureSqlSessionStateStore\WorkerRoleAgent\WorkerRole.cs 6 17 WorkerRoleAgent
Error 2 The type or namespace name 'RoleEntryPoint' could not be found (are you missing a using directive or an assembly reference?) E:\SKAzure\AzureSqlSessionStateStore\WorkerRoleAgent\WorkerRole.cs 12 31 WorkerRoleAgent
Error 3 The type or namespace name 'RoleStatus' could not be found (are you missing a using directive or an assembly reference?) E:\SKAzure\AzureSqlSessionStateStore\WorkerRoleAgent\WorkerRole.cs 53 25 WorkerRoleAgent
Error 6 Unable to copy file "E:\SKAzure\AzureSqlSessionStateStore\WorkerRoleAgent\obj\Debug\WorkerRoleAgent.dll" to "E:\SKAzure\AzureSqlSessionStateStore\Sample.Azure\obj\Debug\WorkerRoleAgent\WorkerRoleAgent.dll". Could not find file 'E:\SKAzure\AzureSqlSessionStateStore\WorkerRoleAgent\obj\Debug\WorkerRoleAgent.dll'. C:\Program Files\MSBuild\Microsoft\Cloud Service\v1.0\Microsoft.CloudService.targets 685 5 Sample.Azure
Error 7 Unable to copy file "E:\SKAzure\AzureSqlSessionStateStore\WorkerRoleAgent\obj\Debug\WorkerRoleAgent.pdb" to "E:\SKAzure\AzureSqlSessionStateStore\Sample.Azure\obj\Debug\WorkerRoleAgent\WorkerRoleAgent.pdb". Could not find file 'E:\SKAzure\AzureSqlSessionStateStore\WorkerRoleAgent\obj\Debug\WorkerRoleAgent.pdb'. C:\Program Files\MSBuild\Microsoft\Cloud Service\v1.0\Microsoft.CloudService.targets 685 5 Sample.Azure

comments

RadicalDesigns wrote Jun 30, 2010 at 1:24 PM

I tried to reference Microsoft.WindowsAzure.ServiceRuntime; in the code. However, it is of no use. Do I miss something? No idea!!!

wrote Feb 13, 2013 at 3:16 AM