2011-01-05 12 views
7

मेरे पास एक प्रोजेक्ट है जिसे मैंने विंडोज 7 मशीन पर विजुअल स्टूडियो 2010 में बनाया है। यह किसी समस्या के बिना संकलित और चलाता है।मान्य Win32 एप्लिकेशन

जब मैं नेट 4 के साथ एक XP मशीन यह त्रुटि के साथ नहीं चलता है पर आवेदन जगह

मैं कोई भाग्य के साथ यहाँ सब कुछ करने की कोशिश की "एक मान्य Win32 अनुप्रयोग नहीं है": http://blogs.msdn.com/b/dsvc/archive/2009/06/19/troubleshooting-not-a-valid-win32-application-error-at-the-startup.aspx

मुझे नहीं पता कि क्या गलत है। कोई विचार?

धन्यवाद

FYI करें: bindump:

Microsoft (R) COFF/PE Dumper Version 10.00.30319.01 
Copyright (C) Microsoft Corporation. All rights reserved. 


Dump of file TimeKeeper.exe 

PE signature found 

File Type: EXECUTABLE IMAGE 

FILE HEADER VALUES 
      8664 machine (x64) 
       2 number of sections 
     4D24EED9 time date stamp Thu Jan 06 09:21:13 2011 
       0 file pointer to symbol table 
       0 number of symbols 
       F0 size of optional header 
       22 characteristics 
        Executable 
        Application can handle large (>2GB) addresses 

OPTIONAL HEADER VALUES 
      20B magiC# (PE32+) 
      8.00 linker version 
      92600 size of code 
      600 size of initialized data 
       0 size of uninitialized data 
       0 entry point 
      2000 base of code 
      400000 image base (0000000000400000 to 0000000000497FFF) 
      2000 section alignment 
      200 file alignment 
      4.00 operating system version 
      0.00 image version 
      4.00 subsystem version 
       0 Win32 version 
      98000 size of image 
      200 size of headers 
       0 checksum 
       2 subsystem (Windows GUI) 
      8540 DLL characteristics 
        Dynamic base 
        NX compatible 
        No structured exception handler 
        Terminal Server Aware 
      400000 size of stack reserve 
      4000 size of stack commit 
      100000 size of heap reserve 
      2000 size of heap commit 
       0 loader flags 
       10 number of directories 
       0 [  0] RVA [size] of Export Directory 
       0 [  0] RVA [size] of Import Directory 
      96000 [  598] RVA [size] of Resource Directory 
       0 [  0] RVA [size] of Exception Directory 
       0 [  0] RVA [size] of Certificates Directory 
       0 [  0] RVA [size] of Base Relocation Directory 
      94454 [  1C] RVA [size] of Debug Directory 
       0 [  0] RVA [size] of Architecture Directory 
       0 [  0] RVA [size] of Global Pointer Directory 
       0 [  0] RVA [size] of Thread Storage Directory 
       0 [  0] RVA [size] of Load Configuration Directory 
       0 [  0] RVA [size] of Bound Import Directory 
       0 [  0] RVA [size] of Import Address Table Directory 
       0 [  0] RVA [size] of Delay Import Directory 
      2000 [  48] RVA [size] of COM Descriptor Directory 
       0 [  0] RVA [size] of Reserved Directory 


SECTION HEADER #1 
    .text name 
    924FE virtual size 
    2000 virtual address (0000000000402000 to 00000000004944FD) 
    92600 size of raw data 
    200 file pointer to raw data (00000200 to 000927FF) 
     0 file pointer to relocation table 
     0 file pointer to line numbers 
     0 number of relocations 
     0 number of line numbers 
60000020 flags 
     Code 
     Execute Read 

    Debug Directories 

     Time Type  Size  RVA Pointer 
    -------- ------ -------- -------- -------- 
    4D24EED9 cv   8E 00094470 92670 Format: RSDS, {07D03CC8-7510-4698-B5EB-6DC50714B88D}, 3, C:\Users\Mitch\Documents\Timekeeper 24.12.2010\client\TimeKeeper 24-12-2010\TimeKeeper\obj\x86\Release\TimeKeeper.pdb 

SECTION HEADER #2 
    .rsrc name 
    598 virtual size 
    96000 virtual address (0000000000496000 to 0000000000496597) 
    600 size of raw data 
    92800 file pointer to raw data (00092800 to 00092DFF) 
     0 file pointer to relocation table 
     0 file pointer to line numbers 
     0 number of relocations 
     0 number of line numbers 
40000040 flags 
     Initialized Data 
     Read Only 

    Summary 

     2000 .rsrc 
     94000 .text 
+3

आप एक 64 बिट आवेदन का निर्माण किया है - XP है मशीन 64 बिट? यदि नहीं, तो यह समस्या होगी। 32 बिट मशीन 64 बिट आर्किटेक्चर के लिए बनाए गए प्रोग्राम नहीं चला सकते हैं। – brady

उत्तर

20

परियोजना गुण में, परियोजना "x64" लक्षित कर रहा है के बजाय "किसी भी सीपीयू"? (ऐसा लगता है कि बाइंडम्प हेडर में "मशीन (x64)" लगता है, जो इस तरह लगता है यह समस्या हो सकती है)

क्या यह 4 नेट या क्लाइंट प्रोफाइल को लक्षित कर रहा है? यदि पूर्ण हो, तो जांचें कि आपके XP में पूर्ण प्रोफ़ाइल इंस्टॉल है, न केवल ग्राहक प्रोफ़ाइल।

(संबंधित होने की संभावना नहीं है, लेकिन) क्या विजुअल स्टूडियो 2010 रेडिस्ट XP मशीन पर स्थापित है?

चेक उस फ़ाइल Win32 मशीन पर स्थानांतरण के दौरान भ्रष्ट नहीं किया गया है (उदाहरण के लिए इसे वापस कॉपी करें और diff या अपने Win7 बॉक्स पर इसे चलाने)

+0

यह भविष्य की समस्या भी हो सकती है। मैं पूरी प्रोफ़ाइल का उपयोग कर रहा हूं, लेकिन अभी .NET 4 के लिए Google पर पहला परिणाम डाउनलोड किया गया है। क्या यह केवल ग्राहक प्रोफ़ाइल है? – Mitch

+0

कभी-कभी यह कहना मुश्किल होता है, लेकिन मुझे मिली पहली हिट यह थी: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en। डाउनलोड में _full_ है जिसका नाम है, इसलिए मुझे लगता है कि यह पूर्ण प्रोफाइल है। (आम तौर पर आपको क्लाइंट प्रोफाइल को लक्षित करना चाहिए जबतक कि आपको केवल कुछ अतिरिक्त चीज़ों की आवश्यकता नहीं होती है जो केवल पूर्ण प्रोफ़ाइल में होती है, और फिर इससे कोई फर्क नहीं पड़ता कि अंतिम उपयोगकर्ता ने कौन सा इंस्टॉल किया है)। –

संबंधित मुद्दे