View Single Post
  #1 (permalink)  
Old August 31st, 2009, 07:53 AM
gr8.jain gr8.jain is offline
Registered User
 
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Post Visual studio 2005(32 bit) code not work in visual studio 2008 on windows server 2008

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. . .
Reply With Quote