我有一个ASP.NET核心RC2项目,我试图将它发布到IIS,并且dotnet publish-iis总是给出命令:
Asp.Net Core IIS Publisher
Usage: dotnet publish-iis [arguments] [options]
Arguments:
<PROJECT> The path to the project (project folder or project.json) being published. If empty the current directory is used.
Options:
-h|--help
在服务器上安装Wcf后(运行:WS2008,x64,Framework4.0,IIS7.5),我得到了这个错误:
The current identity (IIS APPPOOL\ASP.NET v4.0) does not have write access to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files'.
我尝试在x64中构建,但同样的错误。
我看过这篇文章,但真的不知道该怎么做。
我已经实现了Azure DevOps管道作为.Net解决方案。管道很简单,是在"$(build.artifactstagingdirectory)“构建和删除解决方案。
在发布版下,我正在从构建阶段学习技巧,并将其推到Dev阶段,下面是结构:
IIS Deployment (tasks)
1. IIS Web App management
2. Extract file solution (Cos i have to do few Replace token in few files)
- $(System.DefaultWorkingDirectory)/_A
Local Environment { IIS 7.5 | Windows 7 | ASP.NET 4.0 | Integrated Pipeline}
Production Environment {IIS 8.0 | Windows 2012 Server | ASP.NET 4.x | Integrated Pipeline}
WEBAPI功能在本地环境中工作,例如
http://<domain>/api/towncity?startsWith=Marston
但是在生产环境中,我收到了下面的“迟钝”错误消息。
{"Message":"An error