Solved

Components in VB.NET 32 bits app

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

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 …
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.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

803 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