方法一:命令行拷贝。

开始--运行--cmd--"cd C:\WINDOWS\assembly".一般自己开发的dll都在GAC_MSIL这个文件夹下面,按照我如下的截图就可以拷贝出你所需要的DLL文件。

方法二:使用WinRAR工具

打开WinRAR工具,把 C:\WINDOWS\assembly地址输入到地址栏中,如下图。在WinRAR中已经详细列出GAC里面的文件结构。

进入到GAC_MSIL文件夹下面,如图:

这里面你直接“Ctrl+C”复制(右键没有复制这个选项),粘帖到你电脑里,OK!

方法3:

当机器上安装一些程序后,Assembly中的DLL会变得越来越丰富。

拿个常见问题来说明。

安装ReportViewer后其中会出现以下DLL。

Microsoft.ReportViewer.ProcessingObjectModel.dll

Microsoft.ReportViewer.WinForms.dll

Microsoft.ReportViewer.Common.dll

下面两个,在VS安装目录可以搜到,而Microsoft.ReportViewer.ProcessingObjectModel.dll无论如何也是搜不着,全硬盘搜索也搜不到。

那么,就开始执行以下命令:

Subst b: %windir%\assembly

执行完后,会发现硬盘分区多了个B盘,打开后看到了所有assembly下的DLL,于是在这里就搜到了Microsoft.ReportViewer.ProcessingObjectModel.dll,将其复制出来。

然后,这个虚拟的B分区不再需要,于是执行以下命令将其删除:

Subst b: /d

只要是在这台机器上安装了的DLL或在assembly中可以看到的都是可以用上面的办法拿出来的。

在开发环境的电脑上可生成报表,但是一到客户端就提示An error occurred during local report processing错误。

猜想是缺dll,补充上

Microsoft.ReportViewer.Common.dll

Microsoft.ReportViewer.WinForms.dll

结果问题依旧,难道还缺?

google后得知还缺一个

Microsoft.ReportViewer.ProcessingObjectModel.dll

这个可不好找,在C:\Windows\assembly中能看到,但不能直接复制。

于是在命令提示符下

C:\Users\Thinkpad>cd C:\Windows\assembly

C:\Windows\assembly>cd GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel\10.
0.0.0__b03f5f7f11d50a3a

C:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel\10.0.0
.0__b03f5f7f11d50a3a>copy Microsoft.ReportViewer.ProcessingObjectModel.dll d:\Mi
crosoft.ReportViewer.ProcessingObjectModel.dll

如何从GAC中拷贝文件出来 C:\Windows\assembly的更多相关文章

  1. Kubernates之从pod中拷贝文件到宿主机

    想从k8s的pod中拷贝文件到宿主机,kubectl 的cp命令,但是网上搜索了下,感觉有点乱,自己记录下. hadoop这个namespace下,有个hadoop-hadoop-yarn-rm-0的 ...

  2. kubectl cp 从k8s pod 中 拷贝 文件到本地

    请查看官方的说明 kubectl cp --help 官方说使用cp , pod里需要有tar命令 从k8s pod 中 拷贝 文件到本地 这是我使用的命令 kubectl exec redis-6c ...

  3. Ubuntu中拷贝文件的操作

    cp(copy)命令 该命令的功能是将给出的文件或目录拷贝到另一文件或目录中. 语法: cp [选项] 源文件或目录 目标文件或目录 说明:该命令把指定的源文件复制到目标文件或把多个源文件复制到目标目 ...

  4. windows程序中拷贝文件的选择

    最近需要在Windows下拷贝大量小文件(数量在十万级别以上).写了些拷贝文件的小程序,竟然发现不同的选择,拷贝的速度有天壤之别! 现有这样的测试数据:1500+小文件,总大小10M左右.现用不同方法 ...

  5. windows emacs 中拷贝文件

    cp d:/workspace/LoginWeb/target/LoginWeb.war D:/Program\ Files/apache-tomcat-7.0.78/webapps/LoginWeb ...

  6. Windows Phone 7 中拷贝文件到独立存储

    private void CopyToIsolatedStorage(){    using (IsolatedStorageFile storage = IsolatedStorageFile.Ge ...

  7. python 从filelist.txt中拷贝文件到另一文件夹中

    #! python #coding:utf-8 ##!/usr/bin/python # Filename : fileCp.py import sys import os import shutil ...

  8. 如何从windows中拷贝文件到linux (ubuntu)??

    安装ssh,然后用客户端似的界面远程手动拖动即可.

  9. python拷贝文件小程序(windows)

    #!/usr/bin/python import os source='F:\\lh.jpg' target='E:\\' copy_command="xcopy %s %s"%( ...

随机推荐

  1. redis09---redis 服务器端命令

    redis 服务器端命令 db0,db1,db2是数据库,外层是服务器,服务器下面有20个数据库. :>time ) "" //多少秒 ) "" //多少 ...

  2. Configuring Your EMS Server or EMS Console Server on Windows/Linux

    EMS Configuration Files RAD Studio provides the scripts to render the web-browser console, the EMS s ...

  3. [RK3288][Android6.0] 调试笔记 --- 通用GPIO驱动控制LED【转】

    本文转载自:http://m.blog.csdn.net/kris_fei/article/details/69553422 Platform: ROCKCHIPOS: Android 6.0Kern ...

  4. ewasm项目初探

    为了改进EVM1.0,以太坊的新一代虚拟机项目ewasm (github.com/ewasm)将支持WebAssembly(wasm),wasm在性能,扩展性,开发工具,社区都更有优势.除以太坊外,一 ...

  5. 「SHOI2007」「Codevs2341」 善意的投票(最小割

    2341 善意的投票 2007年省队选拔赛上海市队选拔赛 时间限制: 5 s 空间限制: 128000 KB 题目等级 : 大师 Master   题目描述 Description 幼儿园里有n个小朋 ...

  6. Allure生成测试报告

    Allure 使用 安装 adapter 如果要在 pytest 中使用 Allure,需要使用一个 Adaptor Allure Pytest Adaptor 安装 pytest-allure-ad ...

  7. iOS多线程GCD的简单使用

    在iOS开发中,苹果提供了三种多线程技术,分别是: (1)NSThread (2)NSOperation (3)GCD 简单介绍一下GCD的使用. GCD全称 Grand Central Dispat ...

  8. E - Alice and Bob

    time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standa ...

  9. node-- express()模块

    1.代码分析 var express = require('express'); var app = express(); app.get('/', function(req, res){ res.s ...

  10. Thrift 入门

    1下载 https://thrift.apache.org/download 或 Apache Thrift Archive 下载编译好的release可执行文件: Thrift compiler f ...