使Excel 2002使用.NET v2.0.50727运行时 [英] Making Excel 2002 use .NET v2.0.50727 runtime

查看:52
本文介绍了使Excel 2002使用.NET v2.0.50727运行时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好

我有一个.Net 2.0运行时DLL,我正尝试从Excel加载它(正确地重新加载).我已经通过Fusion Log Viewer进行了验证,它正在尝试以1.1运行时而不是o 2.0进行加载,这说明了失败的原因.

I have a .Net 2.0 runtime DLL that I am trying to load from Excel (it's correct regasm'd). I've verified with the Fusion Log Viewer that it is trying to load with the 1.1 runtime instead o 2.0, which explains why it's failing.

一种解决方案是将EXCEL.EXE.config文件放置在excel旁边,如下所示:

One solution is to put an EXCEL.EXE.config file next to excel that looks like this:

<?xml version="1.0"?>
   <configuration>
    <startup>
     <requiredRuntime version="v2.0.50727" />
    </startup>
</configuration>

但是,我在计算机上没有管理员权限.使Excel 2002使用2.0运行时而不是1.1的替代方法是什么?

However, I do not have admninistrative priviledges on the machine. What are my alternatives to Make Excel 2002 use the 2.0 runtime instead of 1.1?

关于,艾伦.

推荐答案

您遇到的行为是Office XP和2003中的一个错误.要解决此问题,您基本上必须安装

The behavior you encounter is a bug in both Office XP and 2003. For a fix, you basically have to install the KB908002 update from Microsoft.

请参阅我对以下问题的回答:

See my answers to the following questions:

这篇关于使Excel 2002使用.NET v2.0.50727运行时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