samedi 9 janvier 2016

IIS not running ASP.net 5 RC2 MVC 6 web application

Vote count: 0

IIS from Visual Studio will not launch my application. It seems as if Visual Studio is trying to build my project with the incorrect DNX version. However, under my application profile it has the correct solution DNX version of 1.0.0-rc2-16357. When I attempt to launch the application through IIS Express, the app throws up a blank web page and it immediately stops executing with 'dnx.exe' has exited with code 1 (0x1).' There are no exceptions when this happens. However, I am able to launch it through the command line using

dnvm upgrade -u
dnu restore 
dnx ef migrations add initial
dnx ef database update
dnx web

My project.json:

{
    "version": "1.0.0-*",
    "compilationOptions": {
        "emitEntryPoint": true
    },

    "dependencies": {
        "EntityFramework.Commands": "7.0.0-*",
        "EntityFramework.Core": "7.0.0-*",
        "EntityFramework.Sqlite": "7.0.0-*",

        "Microsoft.AspNet.IISPlatformHandler": "1.0.0-*",
        "Microsoft.AspNet.Mvc": "6.0.0-*",
        "Microsoft.AspNet.HttpOverrides": "1.0.0-*",
        "Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-*",
        "Microsoft.AspNet.Server.Kestrel": "1.0.0-*",
        "Microsoft.AspNet.StaticFiles": "1.0.0-*",

        "Microsoft.Extensions.Logging.Console": "1.0.0-*",
        "Microsoft.Extensions.Logging.Debug": "1.0.0-*"
    },

    "commands": {
        "web": "LeafApi",
        "ef": "EntityFramework.Commands"
    },

    "frameworks": {
        "dnx451": { },
        "dnxcore50": { }
    }
}

asked 53 secs ago

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at http://ift.tt/jcXqJW.



IIS not running ASP.net 5 RC2 MVC 6 web application

Aucun commentaire:

Enregistrer un commentaire