Visual Studio 2013 Compile Errors
- Error 1 - 'System.Linq.IQueryable<int>' does not contain a definition for 'FirstOrDefaultAsync' and no extension method 'FirstOrDefaultAsync' accepting a first argument of type 'System.Linq.IQueryable<int>' could be found (are you missing a using directive or an assembly reference?)
- Error 2 - 'System.Data.Entity.DbSet<MyApp.Models.MyClass>' does not contain a definition for 'CountAsync' and no extension method 'CountAsync' accepting a first argument of type 'System.Data.Entity.DbSet<MyApp.Models.MyClass>' could be found (are you missing a using directive or an assembly reference?)
- Error 3 - 'System.Data.Entity.DbSet<MyApp.Models.MyClass>' does not contain a definition for 'FirstOrDefaultAsync' and no extension method 'FirstOrDefaultAsync' accepting a first argument of type 'System.Data.Entity.DbSet<MyApp.Models.MyClass>' could be found (are you missing a using directive or an assembly reference?)
Fix by adding:
using System.Data.Entity;
Install Service Bus 1.1 on Windows Server 2012 R2
Recently I tried installing Windows Azure Package Service Bus 1.1 (Windows Service Bus 1.1) onto Windows 2012 R2 but encountered installation issues.
Search for Service Bus 1.1
In the search results, click Add to the right of "Windows Azure Pack: Service Bus 1.1"
Click Install
Click I Accept
Click Continue for Updates
- If you get an error:
We're sorry. The following products have failed to install.
Microsoft Windows Fabric V1 CU1
This product did not install successfully
Windows Azure Pack: Service Bus 1.1
This product cannot be installed because a product that it depends on did not install successfully.
Web Platform Installer 5.0 Log
The following products were successfully installed.
Microsoft Windows Fabric v1 RTM
The output of the log file was
DownloadManager Information: 0 : Loading product xml from: https://go.microsoft.com/?linkid=9842185
DownloadManager Information: 0 : https://go.microsoft.com/?linkid=9842185 responded with 302
DownloadManager Information: 0 : Response headers:
HTTP/1.1 302 Found
Cache-Control: private
Content-Length: 175
Content-Type: text/html; charset=utf-8
Expires: Tue, 05 Aug 2014 19:21:40 GMT
Location: https://www.microsoft.com/web/webpi/5.0/webproductlist.xml
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
Set-Cookie: MC1=GUID=b8a90906345ec44b9734fb0bc0bef7f1&HASH=0609&LV=20148&V=3; domain=microsoft.com; expires=Sun, 03-Oct-2010 07:00:00 GMT; path=/
X-Powered-By: ASP.NET
Date: Tue, 05 Aug 2014 19:22:39 GMT
DownloadManager Information: 0 : Content-Encoding header: 'gzip'
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '436628'
DownloadManager Information: 0 : Number of bytes after possible decompression: '7190440'
DownloadManager Information: 0 : Filtering by current OS
DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/5.0/webapplicationlist.xml
DownloadManager Information: 0 : Content-Encoding header: 'gzip'
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '109979'
DownloadManager Information: 0 : Number of bytes after possible decompression: '441687'
DownloadManager Warning: 0 : Could not resolve keyword ID AzuerReady
DownloadManager Information: 0 : Filtering by current OS
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/5.0/webapplicationlist.xml' after preprocessing, location on disk: 'C:\Users\ramiscaray\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-97141593.xml'
DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/5.0/mediaproductlist.xml
DownloadManager Information: 0 : Content-Encoding header: 'gzip'
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '11468'
DownloadManager Information: 0 : Number of bytes after possible decompression: '64021'
DownloadManager Information: 0 : Filtering by current OS
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/5.0/mediaproductlist.xml' after preprocessing, location on disk: 'C:\Users\ramiscaray\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-230948881.xml'
DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/5.0/ToolsProductList.xml
DownloadManager Information: 0 : Content-Encoding header: 'gzip'
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '11373'
DownloadManager Information: 0 : Number of bytes after possible decompression: '65942'
DownloadManager Information: 0 : Filtering by current OS
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/5.0/ToolsProductList.xml' after preprocessing, location on disk: 'C:\Users\ramiscaray\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-1135381691.xml'
DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/5.0/enterpriseproductlist.xml
DownloadManager Information: 0 : Content-Encoding header: 'gzip'
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '7517'
DownloadManager Information: 0 : Number of bytes after possible decompression: '40596'
DownloadManager Information: 0 : Filtering by current OS
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/5.0/enterpriseproductlist.xml' after preprocessing, location on disk: 'C:\Users\ramiscaray\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-1877981721.xml'
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://go.microsoft.com/?linkid=9842185' after preprocessing, location on disk: 'C:\Users\ramiscaray\AppData\Local\Microsoft\Web Platform Installer\preprocessor\1343597488.xml'
DownloadManager Information: 0 : Getting ratings file from http://go.microsoft.com/?linkid=9752395
DownloadManager Information: 0 : http://go.microsoft.com/?linkid=9752395 responded with 302
DownloadManager Information: 0 : Response headers:
HTTP/1.1 302 Found
Cache-Control: private
Content-Length: 203
Content-Type: text/html; charset=utf-8
Expires: Tue, 05 Aug 2014 19:21:41 GMT
Location: http://www.microsoft.com/web/handlers/WebPI.ashx?command=getatomfeedwithavgratingquery
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
Set-Cookie: MC1=GUID=5ac4b356e09d944aae83a0c262163979&HASH=56b3&LV=20148&V=3; domain=microsoft.com; expires=Sun, 03-Oct-2010 07:00:00 GMT; path=/
X-Powered-By: ASP.NET
Date: Tue, 05 Aug 2014 19:22:41 GMT
DownloadManager Information: 0 : Content-Encoding header: 'gzip'
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '22960'
DownloadManager Information: 0 : Number of bytes after possible decompression: '76029'
DownloadManager Warning: 0 : Error getting last-modified header, error code: 12150
DownloadManager Warning: 0 : HttpQueryInfoWithRetry for HTTP_QUERY_LAST_MODIFIED failed.
DownloadManager Information: 0 : Ratings file loaded successfully
DownloadManager Error: 0 : WebClient download error. Uri: http://dpetrainingkits.blob.core.windows.net/shared/EnterpriseDevCamps.png, Error: System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.WebClient.DownloadFile(Uri address, String fileName)
at Microsoft.Web.PlatformInstaller.UI.DownloadServiceImplementation.DownloadFile(Uri uri, String filePath)
DownloadManager Information: 0 : http://dpetrainingkits.blob.core.windows.net/shared/EnterpriseDevCamps.png responded with 404
DownloadManager Information: 0 : Response headers:
HTTP/1.1 404 The specified blob does not exist.
Content-Length: 215
Content-Type: application/xml
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: 4edfdef3-27be-4ef0-9921-50b2b1b99759
x-ms-version: 2009-09-19
Date: Tue, 05 Aug 2014 19:22:50 GMT
DownloadManager Error: 0 : WinInet download error. Uri: http://dpetrainingkits.blob.core.windows.net/shared/EnterpriseDevCamps.png, Error: System.Net.WebException: Url 'http://dpetrainingkits.blob.core.windows.net/shared/EnterpriseDevCamps.png' returned HTTP status code: 404
at Microsoft.Web.PlatformInstaller.ManagedWinInet.OpenUrlAndFollowRedirects(Uri& uri, IntPtr& hInetFile)
at Microsoft.Web.PlatformInstaller.ManagedWinInet.DownloadFile(Uri uri, String fileName, String& contentDispositionFileName)
at Microsoft.Web.PlatformInstaller.UI.DownloadServiceImplementation.DownloadFile(Uri uri, String filePath)
DownloadManager Error: 0 : WebClient download error. Uri: http://dpetrainingkits.blob.core.windows.net/shared/EnterpriseDevCamps.png, Error: System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.WebClient.DownloadFile(Uri address, String fileName)
at Microsoft.Web.PlatformInstaller.UI.DownloadServiceImplementation.DownloadFile(Uri uri, String filePath)
DownloadManager Information: 0 : http://dpetrainingkits.blob.core.windows.net/shared/EnterpriseDevCamps.png responded with 404
DownloadManager Information: 0 : Response headers:
HTTP/1.1 404 The specified blob does not exist.
Content-Length: 215
Content-Type: application/xml
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: 3b1ce36b-db66-422e-b115-705423a2d64b
x-ms-version: 2009-09-19
Date: Tue, 05 Aug 2014 19:23:08 GMT
DownloadManager Error: 0 : WinInet download error. Uri: http://dpetrainingkits.blob.core.windows.net/shared/EnterpriseDevCamps.png, Error: System.Net.WebException: Url 'http://dpetrainingkits.blob.core.windows.net/shared/EnterpriseDevCamps.png' returned HTTP status code: 404
at Microsoft.Web.PlatformInstaller.ManagedWinInet.OpenUrlAndFollowRedirects(Uri& uri, IntPtr& hInetFile)
at Microsoft.Web.PlatformInstaller.ManagedWinInet.DownloadFile(Uri uri, String fileName, String& contentDispositionFileName)
at Microsoft.Web.PlatformInstaller.UI.DownloadServiceImplementation.DownloadFile(Uri uri, String filePath)
DownloadManager Information: 0 : Adding product Windows Azure Pack: Service Bus 1.1 (ServiceBus_1_1) to cart
DownloadManager Information: 0 : Dependent product VC11Redist_x64 does not apply for current OS / configuration. Not adding
DownloadManager Information: 0 : Dependent product VC11Redist_x64 does not apply for current OS / configuration. Not adding
DownloadManager Information: 0 : Dependent product VC11Redist_x64 does not apply for current OS / configuration. Not adding
DownloadManager Information: 0 : Adding product 'ServiceBus_1_1'
DownloadManager Information: 0 : Adding dependency product 'WindowsFabric
DownloadManager Information: 0 : Checking MU opt-in status.
DownloadManager Information: 0 : MU Service found: Microsoft Update
DownloadManager Information: 0 : MU Opt-in Status: usrsRegistered
DownloadManager Information: 0 : Setting current install to 1
DownloadManager Information: 0 : Starting install sequence
DownloadManager Information: 0 : Downloading file 'http://download.microsoft.com/download/B/3/3/B33EC622-B250-49A1-A314-97CCB0DEFFC0/WindowsFabricCU1.1.0.976.0.msp' to: C:\Users\ramiscaray\AppData\Local\Temp\tmp1F13.tmp
DownloadManager Information: 0 : Content-disposition header: attachment
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '10915840'
DownloadManager Information: 0 : Number of bytes after possible decompression: '10915840'
DownloadManager Information: 0 : Moving downloaded file 'C:\Users\ramiscaray\AppData\Local\Temp\tmp1F13.tmp' to: C:\Users\ramiscaray\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsFabric\F7A92FE4B397E73B3B38F3C7717754BF8FC742E3\WindowsFabricCU1.1.0.976.0.msp
DownloadManager Information: 0 : Downloading file 'http://go.microsoft.com/fwlink/?LinkID=324000&CLCID=0x409' to: C:\Users\ramiscaray\AppData\Local\Temp\tmp2454.tmp
DownloadManager Information: 0 : http://go.microsoft.com/fwlink/?LinkID=324000&CLCID=0x409 responded with 302
DownloadManager Information: 0 : Response headers:
HTTP/1.1 302 Found
Cache-Control: private
Content-Type: text/html; charset=utf-8
Expires: Tue, 05 Aug 2014 19:24:01 GMT
Location: http://download.microsoft.com/download/A/C/4/AC4B3ABA-EF70-4C24-8827-6FBFA1857D96/SB1-1_RTM/en/Service_Bus.msi
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 05 Aug 2014 19:25:00 GMT
Content-Length: 227
DownloadManager Information: 0 : Starting EXE command for product 'Microsoft Windows Fabric V1 CU1'. Commandline is: 'C:\Windows\sysnative\msiexec.exe /update "C:\Users\ramiscaray\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsFabric\F7A92FE4B397E73B3B38F3C7717754BF8FC742E3\WindowsFabricCU1.1.0.976.0.msp" /quiet /norestart IACCEPTEULA=yes PRINCIPALUSER=ramiscaray PRINCIPALDOMAIN=SCNETI'. Process Id: 4036
DownloadManager Information: 0 : Install exit code for product 'Microsoft Windows Fabric V1 CU1' is '1603'
DownloadManager Error: 0 : Install return code for product 'Microsoft Windows Fabric V1 CU1' is Failure
DownloadManager Information: 0 : Product Microsoft Windows Fabric V1 CU1 done install completed
DownloadManager Information: 0 : Increasing current install to 2
DownloadManager Information: 0 : Content-disposition header: attachment
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '7610880'
DownloadManager Information: 0 : Number of bytes after possible decompression: '7610880'
DownloadManager Information: 0 : Moving downloaded file 'C:\Users\ramiscaray\AppData\Local\Temp\tmp2454.tmp' to: C:\Users\ramiscaray\AppData\Local\Microsoft\Web Platform Installer\installers\ServiceBus_1_1\1C4BEC246A78DB77E92CAEC589C64FF7702F7AA8\Service_Bus.msi
DownloadManager Warning: 0 : Dependency failed for product 'Windows Azure Pack: Service Bus 1.1'. Skipping install
DownloadManager Information: 0 : Product Windows Azure Pack: Service Bus 1.1 had a dependency fail. Increasing install product to 3
DownloadManager Information: 0 : Product: WindowsFabric, Install Status: InstallCompleted-Failure, Install Time: 00:00:00.5468636
DownloadManager Information: 0 : Product: ServiceBus_1_1, Install Status: DependencyFailed-None, Install Time: 00:00:00
DownloadManager Information: 0 : Clearing cart
DownloadManager Information: 0 : Adding product Windows Azure Pack: Service Bus 1.1 (ServiceBus_1_1) to cart
DownloadManager Information: 0 : Dependent product VC11Redist_x64 does not apply for current OS / configuration. Not adding
DownloadManager Information: 0 : Dependent product VC11Redist_x64 does not apply for current OS / configuration. Not adding
DownloadManager Information: 0 : Dependent product VC11Redist_x64 does not apply for current OS / configuration. Not adding
DownloadManager Information: 0 : Adding product 'ServiceBus_1_1'
DownloadManager Information: 0 : Adding dependency product 'WindowsFabric
DownloadManager Information: 0 : Checking MU opt-in status.
DownloadManager Information: 0 : MU Service found: Microsoft Update
DownloadManager Information: 0 : MU Opt-in Status: usrsRegistered
DownloadManager Information: 0 : Setting current install to 1
DownloadManager Information: 0 : Starting install sequence
DownloadManager Information: 0 : Using cached file at C:\Users\ramiscaray\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsFabric\f7a92fe4b397e73b3b38f3c7717754bf8fc742e3\WindowsFabricCU1.1.0.976.0.msp instead of downloading from http://download.microsoft.com/download/B/3/3/B33EC622-B250-49A1-A314-97CCB0DEFFC0/WindowsFabricCU1.1.0.976.0.msp
DownloadManager Information: 0 : Downloading file 'http://go.microsoft.com/fwlink/?LinkID=324000&CLCID=0x409' to: C:\Users\ramiscaray\AppData\Local\Temp\tmp12DB.tmp
DownloadManager Information: 0 : Starting EXE command for product 'Microsoft Windows Fabric V1 CU1'. Commandline is: 'C:\Windows\sysnative\msiexec.exe /update "C:\Users\ramiscaray\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsFabric\f7a92fe4b397e73b3b38f3c7717754bf8fc742e3\WindowsFabricCU1.1.0.976.0.msp" /quiet /norestart IACCEPTEULA=yes PRINCIPALUSER=ramiscaray PRINCIPALDOMAIN=SCNETI'. Process Id: 3276
DownloadManager Information: 0 : http://go.microsoft.com/fwlink/?LinkID=324000&CLCID=0x409 responded with 302
DownloadManager Information: 0 : Response headers:
HTTP/1.1 302 Found
Cache-Control: private
Content-Type: text/html; charset=utf-8
Expires: Tue, 05 Aug 2014 19:25:02 GMT
Location: http://download.microsoft.com/download/A/C/4/AC4B3ABA-EF70-4C24-8827-6FBFA1857D96/SB1-1_RTM/en/Service_Bus.msi
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 05 Aug 2014 19:26:02 GMT
Content-Length: 227
DownloadManager Information: 0 : Content-disposition header: attachment
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '7610880'
DownloadManager Information: 0 : Number of bytes after possible decompression: '7610880'
DownloadManager Information: 0 : File 'C:\Users\ramiscaray\AppData\Local\Microsoft\Web Platform Installer\installers\ServiceBus_1_1\1C4BEC246A78DB77E92CAEC589C64FF7702F7AA8\Service_Bus.msi' already exists, deleting old copy of the file
DownloadManager Information: 0 : Moving downloaded file 'C:\Users\ramiscaray\AppData\Local\Temp\tmp12DB.tmp' to: C:\Users\ramiscaray\AppData\Local\Microsoft\Web Platform Installer\installers\ServiceBus_1_1\1C4BEC246A78DB77E92CAEC589C64FF7702F7AA8\Service_Bus.msi
DownloadManager Information: 0 : Install exit code for product 'Microsoft Windows Fabric V1 CU1' is '1603'
DownloadManager Error: 0 : Install return code for product 'Microsoft Windows Fabric V1 CU1' is Failure
DownloadManager Warning: 0 : Dependency failed for product 'Windows Azure Pack: Service Bus 1.1'. Skipping install
DownloadManager Information: 0 : Product Microsoft Windows Fabric V1 CU1 done install completed
DownloadManager Information: 0 : Increasing current install to 2
DownloadManager Information: 0 : Product Windows Azure Pack: Service Bus 1.1 had a dependency fail. Increasing install product to 3
DownloadManager Information: 0 : Product: WindowsFabric, Install Status: InstallCompleted-Failure, Install Time: 00:00:00.9218684
DownloadManager Information: 0 : Product: ServiceBus_1_1, Install Status: DependencyFailed-None, Install Time: 00:00:00
DownloadManager Information: 0 : Clearing cart
DownloadManager Information: 0 : Adding product Windows Azure Pack: Service Bus 1.1 (ServiceBus_1_1) to cart
DownloadManager Information: 0 : Dependent product VC11Redist_x64 does not apply for current OS / configuration. Not adding
DownloadManager Information: 0 : Dependent product VC11Redist_x64 does not apply for current OS / configuration. Not adding
DownloadManager Information: 0 : Dependent product VC11Redist_x64 does not apply for current OS / configuration. Not adding
DownloadManager Information: 0 : Adding product 'ServiceBus_1_1'
DownloadManager Information: 0 : Adding dependency product 'WindowsFabric
DownloadManager Information: 0 : Checking MU opt-in status.
DownloadManager Information: 0 : MU Service found: Microsoft Update
DownloadManager Information: 0 : MU Opt-in Status: usrsRegistered
DownloadManager Information: 0 : Setting current install to 1
DownloadManager Information: 0 : Starting install sequence
DownloadManager Information: 0 : Using cached file at C:\Users\ramiscaray\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsFabric\f7a92fe4b397e73b3b38f3c7717754bf8fc742e3\WindowsFabricCU1.1.0.976.0.msp instead of downloading from http://download.microsoft.com/download/B/3/3/B33EC622-B250-49A1-A314-97CCB0DEFFC0/WindowsFabricCU1.1.0.976.0.msp
DownloadManager Information: 0 : Downloading file 'http://go.microsoft.com/fwlink/?LinkID=324000&CLCID=0x409' to: C:\Users\ramiscaray\AppData\Local\Temp\tmpB478.tmp
DownloadManager Information: 0 : Starting EXE command for product 'Microsoft Windows Fabric V1 CU1'. Commandline is: 'C:\Windows\sysnative\msiexec.exe /update "C:\Users\ramiscaray\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsFabric\f7a92fe4b397e73b3b38f3c7717754bf8fc742e3\WindowsFabricCU1.1.0.976.0.msp" /quiet /norestart IACCEPTEULA=yes PRINCIPALUSER=ramiscaray PRINCIPALDOMAIN=SCNETI'. Process Id: 1796
DownloadManager Information: 0 : http://go.microsoft.com/fwlink/?LinkID=324000&CLCID=0x409 responded with 302
DownloadManager Information: 0 : Response headers:
HTTP/1.1 302 Found
Cache-Control: private
Content-Type: text/html; charset=utf-8
Expires: Tue, 05 Aug 2014 19:30:08 GMT
Location: http://download.microsoft.com/download/A/C/4/AC4B3ABA-EF70-4C24-8827-6FBFA1857D96/SB1-1_RTM/en/Service_Bus.msi
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 05 Aug 2014 19:31:08 GMT
Content-Length: 227
DownloadManager Information: 0 : Content-disposition header: attachment
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '7610880'
DownloadManager Information: 0 : Number of bytes after possible decompression: '7610880'
DownloadManager Information: 0 : File 'C:\Users\ramiscaray\AppData\Local\Microsoft\Web Platform Installer\installers\ServiceBus_1_1\1C4BEC246A78DB77E92CAEC589C64FF7702F7AA8\Service_Bus.msi' already exists, deleting old copy of the file
DownloadManager Information: 0 : Moving downloaded file 'C:\Users\ramiscaray\AppData\Local\Temp\tmpB478.tmp' to: C:\Users\ramiscaray\AppData\Local\Microsoft\Web Platform Installer\installers\ServiceBus_1_1\1C4BEC246A78DB77E92CAEC589C64FF7702F7AA8\Service_Bus.msi
DownloadManager Information: 0 : Install exit code for product 'Microsoft Windows Fabric V1 CU1' is '1603'
DownloadManager Error: 0 : Install return code for product 'Microsoft Windows Fabric V1 CU1' is Failure
DownloadManager Warning: 0 : Dependency failed for product 'Windows Azure Pack: Service Bus 1.1'. Skipping install
DownloadManager Information: 0 : Product Microsoft Windows Fabric V1 CU1 done install completed
DownloadManager Information: 0 : Increasing current install to 2
DownloadManager Information: 0 : Product Windows Azure Pack: Service Bus 1.1 had a dependency fail. Increasing install product to 3
DownloadManager Information: 0 : Product: WindowsFabric, Install Status: InstallCompleted-Failure, Install Time: 00:00:01.4965021
DownloadManager Information: 0 : Product: ServiceBus_1_1, Install Status: DependencyFailed-None, Install Time: 00:00:00
- After looking at Event Viewer > Windows Logs > Applications > (!) Error. This should have been in the prerequisites.
Product: Windows Fabric -- This product requires Microsoft VC Runtime 11 to work.
-
The fix
- Restart the Web Platform Installer Install for Service Bus 1.1
SignalR with Azure Service Bus
Step 1 : Setup Azure Cloud Services
- Login to Azure
- Click CLOUD SERVICES and Choose +NEW
- Choose COMPUTE > CLOUD SERVICE > Quick Create > Url > MySignalr.Cloud.Service
- Choose the correct hosting region
Step 2 : Setup Azure Service Bus
- Login to Azure
- Click SERVICE BUS and Choose +NEW
- NAMESPACE NAME: MySignalR
- REGION: West US
- Click the Checkmark
- Click the newly created namespace
- Click Connection Strings from Below
- Copy the connection string, you'll use it in your Web Project
Step 3 : Setup Visual Studio 2013 Solutions
- Open Visual Studio 2013 as Administrator
- File > New Project
- Click Installed > Templates > Visual C# > Cloud
- Click Windows Azure Cloud Service
- Enter the following values:
- Name: MySignalR.Cloud.Service
- Solution Name: MySignalR
- Click OK
- In the ".NET Framework 4.5 roles" column, choose "ASP.NET Web Role" and click [>]
- In the right column of Windows Azure Cloud Service Solution, Click on WebRole1 and then click the pencil to edit.
- Change the name to MySignalR.Web and click the empty space beneath.
- Click OK
- New ASP.NET Project - MySignalR.Web
- Choose MVC
- Choose Add unit tests
- Click OK
- Then the instructions on ASP.NET tell you to install SignalR
-
Install-Package -ProjectName SignalRChat Microsoft.AspNet.SignalR
Install-Package -ProjectName SignalRChat Microsoft.AspNet.SignalR.ServiceBus
- Set the backplane for Azure
- Update Web.Config so the connection string can be stored there.
<connectionStrings>
<add name="AzureServiceBus" connectionString="Endpoint=sb://xxxx.servicebus.windows.net/;SharedSecretIssuer=owner;SharedSecretValue=XXXXXXXX" />
</connectionStrings>
-
Startup.cs
public void Configuration(IAppBuilder app)
{
// Any connection or hub wire up and configuration should go here
string connectionString = ConfigurationManager.ConnectionStrings["AzureServiceBus"].ConnectionString;
GlobalHost.DependencyResolver.UseServiceBus(connectionString, "Chat");
app.MapSignalR();
}
- Update the MySignalR.Cloud.Service files
-
Open ServiceConfiguration.Cloud.cscfg and add a line for Microsoft.ServiceBus.ConnectionString with the value defined in the service bus dashboard.
<?xml version="1.0" encoding="utf-8"?>
<ServiceConfiguration serviceName="MySignalR.Cloud.Service" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="4" osVersion="*" schemaVersion="2014-01.2.3">
<Role name="MySignalR.Web">
<Instances count="1" />
<ConfigurationSettings>
<Setting name="Microsoft.ServiceBus.ConnectionString" value="Endpoint=sb://xxxx.servicebus.windows.net/;SharedSecretIssuer=owner;SharedSecretValue=XXXXXXXX" />
<Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="DefaultEndpointsProtocol=https;AccountName={AccountName};AccountKey={AccountKey}" />
</ConfigurationSettings>
</Role>
</ServiceConfiguration>
Right click the the MySignalR.Service.Cloud project and click Publish
Choosing the Azure hosting service for you is important.
Here is a feature comparison from Microsoft to help you:
This is the best way to describe your hosting options in Azure:
Image Source : Microsoft Windows Azure
Virtual Machines (Full Control)
Microsoft Manages
- Operating System
- Firewall Rules
- Virtual Network
- Patches
- Updates
- Configurations
- Applications
- Data
Cloud Services (Partial Control)
- Operating System
- Virtual Network
- Hardware
- Patches
- Updates
- Firewall Rules
- Virtual Network
- Configurations
- Applications
- Data
Web Sites (Minimal Control)
- Operating System
- Virtual Network
- Hardware
- Patches
- Updates
- Firewall Rules
- Virtual Network
- Configurations
Sql Server 2008
Enable Server Broker Query
USE master ;
GO
ALTER DATABASE YourDatabaseName SET ENABLE_BROKER ;
GO
This will allow you to use SignalR and ASP.NET SQLDependency