未能加载文件或程序集

未能加载文件或程序集“export_net_dsb”或它的某一个依赖项。试图加载格式不正确的程序

堆栈跟踪: 


[BadImageFormatException: 未能加载文件或程序集“export_net_dsb”或它的某一个依赖项。试图加载格式不正确的程序。]
  System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
  System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +416
  System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +166
  System.Reflection.Assembly.Load(String assemblyString) +35
  System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +190

[ConfigurationErrorsException: 未能加载文件或程序集“export_net_dsb”或它的某一个依赖项。试图加载格式不正确的程序。]
  System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +11207304
  System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +388
  System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +232
  System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +48
  System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +210
  System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +76
  System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +283
  System.Web.Compilation.BuildManager.CompileGlobalAsax() +50
  System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +676

[HttpException (0x80004005): 未能加载文件或程序集“export_net_dsb”或它的某一个依赖项。试图加载格式不正确的程序。]
  System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +76
  System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +1012
  System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +1025

[HttpException (0x80004005): 未能加载文件或程序集“export_net_dsb”或它的某一个依赖项。试图加载格式不正确的程序。]
  System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11301302
  System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
  System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4338644

 

本机是可以的(我本机是Win2003系统)

部署到服务器上就报这个错误(win2008)


 1.删除引用。。。重新引用。。。再重新生成。。。

未能加载文件或程序集export_net_dsb

export_net_dsb是用C++/Cli写的托管代码

直接从 添加引用--项目 那里加呀

已经被包装成托管代码了,可以像引用C#的DLL一样引用调用

2.右击解决方案->属性->通用属性->调试源文件->删掉不查找源文件里的内容

3.用文本工具打开 .sln 文件看看里面的路径是否正确 不对的话改正过来就好了

来源:英超直播

### 工具集简介 工具集是一种集成化的软件解决方案,通常用于提升开发人员的工作效率。它可能包含多种功能模块,例如代码编辑器、调试工具、版本控制客户端以及项目管理工具等[^1]。 如果用户希望获取工具集的相关资源使用指南,可以尝试通过以下几种方式实现: #### 1. 官方网站下载 大多数知名IT工具都会提供官方下载页面。对于工具集而言,建议访问其官方网站以确保获得最新版的安装包和完整的使用文档。可以通过搜索引擎输入关键词“工具集官网”来找到对应的链接[^2]。 #### 2. 开源社区支持 部分IT工具有开源版本可供开发者自由修改和分发。GitHub GitLab 是这类项目的常见托管平台,在这些平台上搜索 “Maidi Toolkit” 类似的名称可能会发现一些有价值的资源[^3]。 #### 3. 技术论坛交流 Stack Overflow 和 Reddit 等技术讨论区也是寻找特定工具帮助的好地方。当遇到具体操作上的难题,可以在这些站点提问者查阅已有的帖子了解其他用户的解决方法[^4]。 以下是基于Python的一个简单示例脚本,展示如何自动化处理某些常见的文件格式转换任务——这可能是工具集中某项核心能力的一部分应用实例: ```python import pandas as pd def convert_csv_to_excel(csv_file_path, excel_file_path): try: df = pd.read_csv(csv_file_path) writer = pd.ExcelWriter(excel_file_path, engine='xlsxwriter') df.to_excel(writer, index=False) writer.save() print(f'Successfully converted {csv_file_path} to {excel_file_path}') except Exception as e: print('Error during conversion:', str(e)) # Example usage of the function defined above. convert_csv_to_excel('./data/input.csv', './output/output.xlsx') ``` 此段代码展示了利用Pandas库读取CSV数据并将其保存成Excel文件过程,适用于批量加工大量结构化表格资料场景下作为参考模板之一[^5]。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值