Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 2008 > Visual Basic 2008 Essentials
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Visual Basic 2008 Essentials If you are new to Visual Basic programming with version 2008, this is the place to start your questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2008 Essentials section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 31st, 2009, 08:53 AM
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
  #2 (permalink)  
Old August 31st, 2009, 11:07 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,190
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Your problem is clearly not vb.net, is the component you are trying to create.. besides that, I don't know how we can help you...
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 3 Source Code and Visual Studio 2008 MatrixArchitect BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 0 April 10th, 2009 08:22 PM
Can I use Visual Studio 2008 Kevin7777 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 25 March 7th, 2009 08:27 AM
Help with Visual Studio 2008 IDE dotnetDeveloper Visual Studio 2005 1 December 6th, 2008 12:55 PM
very new to Visual Studio 2008 Joel Saren Visual Basic 2008 Essentials 2 June 6th, 2008 04:27 PM
Visual Studio 2008 looks juzjess Intro Programming 0 October 26th, 2007 04:35 PM



All times are GMT -4. The time now is 10:52 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.