Solved

Components in VB.NET 32 bits app

Posted on 2013-11-27
2
272 Views
Last Modified: 2013-12-02
I'm using a W7 64bits and developing a 32bit app with VS2010 in VB.NET (framework v2.0.50727)

When I intend to use certains component as PDF.OCX, etc, at compiling time I get the following error:

Error      1      is not a valid Win32 application. (Exception from HRESULT: 0x800700C1) Line 130, position 5, etc.etc.etc.

  <data name="AxPDFOCX1.OcxState" mimetype="application/x-microsoft.net.object.binary.base64">
    <value>
        AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
        LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACFTeXN0
        ZW0uV2luZG93cy5Gb3Jtcy5BeEhvc3QrU3RhdGUBAAAABERhdGEHAgIAAAAJAwAAAA8DAAAAfQAAAAIB
        AAAAAQAAAAAAAAAAAAAAAGgAAACTsgAAaAAAAAMACAAL8ldHIAAAAF8AZQB4AHQAZQBuAHQAeABPAwAA
        AwAIAAryV0cgAAAAXwBlAHgAdABlAG4AdAB5AE8DAAADAAgAv3pE0sD///9mAGkAbABlAHQAeQBwAGUA
        AAAAAAs=
</value>
  </data>

Any idea to solve this?

Thks
0
Comment
Question by:leorocha
2 Comments
 
LVL 15

Accepted Solution

by:
ChloesDad earned 250 total points
ID: 39682193
You should change the configuration from Any CPU to x86 in configuration manager. Also ensure that you are referencing 32bit dlls (which I suspect you are as it didn't work as Any CPU)
0
 

Author Closing Comment

by:leorocha
ID: 39689506
Finally i've found the appropiate component (32 bits)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now