'Microsoft.aspnet.server.kestrel'在IIS

问题描述 投票:0回答:1
Project.JSON:

{ "version": "1.0.0-*", "compilationOptions": { "emitEntryPoint": true }, "dependencies": { "EntityFramework.Commands": "7.0.0-rc1-final", "EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final", "EntityFramework.MicrosoftSqlServer.Design": "7.0.0-rc1-final", "Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final", "Microsoft.AspNet.Mvc": "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" }, "commands": { "web": "Microsoft.AspNet.Server.Kestrel", "ef": "EntityFramework.Commands" }, "frameworks": { "dnx451": { "frameworkAssemblies": { "System.Data.Entity": "4.0.0.0" } }, "dnxcore50": { } }, "exclude": [ "wwwroot", "node_modules" ], "publishExclude": [ "**.user", "**.vspscc" ] }
请注意,我尝试删除global.json文件,并尝试运行命令DNU列表,DNU还原,DNU build。仍然遇到相同的错误。
    

I从RC1切换到RTM,并成功地托管了IIS的API!我使用以下链接:

https://docs.asp.net/en/latest/tutorials/first-web-api.html
asp.net-core iis asp.net-core-mvc asp.net-core-webapi kestrel-http-server
1个回答
0
投票

https://docs.asp.net/en/latest/publishing/iis.html
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.