Visual Studio 2005(32位)代码在Windows Server 2008 64位上的Visual Studio 2008中不起作用 [英] Visual studio 2005(32 bit) code not work in visual studio 2008 on windows server 2008 64 bit

查看:92
本文介绍了Visual Studio 2005(32位)代码在Windows Server 2008 64位上的Visual Studio 2008中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我是Visual Studio2008的新手.但是从上一年开始使用Visual Studio 2005.
我在Visual Studio 2005中使用Windows XP sp2(32位)系统上的.net Framework 2.0开发了一个Windows应用程序
. .net 2.0和带有.net 2.0和/或3.0的Windows 2003 Server
,但是现在我想在64位计算机上的Windows Server 2008上运行它.但是卡在其中.
关于应用程序:我的应用程序使用一个COM组件(EDP),该组件使用安装在(32位系统)c:\ windows \ system32 \文件夹和(如果64)中的api(称为EDP API)位系统)c:\ windows \ syswow64 \文件夹.我正在使用Visual Basic进行编码

我所做的是在Windows Server 2008(64位计算机)上使用.net 3.5在Visual Studio 2008中启动一个新的winform项目,并在项目中提供该api的引用,然后开始在form1.vb中编写代码(如下)-
-------------------------------------------------- -------------------------------------
line1公用类Form1
line2公用WithEvents edpVar作为新的EDPActiveX.EDP
line3 Dim a As String ="
line4
line5私有子Form1_Load(ByVal发送者为System.Object,ByVal e为System.EventArgs)处理MyBase.Load
line6 MsgBox(edpVar.MaxEDPVersion.ToString)
line7 End Sub
line8 End Class
--------------- -------------------------------------------------- ---------------------------

并使用F5键运行它,但在
中给出了错误Public WithEvents edpVar As New EDPActiveX.EDP

第2行出现错误-消息-
无法创建表单.有关更多信息,请参见Exception.InnerException.错误:由于以下错误,无法检索具有CLSID(E82A4C8E-7CBA-11D3-8D90-005004561FA5)的组件的COM类工厂:80,040,154

内部异常是-
由于以下错误,无法检索具有CLSID的组件的COM类工厂(E82A4C8E-7CBA-11D3-8D90-005004561FA5):80,040,154


相同的代码可以在32位系统上很好地工作使用Win XP和Win Server 2003以及Visual Studio 2005,.net 2.0和/或3.0
,所以我认为这是我所面临的问题,这是由于64位系统
有人可以帮我解决这个问题..

我的几个客户端希望使用64位系统而不是32位,所以我需要解决它. . .

hi all
   i am new for visual studio2008. but using visual studio 2005 since last 1 yr.
   i am developed a windows application in visual studio 2005 using .net framework 2.0 on windows XP sp2 (32 bit) system
   It works very fine on windows xp with .net 2.0 and windows 2003 server with .net 2.0 and /or 3.0
   but now i want to run it on windows server 2008 on 64 bit machine. but Stuck in it.
 About application:   my application usage a com component(E D P) which usage a api (Called E D P API )installed in (32 bit system) c:\windows\system32\ folder and in (if 64 bit system) c:\windows\syswow64\ folder. i am using visual basic for coding

  what i did is start a new winform project in visual studio 2008 with .net 3.5 on windows server 2008 (64 bit machine) and giving reference of that api in project and then start writing code in form1.vb (below)-
---------------------------------------------------------------------------------------
line1   Public Class Form1
line2    Public WithEvents edpVar As New EDPActiveX.EDP
line3    Dim a As String = ""
line4
line5    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
line6        MsgBox(edpVar.MaxEDPVersion.ToString)
line7    End Sub
line8  End Class
--------------------------------------------------------------------------------------------

and run it using F5 key but it giving error in
    Public WithEvents edpVar As New EDPActiveX.EDP

   error come in line 2 is with message -
Failed to create the form. For more information, see Exception.InnerException. Error: The COM class factory for component with CLSID (E82A4C8E-7CBA-11D3-8D90-005004561FA5) could not be retrieved due to the following error: 80,040,154

the inner Exception is-
The COM class factory for component with CLSID (E82A4C8E-7CBA-11D3-8D90-005004561FA5) could not be retrieved due to the following error: 80,040,154


the same code work nicely on 32 bit system with win xp and win server 2003 with visual studio 2005, .net 2.0 and/or 3.0
so i thought this is the problem i face is due to 64 bit system
can anyone help me in this. ..

my several client want to  use 64 bit system rather than 32 bit so i need it resolved. . .

推荐答案

您的问题看起来与图编辑器无关.改问有问题的COM组件的作者.
Your question does not look like related to the diagram editor. Ask the author of the COM component in question instead.


这篇关于Visual Studio 2005(32位)代码在Windows Server 2008 64位上的Visual Studio 2008中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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