Enterprise Framework

Software Solutions in the Enterprise

Innovation : ASP.NET vNext

What is ASP.NET vNext?

It's the next generation of ASP.NET built by Microsoft that can be ran on Linux, Mac and of course Windows.  ASP.NET MVC and ASP.NET Web API in ASP.NET vNext are becoming a single unified framework.

The vNext home page is http://www.asp.net/vnext

The vNext Source code is https://github.com/aspnet/home

The vNext Wiki is https://github.com/aspnet/Home/wiki

Minimum Requirements

Getting Started

Github DotNet
- https://github.com/dotnet

I'm excited to try it with Mac and Linux.  I think the opportunities will be endless

Related Articles:

http://www.hanselman.com/blog/IntroducingASPNETVNext.aspx

http://www.hanselman.com/blog/AnnouncingNET2015NETasOpenSourceNETonMacandLinuxandVisualStudioCommunity.aspx

http://news.microsoft.com/2014/11/12/microsoft-takes-net-open-source-and-cross-platform-adds-new-development-capabilities-with-visual-studio-2015-net-2015-and-visual-studio-online/

http://blogs.msdn.com/b/somasegar/archive/2014/11/12/opening-up-visual-studio-and-net-to-every-developer-any-application-net-server-core-open-source-and-cross-platform-visual-studio-community-2013-and-preview-of-visual-studio-2015-and-net-2015.aspx

Visual Studio 2013 : Compile Errors for System.Linq and System.Data.Entity

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;

How To : Ubuntu 14.04 : Install MEAN stack

How To Install MEAN on Ubuntu 14.04

MEAN = Mongo, Express, AngularJS, Node.js

  1. Install npm, this will install Node.js as well.
    1. sudo apt-get install npm
  2. Install MongoDb
    1. sudo apt-get install mongodb
  3. Create a symlink
    1. sudo ln -s /usr/bin/nodejs /usr/bin/node
  4. Install Bower
    1. sudo npm install -g bower
  5. Install Grunt
    1. sudo npm install -g grunt-cli
  6. Install Latest MEAN.IO
    1. sudo npm install -g meanio@latest
  7. Initialize a new application
    1. mean init {YourNewApp}
  8. Add Dependencies
    1. cd {YourNewApp} && npm install
      1. Express
      2. Mongoose
      3. Passport
      4. AngularJS
      5. Twitter Bootstrap
      6. UI Bootstrap
  9. Run the App
    1. grunt
  10. View in browser
    1. http://YourIP:3000
Visit MEAN.IO for details


How To : Install Windows Azure Pack : Service Bus 1.1 (Windows Service Bus 1.1)

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.  


  1. 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 

  2. 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
  3. 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
    
  4. 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.
    
  5. The fix

    Install Visual C++ Redistributable for Visual Studio 2012.  You can download Visual C++ Redistributable  for Visual Studio 2012. The most recent is Update 4.
    
    http://www.microsoft.com/en-us/download/confirmation.aspx?id=30679
    
  6. Restart the Web Platform Installer Install for Service Bus 1.1

How To : SignalR with Azure Service Bus - Full Details

SignalR with Azure Service Bus

The steps defined within "Scaleout with Windows Azure Service Bus" was good, but not complete from my viewpoint.  Here's what you do assuming you did the prerequisites:

Step 1 : Setup Azure Cloud Services

  1. Login to Azure
  2. Click CLOUD SERVICES and Choose +NEW
  3. Choose COMPUTE > CLOUD SERVICE > Quick Create > Url > MySignalr.Cloud.Service
  4. Choose the correct hosting region
Step 2 : Setup Azure Service Bus

  1. Login to Azure
  2. Click SERVICE BUS and Choose +NEW
    1. NAMESPACE NAME: MySignalR
    2. REGION:  West US
  3. Click the Checkmark
  4. Click the newly created namespace
  5. Click Connection Strings from Below
  6. Copy the connection string, you'll use it in your Web Project
Step 3 : Setup Visual Studio 2013 Solutions

  1. Open Visual Studio 2013 as Administrator
  2. File > New Project
  3. Click Installed > Templates > Visual C# > Cloud 
  4. Click Windows Azure Cloud Service
    1. Enter the following values:
      1. Name:  MySignalR.Cloud.Service
      2. Solution Name: MySignalR
      3. Click OK
  5. In the ".NET Framework 4.5 roles" column, choose "ASP.NET Web Role" and click [>]
    1. In the right column of Windows Azure Cloud Service Solution, Click on WebRole1 and then click the pencil to edit.
    2. Change the name to MySignalR.Web and click the empty space beneath.
    3. Click OK
  6. New ASP.NET Project - MySignalR.Web
    1. Choose MVC
    2. Choose Add unit tests
    3. Click OK
  7. Then the instructions on ASP.NET tell you to install SignalR
    1. Install-Package -ProjectName SignalRChat Microsoft.AspNet.SignalR
      Install-Package -ProjectName SignalRChat Microsoft.AspNet.SignalR.ServiceBus
  8. Set the backplane for Azure
    1. 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>
    2. 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(); }
  9. Update the MySignalR.Cloud.Service files
    1. 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

