[Error] Mixed mode assembly is built against version 'v2.0.50727' ect... menu

User Tag List

Results 1 to 6 of 6
  1. #1
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Error] Mixed mode assembly is built against version 'v2.0.50727' ect...

    Hello,

    Well I got a new computer for Christmas, and I installed C# today

    Before Christmas my program used to work, Now I have installed C# again...

    And I get the error:

    Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

    I don't know know to fix it...


    Heres my code:


    Code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using Magic;
    
    namespace WindowsFormsApplication1
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
    
                InitializeComponent();
            }
    
            private void updatebtn_Click(object sender, EventArgs e)
            {
                // Open BlackMagic and hook!
                BlackMagic WoW = new BlackMagic(); // Start BlackMagic under the name WoW
                WoW.OpenProcessAndThread(SProcess.GetProcessFromProcessName("Wow.exe")); // Hook the first WoW process it finds
                
                // Read Player base
                uint Pbase = WoW.ReadUInt(WoW.ReadUInt(WoW.ReadUInt(0x00CF7C00) + 0x34) + 0x24); // Reads Player Base
                
                // Read Players name
                string Name = WoW.ReadASCIIString(0x00C923F8, 12); // Reads player name
                namelabel.Text = "Player name: " + Name; // Sets players name label
    
                // Read player health
                uint CurHealth = WoW.ReadUInt(WoW.ReadUInt(Pbase + 0x8) + (0x17 *4)); // Reads players current health
    
                uint MaxHealth = WoW.ReadUInt(WoW.ReadUInt(Pbase + 0x8) + (0x1F * 4)); // Reads players max health
                int HPpercent = (int)(((double)CurHealth / (double)MaxHealth) * 100); // Work out Health percent
                HPprogressBar.Value = HPpercent; // Sets percent of health to progress bar
    
                // Read player mana
                uint CurMana = WoW.ReadUInt(WoW.ReadUInt(Pbase + 0x8) + (0x18 * 4)); // Reads players current mana
                uint MaxMana = WoW.ReadUInt(WoW.ReadUInt(Pbase + 0x8) + (0x20 * 4)); // Reads players max mana
                int ManaPercent = (int)(((double)CurMana / (double)MaxMana) * 100); // Work out Mana percent
                if (MaxMana == 0) // If MaxMana is 0 then we dont use mana
                    MessageBox.Show("No Mana found"); //Show message box that says "No Mana found"
                else //Else means is MaxMana isnt 0 then carry on
                    ManaprogressBar.Value = ManaPercent; // Sets percent of mana to progress bar
               
                // Read players level
                uint Level = WoW.ReadUInt(WoW.ReadUInt(Pbase + 0x8) + (0x35 * 4)); // Reads players level
                levellabel.Text = "Player level: " + Level; // Sets players level label
    
                // Read player coords
                float playerx = WoW.ReadFloat(Pbase + 0x798); // Read players xlocation
                float playery = WoW.ReadFloat(Pbase + 0x79C); // Read players ylocation
                float playerz = WoW.ReadFloat(Pbase + 0x7A0); // Read players zlocation
                xlabel.Text = "Player xpos: " + playerx; // Sets players xlocation label
                ylabel.Text = "Player ypos: " + playery; // Sets players ylocation label
                zlabel.Text = "Player zpos: " + playerz; // Sets players zlocation label
    
                string AreaName = WoW.ReadASCIIString(WoW.ReadUInt(0xB6854C), 100); // Reads minimap text
                MessageBox.Show(AreaName);
    
    
                //Click to move test
               // WoW.WriteFloat(0x00CB9814, playerx + 10); // Add 10 feet onto current x pos
                //WoW.WriteFloat(0x00CB9818, playery + 10); // Add 10 feet onto current y pos
                //WoW.WriteInt(0x00CB97A4, 4); // Set Click to move state 4=Walk
    
    
                //string Target = WoW.ReadASCIIString(WoW.ReadUInt(WoW.ReadUInt(0x00B68580 + Unitnameoffset1) + Unitnameoffset2), 100);
    
    
                
            }
        }
    }

    Please help.
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

    [Error] Mixed mode assembly is built against version 'v2.0.50727' ect...
  2. #2
    snigelmannen's Avatar Member
    Reputation
    27
    Join Date
    Jul 2007
    Posts
    318
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I suppose you are using vc 2008, .net 3 or w/e

    and i think you are using W7 or vista right?
    in that case search for the file devenv.exe

    usually located here C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe



    right click, properties and check this box





    And that should fix the problem, if not, ill try to help ya further.
    Last edited by snigelmannen; 12-27-2009 at 08:25 PM.
    " Spy sappin mah sentry! "

  3. #3
    snigelmannen's Avatar Member
    Reputation
    27
    Join Date
    Jul 2007
    Posts
    318
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And thanks for sharing some code lol, a tip though use the Timer for updating the code without pressing a button all the time.

    Code:
            private void TickUpdater_Tick(object sender, EventArgs e)
    Instead of

    Code:
            private void updatebtn_Click(object sender, EventArgs e)
    Last edited by snigelmannen; 12-27-2009 at 08:36 PM.
    " Spy sappin mah sentry! "

  4. #4
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by snigelmannen View Post
    I suppose you are using vc 2008, .net 3 or w/e

    and i think you are using W7 or vista right?
    in that case search for the file devenv.exe

    usually located here C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe



    right click, properties and check this box





    And that should fix the problem, if not, ill try to help ya further.
    Im using Vista and the 2010 Beta 2... As its the only one I could find... And its installed C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE but the devenv.exe does not exist.

    Any ideas?


    EDIT:

    It seems that if I create a application config file and enter:

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0"/>
        <requiredRuntime version="v4.0.20506" />
      </startup>
    </configuration>
    It works... Im sure that its not a good way but it works.
    Last edited by -Ryuk-; 12-28-2009 at 09:59 AM.
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  5. #5
    snigelmannen's Avatar Member
    Reputation
    27
    Join Date
    Jul 2007
    Posts
    318
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well just start VS with admin rights i had that problem before and it goes away if you start with admin rights.
    " Spy sappin mah sentry! "

  6. #6
    snigelmannen's Avatar Member
    Reputation
    27
    Join Date
    Jul 2007
    Posts
    318
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just remembered, in the properties window in visual studio you have the Resource setting to be able to include a manifest, i was just omw to make a guide how to embed admin rights in the programs you write.
    " Spy sappin mah sentry! "

Similar Threads

  1. [Mangos] Server wow 3.3.5 error version
    By Cattamaranvk in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 05-15-2011, 06:06 AM
  2. .NET 4 and Mixed Mode Assembly loading
    By adaephon in forum WoW Memory Editing
    Replies: 9
    Last Post: 04-16-2010, 04:18 PM
  3. Lua Version Error
    By ndogg in forum World of Warcraft General
    Replies: 0
    Last Post: 12-20-2009, 11:36 PM
  4. Critical error 132 WOTLK Final version
    By FlameCRO in forum World of Warcraft General
    Replies: 3
    Last Post: 02-19-2009, 10:22 AM
  5. [Injection] Big Head Mode BC Version
    By Glitchy in forum World of Warcraft Model Editing
    Replies: 25
    Last Post: 02-24-2008, 07:33 AM
All times are GMT -5. The time now is 06:09 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search