title: ASP.NET MVC Web Application on Windows 10 IOT Raspberry PI
body: <p>I have been fighting with this for about a week and am out of ideas. What I am trying to do is get a default ASP.NET 5 application running on Windows 10 IOT on a Raspberry PI 2. Everything runs great on my local machine but no matter what I try, my end result is the same on the PI.</p>
  
  <p><a href="https://i.stack.imgur.com/8GcAH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8GcAH.png" alt="Error receiving when attempting to run web.cmd on PI"></a></p>
  
  <p>I am creating an ASP.NET web application by going to file new project => ASP.NET web application and selecting the pre-configured Web Application under ASP.NET 5 Templates (got the exact same error starting with a blank template as well). I then modified the project.json web command to listen on port 5000.</p>
  
  <blockquote>
    <p>"web": "Microsoft.AspNet.Server.Kestrel --server.urls
    <a href="http://0.0.0.0:5000" rel="nofollow noreferrer">http://0.0.0.0:5000</a>"</p>
  </blockquote>
  
  <p>I then removed the pre-publish scripts from the project.json. At this point I am able to run the debugger using the web debugging configuration and access the site from a browser by navigating to localhost:5000. Awesome!</p>
  
  <p>.NET versions on my local machine are below (dnvm list)</p>
  
  <p><a href="https://i.stack.imgur.com/uVHkZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uVHkZ.png" alt="My DNVM configuration"></a></p>
  
  <p>With this configuration I then ran the below command:</p>
  
  <blockquote>
    <p>dnu publish --out C:\publish\WebApplication1 --no-source --runtime
    dnx-coreclr-win-arm.1.0.0-rc2-16595</p>
  </blockquote>
  
  <p>Everything publishes with no errors or warnings. Again, all seems well (feeling good). I then move the files to the PI's Programs directory (“c:\PROGRAMS”) and made sure port 5000 is open. Next, I navigate to the approot directory on the PI and run .\cmd and get the error posted above. I tried several different daily builds hoping it was bug but obviously I am doing something wrong along the way. Any insight on this would be great! Thanks in advance for your time.</p>
  
  <p>Below is my project.json.</p>
  
  <pre><code>{
    "userSecretsId": "aspnet5-WebApplication1-2d6e07ad-d9e8-40d7-8e21-68bb479b8112",
    "version": "1.0.0-*",
    "compilationOptions": {
      "emitEntryPoint": true
    },
  
    "dependencies": {
      "EntityFramework.Commands": "7.0.0-rc1-final",
      "EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final",
      "Microsoft.AspNet.Authentication.Cookies": "1.0.0-rc1-final",
      "Microsoft.AspNet.Diagnostics.Entity": "7.0.0-rc1-final",
      "Microsoft.AspNet.Identity.EntityFramework": "3.0.0-rc1-final",
      "Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
      "Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
      "Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-final",
      "Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
      "Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
      "Microsoft.AspNet.Tooling.Razor": "1.0.0-rc1-final",
      "Microsoft.Extensions.CodeGenerators.Mvc": "1.0.0-rc1-final",
      "Microsoft.Extensions.Configuration.FileProviderExtensions" : "1.0.0-rc1-final",
      "Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
      "Microsoft.Extensions.Configuration.UserSecrets": "1.0.0-rc1-final",
      "Microsoft.Extensions.Logging": "1.0.0-rc1-final",
      "Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final",
      "Microsoft.Extensions.Logging.Debug": "1.0.0-rc1-final",
      "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-rc1-final"
    },
  
    "commands": {
      "web": "Microsoft.AspNet.Server.Kestrel --server.urls http://0.0.0.0:5000",
      "ef": "EntityFramework.Commands"
    },
  
    "frameworks": {
      "dnx451": { },
      "dnxcore50": { }
    },
  
    "exclude": [
      "wwwroot",
      "node_modules"
    ],
    "publishExclude": [
      "**.user",
      "**.vspscc"
    ]
  }
  </code></pre>
  
  <p>Below is my global.json.</p>
  
  <pre><code>{
      "projects": [ "src", "test" ],
      "sdk": { 
          "version":  "1.0.0-rc2-16595"
      }
  }
  </code></pre>
  
  <p>If it is an issue with mixing rc1 packages with rc2, how do I update everything to rc2? Based on my understanding I can't get rc1 of the core-clr for ARM based processors because its still beta. I tried removing 1.0.0-rc1-update1 but when I create the MVC application, Visual Studio seems to reinstall it. I do agree that everything I have read points to the mixing of versions but I am unsure how to force everything to rc2 versions of the dnx.</p>