Solved

Components in VB.NET 32 bits app

Posted on 2013-11-27
2
271 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 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

13 Experts available now in Live!

Get 1:1 Help Now