An assembly specified in the application dependencies manifest

AI权益加码!Claude Code、Cursor等20+工具免费用! 购周边限时加赠Coding Plan Lite,畅享主流AI工具!学习进阶更高效! 阅读详情

原文地址:https://blog.csdn.net/lihongzhai/article/details/79039160

 

今天遇到了很奇怪的现象,在Windows上发布的asp.net core app部署到linux上就不好用了。提示如下错误:

Error: 
An assembly specified in the application dependencies manifest (Calculate24Web.deps.json) was not found: 
package: ‘Microsoft.AspNetCore.Antiforgery’, version: ‘2.0.1’ 
path: ‘lib/netstandard2.0/Microsoft.AspNetCore.Antiforgery.dll’ 
This assembly was expected to be in the local runtime store as the application was published using the following target manifest files: 
aspnetcore-store-2.0.3.xml

把源码拷贝到Linux的机器上,可以编译,可以在开发模式下运行,(好像在Debug模式下还成功了),后来在Release模式下发布,就不能运行,提示上面的错误。

经过一天的倒腾,终于,最后,是个小问题。问题是asp.net 没有把服务器需要的包全部发布出来,它认为是目标系统带着有,而实际上目标系统中没有。解决办法:

增加如下一行到 csjproj文件中即可:<PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest> 
最后csjproj文件看上去像这个样子:

<Project Sdk="Microsoft.NET.Sdk.Web">
  <PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>
    <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>
  </PropertyGroup>

 

Unity安装问题 Unity2019.3.2f1安装报错 安装之后新建项目报错截图如下: 参考:https://forum.unity.com/threads/get-blank-errors-in-new-project.843817/ 报错信息 打开C:\Users\UserName\AppData\Local\Unity\Editor\Editor.log发现详细信息如下: -----CompilerOut... 阅读详情

相关推荐

Unity2021.3.19.f1 创建工程报错

可能是因为安装Unity时弹出360,将某些需要下载的文件阻挡了。查看未报错电脑安装的manifest比较没有发现异常;新安装的Unity在创建工程、打开老工程时报错,网上找了一圈,没有找到关于Unity的解决方案;重装Unity一切正常。

不文不武的禾文 1717

WPF 错误 独立发布无响应

错误原因: Message: Error: An assembly specified in the application dependencies manifest (*.deps.json) was not found: package: ‘Microsoft.Data.SqlClient.SNI.runtime’, version: ‘2.0.1’ path: ‘runtimes/win-x64/native/Microsoft.Data.SqlClient.SNI.pdb’ 解决方案: 在项目

逸只猫の博客 723

解决.net core托管在linux/Centos中出现assembly specified in the application dependencies manifest not found

运行dotnet xxx.dll出现如下错误提示:Error: An assembly specified in the application dependencies manifest (RhWeb.deps.json) was not found: package: 'Microsoft.ApplicationInsights.AspNetCore', version: '2.1...

tilovefa的博客 2204

Asp.NET Core 在IIS部署 An assembly specified in the application dependencies manifest was not found

今天在发布应用的时候,出来了一个报错:An assembly specified in the application dependencies manifest was not found 情况如下图 后来找了一下原因: (划重点)是因为给我打包的同事,他电脑上的SDK还是2.0.9的版本,但是我在服务器上装的是最新的.NET Core2.1.4,所以用 2.0.9打出来的包没办法在2...

CuiLanren的博客 1155

An assembly specified in the application dependencies manifest (…) was not found

将.net core app发布到linux出现的错误原文地址:https://stackoverflow.com/questions/48896443/an-assembly-specified-in-the-application-dependencies-manifest-was-not-fouI upgraded Microsoft.AspNetCore from 2.0.3 to 2.0...

Freewind的专栏 4449

Asp.NET Core 在IIS部署 An assembly specified in the application dependencies manifest was not found...

今天在发布应用的时候,出来了一个报错:An assembly specified in the application dependencies manifest was not found 情况如下图 后来找了一下原因: (划重点)是因为给我打包的同事,他电脑上的SDK还是2.0.9的版本,但是我在服务器上装的是最新的.NET Core2.1.4,所以用 2.0.9打出来的包没办法在2...

