locked
Error Message Help RRS feed

  • Question

  • I wrote a program. I had to reinstall my Vista Operating System and restore my programming code for my projects.  I partitioned my hard drive. I keep my OS and assembly files on a separate partition than the partition I keep my VB files on.

    When I went to run my programs (all of which worked before I had to reinstall my Vista program), I got an error. When I loaded a webpage in it, I got a message saying tht there's an error and it was out of memory. The message said that I was trying to access(read and write) to protected memory or the memory for the system was corrupt. 

    When I looked at the error list, I got the following message

    Warning    1    Referenced assembly 'obj\Debug\Interop.Scripting.dll' targets a different processor than the application.    BibleStudy

    I looked through other forum pages for the problem and how to resolve it. Others had the same problem and said that they set the platform target to x86. I went to my VB Express program and looked at options. When I looked at the platform option, it said Any PC. There's no option for the X86.

    Can you explain to me what I am doing wrong and how to fix the problem?

    The program was created on a VB2008 and then upgraded to VB2010 using the 2010 upgrade feature.

    Thank You

    Tuesday, November 27, 2012 7:36 PM

Answers

  • Hi Akua,

    Welcome to the MSDN forum.

    I suppose this is the limitation of Express version of visual studio. You could try following steps to set target CPU:

    From the "Tools" menu, select the "Options" item, and then select the "Projects and Solutions" option in the listbox on the left-hand side of the Options dialog. (You might have to check "Show all settings" first.) Check the box that says "Show advanced build configurations".

    Then, on the "Build" menu, see if you have an item called "Configuration Manager". If not, you need to add the item to the menu (right-click on any area in the toolbar and choose "Customize" at the bottom of the list).

    Once you've opened the Configuration Manager dialog, go to the "Active solution platform" drop-down box and choose "New". From the "New Solution Platform" dialog that appears, you should be able to choose "x86" from the first drop-down box.

    reference link: http://stackoverflow.com/questions/4104228/change-target-cpu-settings-in-visual-studio-2010-express

    If you targeted specific CPU and this warning still appears, please feel free to let me know.

    Best regards,


    Shanks Zen
    MSDN Community Support | Feedback to us

    Friday, November 30, 2012 2:47 AM
    Moderator