locked
Windows 8 and ClickOnce error RRS feed

  • Question

  • I have a ClickOnce application which is being done in Visual Studio 2012 and targeting .NET 4.0 FULL. The program has been used without any issues on Windows XP, Windows VISTA and Windows 7. The only issue is coming from Windows 8. Here is an error log which one of my users sent me from his Windows 8 machine:

    PLATFORM VERSION INFO
    	Windows 			: 6.2.9200.0 (Win32NT)
    	Common Language Runtime 	: 4.0.30319.18033
    	System.Deployment.dll 		: 4.0.30319.17929 built by: FX45RTMREL
    	clr.dll 			: 4.0.30319.18033 built by: FX45RTMGDR
    	dfdll.dll 			: 4.0.30319.17929 built by: FX45RTMREL
    	dfshim.dll 			: 4.0.41209.0 (Main.041209-0000)
    
    SOURCES
    	Deployment url			: file:///C:/Users/XPS%208500/Desktop/LD4.appref-ms%7C
    
    ERROR SUMMARY
    	Below is a summary of the errors, details of these errors are listed later in the log.
    	* Activation of C:\Users\XPS 8500\Desktop\LD4.appref-ms| resulted in exception. Following failure messages were detected:
    		+ The requested operation requires elevation. (Exception from HRESULT: 0x800702E4)
    
    COMPONENT STORE TRANSACTION FAILURE SUMMARY
    	No transaction error was detected.
    
    WARNINGS
    	There were no warnings during this operation.
    
    OPERATION PROGRESS STATUS
    	* [6/14/2013 3:59:11 PM] : Activation of C:\Users\XPS 8500\Desktop\LD4.appref-ms| has started.
    	* [6/14/2013 3:59:11 PM] : Performing necessary update check as specified by the deployment.
    
    ERROR DETAILS
    	Following errors were detected during this operation.
    	* [6/14/2013 3:59:11 PM] System.Runtime.InteropServices.COMException
    		- The requested operation requires elevation. (Exception from HRESULT: 0x800702E4)
    		- Source: System.Deployment
    		- Stack trace:
    			at System.Deployment.Application.NativeMethods.CorLaunchApplication(UInt32 hostType, String applicationFullName, Int32 manifestPathsCount, String[] manifestPaths, Int32 activationDataCount, String[] activationData, PROCESS_INFORMATION processInformation)
    			at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
    			at System.Deployment.Application.SubscriptionStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
    			at System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId appId, AssemblyManifest appManifest, String activationParameter, Boolean useActivationParameter)
    			at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, String& errorPageUrl, TempFile& deployFile)
    			at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
    			at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
    
    COMPONENT STORE TRANSACTION DETAILS
    	No transaction information is available.

    I don't know what else to tell him. He's tried installing the application as administrator. Also clicked on more info and chose Install Anyway when Windows 8 asked him about running the application, but still no joy. He keeps getting the error above.

    Any ideas?

    Like I said, it's a ClickOnce app targeting .NET 4.0 FULL and has coding to programmatically look for updates upon loading.

    Thanks in advance!

    Saturday, June 15, 2013 4:52 AM

Answers