由于exel命名空间对Windows XP中的instll密码生成软件造成问题 [英] due exel namespace create problem to instll password generation software in windows xp

查看:87
本文介绍了由于exel命名空间对Windows XP中的instll密码生成软件造成问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在c#.net2008中开发了密码生成软件,并且操作系统使用Windows Vista,并且我的软件很容易安装在Windows Vista,Windows 7中,但问题是它没有安装在Windows XP中.
显示此错误---
错误签名:

hello, I develop password generation software in c#.net2008 and operation system use windows vista and my software easily install in windows vista,windows 7 but problem is that it is not install in windows xp.
show this error---
Error signature:

Event Type : clr20r3 p1:password generation.exe P2:3.1.3.4
P3: 4d947143 p4:password generation p5:3.1.3.4
P6:4d947143 p7:1 p8:e p9:system.io.filenotfoundexception



但是,如果我删除了这些命名空间,它也会同时安装在Windowsxp中:
//使用Microsoft.Office.Core;
//使用Excel = Microsoft.Office.Interop.Excel;

请帮助我如何删除此错误,错误



but if i remove these namespace , it install in windowsxp also:
//using Microsoft.Office.Core;
//using Excel = Microsoft.Office.Interop.Excel;

plese help me how i remove this,error

推荐答案

很可能您没有在其上安装Interop程序集和/或Excel XP机器.确保已安装Excel,并在必要时将互操作程序集包括在安装中.还要确保安装了.Net Framework的必要版本(目标版本).
Most likely you don''t have the Interop assemblies and/or Excel installed on the XP machine. Ensure that Excel is installed and if necessary include the interop assemblies to the installation. Also ensure that necessary version (targeted version) of .Net Framework is installed.


该异常是找不到文件"错误,因此缺少文件,您的代码正在尝试载入.没有回溯,就无法知道该文件是什么,无法检测代码以记录对文件的操作,然后在有问题的计算机上再次尝试应用.
The exception is a "File not Found" error, so there''s a file missing that your code is trying to load. There''s no way to know what that file is without you going back, instrumenting your code to log what it''s doing to a file, then trying your app again on the machine in question.


这篇关于由于exel命名空间对Windows XP中的instll密码生成软件造成问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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