Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Setup / December 2006

Tip: Looking for answers? Try searching our database.

Click Once Install fails on Vista

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason - 12 Dec 2006 00:55 GMT
I have developed a click Once application that installs just fine on Windows
XP but does not on Vista. VS2005 was used to develop.

The message in the log file that gets created is as follows:
The requested operation requires elevation. (Exception from HResult:
0x800702E4)

I get no dialog popup to confirm elevation, the install just fails.

I am having to use IP address due to a problem click once has when I use the
DNS name of the installation server verses the NetBIOS name. The IP Address
was a work around for XP. I'm thinking the IP is making Vista think this is
an external address?? it's not, it's on our intranet..

I have swapped out the actual IP for xxx.xxx.xxx.xxx

Sorry for pasting this all here but thought the whole log may help you?

PLATFORM VERSION INFO
    Windows             : 6.0.6000.0 (Win32NT)
    Common Language Runtime     : 2.0.50727.312
    System.Deployment.dll         : 2.0.50727.312 (rtmLHS.050727-3100)
    mscorwks.dll             : 2.0.50727.312 (rtmLHS.050727-3100)
    dfdll.dll             : 2.0.50727.312 (rtmLHS.050727-3100)
    dfshim.dll             : 2.0.50727.312 (rtmLHS.050727-3100)

SOURCES
    Deployment url            :
http://xxx.xxx.xxx.xx.x/downloads/install/TMInstall.application
                        Server        : Microsoft-IIS/6.0
                        X-Powered-By    : ASP.NET
    Application url            :
http://xxx.xxx.xxx.xx.x/downloads/install/TMInstall_1_0_0_23/TMInstall.exe.manifest
                        Server        : Microsoft-IIS/6.0
                        X-Powered-By    : ASP.NET

IDENTITIES
    Deployment Identity        : TMInstall.application, Version=1.0.0.23,
Culture=neutral, PublicKeyToken=84b8a6240bd14d70, processorArchitecture=msil
    Application Identity        : TMInstall.exe, Version=1.0.0.23, Culture=neutral,
PublicKeyToken=84b8a6240bd14d70, processorArchitecture=msil, type=win32

APPLICATION SUMMARY
    * Online only application.
    * Trust url parameter is set.
ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later
in the log.
    * Activation of
http://xxx.xxx.xxx.xx.x/downloads/install/TMInstall.application 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
    * [12/11/2006 2:59:00 PM] : Activation of
http://xxx.xxx.xxx.xx.x/downloads/install/TMInstall.application has started.
    * [12/11/2006 2:59:09 PM] : Processing of deployment manifest has
successfully completed.
    * [12/11/2006 2:59:09 PM] : Installation of the application has started.
    * [12/11/2006 2:59:09 PM] : Processing of application manifest has
successfully completed.
    * [12/11/2006 2:59:17 PM] : Request of trust and detection of platform is
complete.
    * [12/11/2006 2:59:19 PM] : Downloading of subscription dependencies is
complete.
    * [12/11/2006 2:59:19 PM] : Commit of the downloaded application has started.
    * [12/11/2006 2:59:20 PM] : Installation of application has successfully
completed.

ERROR DETAILS
    Following errors were detected during this operation.
    * [12/11/2006 2:59:20 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, Uri activationUri)
            at
System.Deployment.Application.SubscriptionStore.ActivateApplication(DefinitionAppId appId, Uri activationUri)
            at
System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId
appId, AssemblyManifest appManifest, Uri activationUri)
            at
System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut)
            at
System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

COMPONENT STORE TRANSACTION DETAILS
    * Transaction at [12/11/2006 2:59:19 PM]
        + System.Deployment.Internal.Isolation.StoreOperationStageComponent
            - Status: Installed
            - HRESULT: 0x0
            - Manifest: TJ3HOXEG.A05.application
        + System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
            - Status: Set
            - HRESULT: 0x0
        + System.Deployment.Internal.Isolation.StoreOperationStageComponent
            - Status: Installed
            - HRESULT: 0x0
            - Manifest: TMInstall.exe.manifest
        + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
            - Status: Installed
            - HRESULT: 0x0
            - File: BULLSEYE.ICO
        + System.Deployment.Internal.Isolation.StoreOperationStageComponent
            - Status: Installed
            - HRESULT: 0x0
            - Manifest: TMInstall.exe.genman
        + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
            - Status: Installed
            - HRESULT: 0x0
            - File: TMInstall.exe
        + System.Deployment.Internal.Isolation.StoreOperationPinDeployment
            - Status: Pinned
            - HRESULT: 0x0
            - AppId:
http://xxx.xxx.xxx.xx.x/downloads/install/TMInstall.application#TMInstall.application,
Version=1.0.0.23, Culture=neutral, PublicKeyToken=84b8a6240bd14d70,
processorArchitecture=msil
        + System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
            - Status: Set
            - HRESULT: 0x0
        + System.Deployment.Internal.Isolation.StoreTransactionOperationType (27)
            - HRESULT: 0x0
Gary Chang[MSFT] - 12 Dec 2006 08:32 GMT
Hi Jason,

>I am having to use IP address due to a problem click once has
>when I use the DNS name of the installation server verses the
>NetBIOS name. The IP Address was a work around for XP.
>I'm thinking the IP is making Vista think this is an external address??

yes, I think the problem is the above workaround only works in Windows XP,
but it needs the privilege elevation under Vista and the ClickOnce just
forbids the elevation.

I suggest you may need to tune your approach to prevent it requiring a
privilege elevation under Vista.

By the way, you also could try to run your VS2005 elevated Run as
Administrator') when you want to publish your ClickOnce application on
Vista.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.