Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Components in VB.NET 32 bits app

Posted on 2013-11-27
2
Medium Priority
?
278 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 500 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

972 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