Share via


Downloading failed with HRESULT=-2146697211 error while installing App using ClickOnce

Question

Friday, May 11, 2007 11:55 AM | 1 vote

I have a number of VS2005 applications which I have installed successfully using ClickOnce a number of times before. However, lately, on installing the applications they have started to give the error message below while installing the pre-requisite programs e.g.  .Net 2.0 Framework

 

Copying files to temporary directory "C:\DOCUME~1\Njuguna\LOCALS~1\Temp\VSDD.tmp\
Downloading files to "C:\DOCUME~1\Njuguna\LOCALS~1\Temp\VSDD.tmp\
(5/11/2007 10:01:44 AM) Downloading 'dotnetfx\dotnetfx.exe' from 'file://programmer/logisys/dotnetfx/dotnetfx.exe' to 'C:\DOCUME~1\Njuguna\LOCALS~1\Temp\VSDD.tmp\
Download completed at 5/11/2007 10:01:44 AM
Downloading failed with HRESULT=-2146697211

 

I have re-published the applications to no avail. I have also tried installing them on other workstations to no success. But the applications Install Okay on my workstation but not on any other in the LAN network.

 

When I manually copy the pre-requiste programs to the workstations, some of them then load Okay while others give the error message:-

 

                          You are not allowed to update Windows XP.

 

Could it be that a change in the LAN network configuration is causing the error?

 

 

All replies (5)

Monday, May 14, 2007 9:56 AM âś…Answered

I have found out what was wrong.

 

It is because the Guest user account on \programmer had been disabled.

 

Thanks alot for helping me juggle my mind.


Friday, May 11, 2007 2:37 PM

The error number -2146697211 means that the server or proxy server was not found. Can you ping "programmer" from these clients? For the 2nd message are you running it as an admin?


Monday, May 14, 2007 9:44 AM

Yes, I can ping programmer and running as admin for the second message.

 

Could you kindly assist, because another message that I am getting on some computers while

 attempting to install the same application is:-

 

PLATFORM VERSION INFO
 Windows    : 5.1.2600.131072 (Win32NT)
 Common Language Runtime  : 2.0.50727.42
 System.Deployment.dll   : 2.0.50727.42 (RTM.050727-4200)
 mscorwks.dll    : 2.0.50727.42 (RTM.050727-4200)
 dfdll.dll    : 2.0.50727.42 (RTM.050727-4200)
 dfshim.dll    : 2.0.50727.42 (RTM.050727-4200)

SOURCES
 Deployment url   : file://128.1.0.198/LogiSys/LogiSys.application
 Deployment Provider url  : file://programmer/LogiSys/LogiSys.application

ERROR SUMMARY
 Below is a summary of the errors, details of these errors are listed later in the log.
 * Activation of \128.1.0.198\LogiSys\LogiSys.application resulted in exception. Following failure messages were detected:
  + Downloading file://programmer/LogiSys/LogiSys.application did not succeed.
  + Logon failure: unknown user name or bad password.

  + Logon failure: unknown user name or bad password.

  + Logon failure: unknown user name or bad password.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
 No transaction error was detected.

WARNINGS
 There were no warnings during this operation.

OPERATION PROGRESS STATUS
 * [5/14/2007 10:14:42 AM] : Activation of \128.1.0.198\LogiSys\LogiSys.application has started.

ERROR DETAILS
 Following errors were detected during this operation.
 * [5/14/2007 10:14:43 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
  - Downloading file://programmer/LogiSys/LogiSys.application did not succeed.
  - Source: System.Deployment
  - Stack trace:
   at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
   at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
   at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
   at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
   at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
   at System.Deployment.Application.DownloadManager.FollowDeploymentProviderUri(SubscriptionStore subStore, AssemblyManifest& deployment, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
   at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
   at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut)
   at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
   Inner Exception
  System.Net.WebException
  - Logon failure: unknown user name or bad password.

  - Source: System
  - Stack trace:
   at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.FileWebRequest.GetResponse()
   at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
   Inner Exception
  System.Net.WebException
  - Logon failure: unknown user name or bad password.

  - Source: System
  - Stack trace:
   at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
   at System.Net.FileWebRequest.WrappedGetResponseCallback(Object state)
   Inner Exception
  System.IO.IOException
  - Logon failure: unknown user name or bad password.

  - Source: mscorlib
  - Stack trace:
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
   at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
   at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)

COMPONENT STORE TRANSACTION DETAILS
 No transaction information is available.

 

                                                                          ****  End of error message ****

 

Where is the client computer trying to log on to ? Apparently this message is appearing for all published programs, even

if I create a new application.

 

What could have changed in VS2005 configuration because, the ClickOnce  insatallation worked fine before.

 

 


Tuesday, January 19, 2010 10:19 PM

Does anyone know why ClickOnce needs the Guest account to be active?

Thanks


Tuesday, June 22, 2010 2:47 PM

Check your HOSTS file.

C:\WINDOWS\system32\drivers\etc

You may have to include the local IP address of your server to the HOSTS file.