weixin_30802171的博客 123

An assembly specified in the application dependencies manifest (xxxxx.json) was not found:

错误信息: Error: Anassemblyspecifiedintheapplicationdependenciesmanifest(xxxxx.json)wasnotfound: package:'Microsoft.ApplicationInsights.AspNetCore',version:'2.1.1' path:'lib...

万事俱备,就差一个程序员了 2537

.Net Core An assembly specified in the application dependencies manifest xx was not found

异常详细: Error: An assembly specified in the application dependencies manifest (xxx.json) was not found: package: 'Microsoft.ApplicationInsights.AspNetCore', version: '2.1.1' path: 'lib/netstandard1.6/Microsoft.ApplicationInsights.AspNetCore.dl

neeeeeeeeeu 883

An assembly specified in the application dependencies manifest (xxx.deps.json) was not found:

在linux上部署.net core mvc app时遇到的问题 使用命令 dotnet publish -o &amp;lt;output_directory&amp;gt; 将app发布到指定的文件夹, 然后运行 xxx.dll,报错: An assembly specified in the application dependencies manifest (xxx.deps.json) ...

Akizuki的博客 5万+

Error: An assembly specified in the application dependencies manifest (Microsoft.NETCore.App.deps.

Error:

好好学习天天向上 389

BUG 4:An assembly specified in the application dependencies manifest (XXXX.deps.json) was not found.

Error: An assembly specified in the application dependencies manifest (XXXX.deps.json) was not found: package: 'Microsoft.ApplicationInsights.AspNetCore', version: '2.1.1' path: 'lib/netstandard1.6/Microsoft.ApplicationInsights.AspNetCore.dll' ...

sinat_27354333的博客 645

CentOS7 安装.netcore 2 部署应用出现An assembly specified in the application dependencies manifest (xxx.deps.

CentOS7 安装.netcore 2 部署应用出现An assembly specified in the application dependencies manifest (xxx.deps.json)      # dotnet xxx.dll Error: An assembly specified in the application dependencies manif...

天外有天,人外有人。 专注品质 不断创新 让精益求精成为习惯 3563

An assembly specified in the application dependencies manifest (api.sys.com.deps.json) was not found

.net core运行失败,后来在csproj中加入 <PropertyGroup> <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest> </PropertyGroup> 重新发布运行即可。 转载于:htt...

dibachun8482的博客 1404

CentOS7 安装.netcore 2 部署应用出现An assembly specified in the application dependencies manifest (xxx.deps....

# dotnet xxx.dll Error: An assembly specified in the application dependencies manifest (xxx.deps.json) was not found: package: 'Microsoft.AspNetCore.Antiforgery', version: '2.0.1' path...

weixin_30292843的博客 391

制作的 dotnet tool 运行失败提示依赖缺失

小伙伴做了一个很好用的 dotnet tool 工具,但是这个工具仅在他的设备上能运行,在我的设备上运行就会退出提示 An assembly specified in the application dependencies manifest (LindexiDoubi.deps.json) was not found 找不到依赖 默认选择 dotnet tool 的 NuGet 包是会带上...

lindexi 1530

.Net Core 发布异常 An assembly specified in the application

在Core 2.0站点发布时.. DotNet WW.kkkk.dll 报错..报文内容如下: Error: An assembly specified in the application dependencies manifest (ZKEACMS.WebHost.deps.json) was not found: package: 'Microsoft.App...

weixin_30662849的博客 346

.net core An assembly specified in the application dependencied mainfest<****.json>was not found解决办法...

  最近在开发项目中,遇到了一个问题.在本机开发中部署到本机iis上或者本机控制台都没有问题,运行正常.当发布部署到服务器(windowsServer)中的时候一直运行不起来,用控制台也运行不起来,直接报错.   怎么更新版本都无法解决.最终看报错信息是因为Microsoft.ApplicationInsights.AspNetCore不存在,找不到.最后在项目中引用它并且发布,发现它并未在...

weixin_30408165的博客 172
上一篇: Error -99 EADDRNOTAVAIL address not available
下一篇: 小程序的flex布局
心灵泽尘
博客等级 码龄9年 32粉丝 83原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值