Azure Web Hosting (Virtual Machines vs Cloud Services vs Web Site)

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 

    • Hardware

You manage 

    • Operating System
    • Firewall Rules
    • Virtual Network
    • Patches
    • Updates
    • Configurations
    • Applications
    • Data
Cloud Services (Partial Control)

Microsoft Manages 

    • Operating System
    • Virtual Network
    • Hardware
    • Patches
    • Updates

You Manage

    • Firewall Rules
    • Virtual Network
    • Configurations
    • Applications
    • Data

Web Sites (Minimal Control)

Microsoft Manages 

    • Operating System
    • Virtual Network
    • Hardware
    • Patches
    • Updates
    • Firewall Rules
    • Virtual Network
    • Configurations

You Manage

    • Applications
    • Data

How To : Apple : Macboook Pro 2011 : Replace Hard Drive with SSD and Clone and Install

Apple Macbook Pro 2011 Hard Drive Replacement

  1. Purchase a 2.5" SSD Hard Drive (with a 2.5 hard drive enclosure if possible).
    1. If the 2.5" SSD does not contain a external hard drive enclosure, you can purchase one separate from Amazon.Com, just do a search for "SSD Hard Drive Enclosure"
  2. Assuming you have the SSD and Enclosure, 
    1. Attach the 2.5" SSD Hard Drive enclosure to the computer.  Most do it through a cable.
    2. If the new 2.5" SSD Hard Drive storage space is larger than your existing hard drive, skip to Step 3.  If the If the 2.5" SSD Hard Drive you bought has a smaller storage space than your current Hard Drive, you will need to resize the current drive first before you can begin cloning.  You will need to Partition the Mac hard drive so that it is now the same size or smaller of the SSD Hard Drive
      1. First Open Disk Utilities
      2. Then click the hard drive
      3. Change the space of existing hard drive so it's smaller than the new 2.5" SSD Hard Drive
    3. Start the clone
      1. Then Reboot and press Control + R
        1. Select Disk Utilities
        2. Choose the hard drive.
        3. Then Restore
        4. Turn off the Mac
    4. Replace the hard drive
      1. Turn the Macbook over and use a small Phillips screw driver to remove the bottom plate.
        1. Lift the bottom plate straight up.
      2. Replace the existing hard drive with the newly cloned 2.5" SSD Hard Drive.
      3. Power it back up.
    5. IMPORTANT:  Set the startup drive to Macintosh Hard Drive.  If you fail to do this, your Mac will be slow.
      1. Mac > System Preferences > Startup Disk > Choose "Macintosh HD OSX,..."

Troubleshooting Problem : Slow Performance : Microsoft : TFS (Team Foundation Server) 2012

If you have issues with TFS being very slow and get the below error message, there could be an issue with the number of items associated with your workspace. 

Error Message:

TF401190: The local workspace RAmiscaray;Robert Amiscaray has 101150 items in it, which exceeds the recommended limit of 100000 items.  To improve performance, either reduce the number of items in the workspace, or convert the workspace to a server workspace.

Your workspace has to many linked items in TFS. 

Solution:

  1. From Visual Studio, choose the slow performing workspace.
  2. Choose the Source Control explorer
  3. Remove project mappings from the slow performing workspace.  You may need to do several.
  4. Create a new workspace and add the previously removed project mappings.  Repeat.
  5. Keep workspaces by project mappings to a minimum.

How To : Microsoft : Sql Server 2012 Express : Service Broker : Subscribe Query Notifications : Enable for ASP.NET and SignalR

Sql Server 2012 Express - Service Broker - Subscribe Query Notifications

To enable SQL Server 2012 Express real time data notifications to use with ASP.NET and SignalR:

  1. Run Sql
    Documentation : Enable Query Notifications
    
    ALTER DATABASE AdventureWorks SET ENABLE_BROKER;
    
    CREATE QUEUE ContactChangeMessages;
    CREATE SERVICE ContactChangeNotifications ON QUEUE ContactChangeMessages ([http://schemas.microsoft.com/SQL/Notifications/PostQueryNotification]);
    
    GRANT SUBSCRIBE QUERY NOTIFICATIONS TO "DomainName\Username";
    
  2. Set SQL Server Permission for IIS App Pool
    1. http://stackoverflow.com/questions/7698286/login-failed-for-user-iis-apppool-asp-net-v4-0
      1. You need to add a login to SQL Server for IIS APPPOOL\ASP.NET v4.0 and grant permissions to the database.
      2. In SSMS, under the server, expand Security, then right click Logins and select "New Login...".
      3. In the New Login dialog, enter the app pool as the login name and click "OK".
      4. You can then right click the login for the app pool, select Properties and select "User Mapping". 
      5. Check the appropriate database, and the appropriate roles. I think you could just select db_datareader and db_datawriter, 
      6. but I think you would still need to grant permissions to execute stored procedures if you do that through EF.
  3. ASP.NET SqlDependency Example:
    1. http://msdn.microsoft.com/en-us/library/9dz445ks(v=vs.110).aspx