none
Application.Deployment.CurrentVersion stopped work when run from Task Scheduler in Windows Server 2008 after updates in May 2011. RRS feed

  • Question

  • The .net Windows App run just fine on the Wondows 2008 Server if executed by hand.

    When you run the App in the Task Scheduler the call to get the Application.Deployment.CurrentVersion kills the app. This started in May 2011.

    If I comment out the call to get the Application.Deployment.CurrentVersion everything works fine.

    <b>.NET Runtime Error:<b/>
    Application: TestVerion.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.InvalidOperationException
    Stack:
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(System.String[])
       at AutoCreditCard.My.MyApplication.Main(System.String[])

    <b>Application Error:<b/>
    Faulting application name: TestVersion.exe, version: 2.0.0.8, time stamp: 0x4e03a487
    Faulting module name: KERNELBASE.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdfe0
    Exception code: 0xe0434352
    Fault offset: 0x000000000000aa7d
    Faulting process id: 0x1be4
    Faulting application start time: 0x01cc31e67eb26221
    Faulting application path: C:\Users\serveradmin\AppData\Local\Apps\2.0\NJHEDD3B.VZK\NO9HPPVR.77A\auto..tion_3c49cbd46aeadc1e_0002.0000_5acf120b312cd1be\TestVersion.exe
    Faulting module path: C:\Windows\system32\KERNELBASE.dll
    Report Id: bcff9205-9dd9-11e0-83b8-005056a06e73

    <b>Windows Error Reporting:<b/>
    Fault bucket , type 0
    Event Name: CLR20r3
    Response: Not available
    Cab Id: 0

    Problem signature:
    P1: testversion.exe
    P2: 2.0.0.8
    P3: 4e03a487
    P4: System.Deployment
    P5: 4.0.0.0
    P6: 4ba1e1ab
    P7: 23
    P8: 55
    P9: System.InvalidOperationException
    P10:

    Attached files:
    C:\Users\serveradmin\AppData\Local\Temp\WER744B.tmp.appcompat.txt
    C:\Users\serveradmin\AppData\Local\Temp\WER745C.tmp.WERInternalMetadata.xml
    C:\Users\serveradmin\AppData\Local\Temp\WER745D.tmp.hdmp
    C:\Users\serveradmin\AppData\Local\Temp\WER9488.tmp.mdmp

    These files may be available here:
    C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_testversion.e_5e5b191b9a2cde2ba6cd6c662899ea0bfc020f9_cab_19b6964a

    Analysis symbol:
    Rechecking for solution: 0
    Report Id: bcff9205-9dd9-11e0-83b8-005056a06e73
    Report Status: 4

    Thursday, June 23, 2011 10:43 PM