asp.net - unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel' Publish website on Windows Server -


i getting following error while running publish asp.net core rc1 website on windows server using web.cmd,

unable load application or execute command 'microsoft.aspnet.server.kestrel'

the publish website has runtime included. here project.json file,

{   "version": "1.0.0-*",   "compilationoptions": {     "emitentrypoint": true   },    "dependencies": {     "docx": "1.0.0.19",     "entityframework": "6.1.3",     "entityframework.core": "7.0.0-rc1-final",     "itextsharp": "5.5.9",     "itextsharp.pdfa": "5.5.9",     "itextsharp.xtra": "5.5.8",     "microsoft.aspnet.iisplatformhandler": "1.0.0-rc1-final",     "microsoft.aspnet.mvc": "6.0.0-rc1-final",     "microsoft.aspnet.mvc.webapicompatshim": "6.0.0-rc1-final",     "microsoft.aspnet.server.kestrel": "1.0.0-rc1-final",     "microsoft.aspnet.staticfiles": "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.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.net.http": "2.2.22",     "newtonsoft.json": "8.0.3"   },    "commands": {     "web": "microsoft.aspnet.server.kestrel"   },    "frameworks": {     "dnx451": {       "dependencies": {         "webapi.core": "1.0.0-*"       },       "frameworkassemblies": {         "system.data": "4.0.0.0",         "system.drawing": "4.0.0.0",         "system.messaging": "4.0.0.0",         "system.transactions": "4.0.0.0"       }     }   },    "exclude": [     "wwwroot",     "node_modules"   ],   "publishexclude": [     "**.user",     "**.vspscc"   ] } 

the publish content has dependency 'webapi.core' added nuget package. class library project in solution.

i have tried dnu restore giving problem webapi.core dependency.

same publish content running fine on windows 10 local machine. please let me know if guys have solution resolve problem.

try deleting global.json file hosted folder. @ approot or @ approot\src[projectname]. if doesn't work, try running commands dnu list, dnu restore, dnu build per this: https://stackoverflow.com/a/34212116/2168359


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -