studdymx

Hi All,

I was hoping someone might be kind enough to advise me...

I am currently facing an issue when it comes to deploying a WPF app I have recently put together for a university project, through Click Once (Hosted on the Web Server).

When a user starts to download the app (through click once), about a quater of the way through, an error occurs (Application Validation failed) and the following logfile is seen:

----------------------------------

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 : http://stevenjohnevans.co.uk/hattrick/HattrickAssistantWPF.application
Server : Microsoft-IIS/6.0
X-Powered-By : ASP.NET
Deployment Provider url : http://www.stevenjohnevans.co.uk/hattrick/HattrickAssistantWPF.application
Server : Microsoft-IIS/6.0
X-Powered-By : ASP.NET
Application url : http://www.stevenjohnevans.co.uk/hattrick/HattrickAssistantWPF_1_0_28_4/HattrickAssistantWPF.exe.manifest
Server : Microsoft-IIS/6.0
X-Powered-By : ASP.NET

IDENTITIES
Deployment Identity : HattrickAssistantWPF.application, Version=1.0.28.4, Culture=neutral, PublicKeyToken=*******, processorArchitecture=msil
Application Identity : HattrickAssistantWPF.exe, Version=1.0.28.4, Culture=neutral, PublicKeyToken=******, processorArchitecture=msil, type=win32

APPLICATION SUMMARY
* Installable application.

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of http://stevenjohnevans.co.uk/hattrick/HattrickAssistantWPF.application resulted in exception. Following failure messages were detected:
+ HTTP redirect is not allowed for application files and assemblies. Cannot download HattrickAssistantWPF.exe.config.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [05/03/2007 00:10:50] : Activation of http://stevenjohnevans.co.uk/hattrick/HattrickAssistantWPF.application has started.
* [05/03/2007 00:10:53] : Processing of deployment manifest has successfully completed.
* [05/03/2007 00:10:53] : Installation of the application has started.
* [05/03/2007 00:10:53] : Processing of application manifest has successfully completed.
* [05/03/2007 00:10:56] : Request of trust and detection of platform is complete.

ERROR DETAILS
Following errors were detected during this operation.
* [05/03/2007 00:10:57] System.Deployment.Application.InvalidDeploymentException (AppFileLocationValidation)
- HTTP redirect is not allowed for application files and assemblies. Cannot download HattrickAssistantWPF.exe.config.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.DownloadManager.ProcessDownloadedFile(Object sender, DownloadEventArgs e)
at System.Deployment.Application.FileDownloader.DownloadModifiedEventHandler.Invoke(Object sender, DownloadEventArgs e)
at System.Deployment.Application.FileDownloader.OnModified()
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.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.

-----------------------------

Any advice or suggestions on how I could resolve this error would be great received and much appreciated.

Many thanks,

Steve




Re: ClickOnce and Setup & Deployment Projects Deploying a WPF App with Click Once Issue

studdymx

doh! Now sorted, forgot to rename the application files with .deploy! :)