Announcement

Collapse
No announcement yet.

Problem mit 32bit/64bit?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem mit 32bit/64bit?

    Hallo zusammen,

    ich habe eine Solution die aus einer Konsolenanwendung in C# (my.exe) und einer Klassenbibliothek in VB (my_framework.dll) besteht. Kompiliert wird das mit der Einstellung "Any CPU". Auf einem 32Bit Betriebssystem funktioniert alles wunderbar, nur auf einem 64Bit System machte es Probleme:

    Code:
      Problemereignisname:	CLR20r3
      Problemsignatur 01:	my.exe
      Problemsignatur 02:	1.0.0.0
      Problemsignatur 03:	4c5570ee
      Problemsignatur 04:	my_framework
      Problemsignatur 05:	1.0.0.0
      Problemsignatur 06:	4c52bbb0
      Problemsignatur 07:	27
      Problemsignatur 08:	1
      Problemsignatur 09:	System.BadImageFormatException
      Betriebsystemversion:	6.1.7600.2.0.0.16.7
      Gebietsschema-ID:	1031
    Wenn ich das mit einer Exception abfange kommt diese Fehlermeldung:
    "Es wurde versucht, eine Datei mit einem falschen Format zu laden (Ausnahme von HRESULT: 0x8007000B)"

    Ich habe schon versucht das auf 64bit zu kompilieren, aber es kommt die gleiche Meldung. Auf allen 32Bit Windowssystemen geht, auf allen 64Bit kommt die Fehlermeldung.

    Hat jemand eine Idee?

    Viele Grüße
    Ralf

  • #2
    Hallo,

    hilft das unter Umstellung auf Windows 7 64-Bit geschriebene weiter?


    mfG Gü
    "Any fool can write code that a computer can understand. Good programmers write code that humans can understand". - Martin Fowler

    Comment


    • #3
      Hallo,

      ich habe die dll nun mal mit x86 kompiliert. Bekomme aber immer noch die gleiche Fehlermeldung.

      Hast Du noch eine Idee?

      Viele Grüße
      Ralf

      Comment


      • #4
        Hallo,

        nur die dll oder auch die exe? Ich denke die exe ist als "Host-Prozess" der entscheidende Teil - bin aber nicht ganz sicher.

        Was mir sonst noch einfällt: Kannst du auf dem 64bit-System manuell das mit WoW im 32bit-Modus ausführen und schauen ob der Fehler dort auch auftritt.


        mfG Gü
        "Any fool can write code that a computer can understand. Good programmers write code that humans can understand". - Martin Fowler

        Comment


        • #5
          ok, hab den Fehler gefunden. Man muss alle Dateien mit x86 kompilieren. Wieder was gelernt :-)

          Vielen Dank für die Unterstützung

          Ralf

          Comment


          • #6
            Hallo,

            da es mich interessiert ich aber gerade nicht testen kann:
            Was passiert wenn die exe mit x86 und die dll mit x64 kompiliert wird? Kannst du das bitte testen?


            mfG Gü
            "Any fool can write code that a computer can understand. Good programmers write code that humans can understand". - Martin Fowler

            Comment


            • #7
              Dann kommt der gleiche Fehler, lustig :-)

              Comment


              • #8
                Hallo,

                danke für die Info. Also können wir festhalten dass
                Man muss alle Dateien mit x86 kompilieren.
                gilt


                mfG Gü
                "Any fool can write code that a computer can understand. Good programmers write code that humans can understand". - Martin Fowler

                Comment


                • #9
                  wieder was gelernt

                  Comment

                  Working...
                  X