Hello, hi all people in the world,
I have an application that I created in VS 2005and deployed using a ClickOnce install called "AdministradorWin".
When the application was published (in development environment), it was published to a folder called \\demos01\ResultadoPublicacion.
When this was done, it created ONE subfolder under this with the new version's number, like \\demos01\ResultadoPublicacion\AdministradorWin_1_7_0_0
For production environment using C# program for using mage command for modify manifests and resign manifests using certificate. Not possible all tasks using mage.exe, and I have must to use mageUI.exe (for do populate files).
This worked well, as each time a new version was published, it would just create a new subfolder with the new version number.
Now, I change the solution and my project to VS 2008 Team Suite, and my AdministradorWin application compiles for Target Net Framework 2.0.
I am in the process of migrating this application to VS 2008.
When I publish this same application (and make no changes in the publish options), it creates a new folder called "Application Files" and puts the new version in a subfolder of this. For example:\\demos01\ResultadoPublicacion\.Application Files\AdministradorWin_1_8_0_0
And the file dissapears !!!\publish.htm\\demos01\ResultadoPublicacion
This works, but it is inconsistent. I think I will many problems and issues in production environment;
the users has the 1.7.0.0 version of AdministradorWin application, and it compiles with .net framework 2.0, and publish it with VS 2005. The folder "Application Files" not appears !!! I use mage.exe and mageUI.exe for VS 2005.
now, I want publish the 1.8.0.0 version of AdministradorWin application, and it compiles with .net framework 2.0, and publish it with VS 2008. The folder "Application Files" not appears !!! I use mage.exe and mageUI.exe for VS 2005 (version 2.0 for mage), not use mage.exe and mageUI.exe for vs2008 (version 3.5 for mage)
Other thing, now using MAGEUI.exe (version 2.0) for publish using VS 2008, compiling with Target .NET 2.0, I get this warning:
Warning MSB3110: El ensamblado '\\demos01\ResultadoPublicacion\Application Files\AdministradorWin_1_0_0_0\AdministradorWin.application.deploy' tiene una identidad 'AdministradorWin.application' que no coincide; se esperaba el nombre de archivo: 'AdministradorWin.application.application'.
translate:
The assembly '\ \ demos01 \ ResultadoPublicacion \ Application Files \ AdministradorWin_1_0_0_0 \ AdministradorWin.application.deploy' has an identity 'AdministradorWin.application' that does not match, expected file name: 'AdministradorWin.application.application'
Is there an option for "disabling" this "Application Files" folder from being created? Or another solutions ??? please !!!
Now, when I try install the application using the Publish folder I get this error:
NOT FOUND THE PATH '\\demos01\ResultadoPublicacion\Application%20Files\AdministradorWin_1_0_0_0\AdministradorWin.exe.manifest'. !!!
I think the problem is \Application%20Files\, space in path, %20 !!!
INFORMACIÓN DE VERSIÓN DE LA PLATAFORMA
Windows : 5.1.2600.131072 (Win32NT)
Common Language Runtime : 2.0.50727.3082
System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll : 2.0.50727.3082 (QFE.050727-3000)
dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000)
ORÍGENES
Dirección URL de la implementación: file://demos01/ResultadoPublicacion/AdministradorWin.application
Dirección URL del proveedor de la implementación: file://demos01/ResultadoPublicacion/AdministradorWin.application
IDENTIDADES
Identidad de la implementación: AdministradorWin.app, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4b005ceeffd565b0, processorArchitecture=msil
RESUMEN DE LA APLICACIÓN
* Aplicación instalable.
RESUMEN DEL ERROR
Abajo se muestra un resumen de los errores; los detalles de estos errores se incluyen en el registro.
* La activación de \\demos01\ResultadoPublicacion\AdministradorWin.application dio como resultado una excepción. Se detectaron los siguientes mensajes de error:
+ No se realizó la descarga de file://demos01/ResultadoPublicacion/Application%20Files/AdministradorWin_1_0_0_0/AdministradorWin.exe.manifest correctamente.
+ No se puede encontrar una parte de la ruta de acceso '\\demos01\ResultadoPublicacion\Application%20Files\AdministradorWin_1_0_0_0\AdministradorWin.exe.manifest'.
+ No se puede encontrar una parte de la ruta de acceso '\\demos01\ResultadoPublicacion\Application%20Files\AdministradorWin_1_0_0_0\AdministradorWin.exe.manifest'.
+ No se puede encontrar una parte de la ruta de acceso '\\demos01\ResultadoPublicacion\Application%20Files\AdministradorWin_1_0_0_0\AdministradorWin.exe.manifest'.
DETALLES DEL ERROR
Se detectaron los siguientes errores durante esta operación.
* [03/09/2009 20:21:37] System.Deployment.Application.DeploymentDownloadException (subtipo desconocido)
- No se realizó la descarga de file://demos01/ResultadoPublicacion/Application%20Files/AdministradorWin_1_0_0_0/AdministradorWin.exe.manifest correctamente.
- Origen: System.Deployment
- Seguimiento de la pila:
en System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
en System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
en System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
en System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
en System.Deployment.Application.DownloadManager.DownloadManifest(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ManifestType manifestType, ServerInformation& serverInformation)
en System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
en System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
en System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
en System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
en System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Excepción interna ---
System.Net.WebException
- No se puede encontrar una parte de la ruta de acceso '\\demos01\ResultadoPublicacion\Application%20Files\AdministradorWin_1_0_0_0\AdministradorWin.exe.manifest'.
- Origen: System
- Seguimiento de la pila:
en System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
en System.Net.FileWebRequest.GetResponse()
en System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
--- Excepción interna ---
System.Net.WebException
- No se puede encontrar una parte de la ruta de acceso '\\demos01\ResultadoPublicacion\Application%20Files\AdministradorWin_1_0_0_0\AdministradorWin.exe.manifest'.
- Origen: System
- Seguimiento de la pila:
en System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
en System.Net.FileWebRequest.GetResponseCallback(Object state)
--- Excepción interna ---
System.IO.DirectoryNotFoundException
- No se puede encontrar una parte de la ruta de acceso '\\demos01\ResultadoPublicacion\Application%20Files\AdministradorWin_1_0_0_0\AdministradorWin.exe.manifest'.
- Origen: mscorlib
- Seguimiento de la pila:
en System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
en 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)
en System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
en System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
en System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
Edit: More Info
Hi all !!!
Any solution about it ?? See this post with similar problem of me
http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/61023e58-6af5-467b-9aed-216d116a1c23?prof=required&ppud=4
This error happend like my expectation because this file has been signed for no change.
HOw can I change
<dependency>
<dependentAssembly dependencyType="install" codebase="Application%20Files\AdministradorWin_1_0_0_0\AdministradorWin.exe.manifest
" size="8852">
and resign the manifest again, and not %20 character appears, and I get manifest valid ???
If Ihave changed %20 to space but when running setup.exei got a error as below:
the manifest may not be valid or the file could not be opened.
I found a lot of answers for this. But no any answer is able to help solve this error for me.
Please help me if you know any solution.
Edit again: More info
The problem for me, is edit \\demos01\ResultadoPublicacion\AdministadorWin.application with mageuI.exe
Option Application Reference
Select Manifest, and choose .\Application Files\AdministradorWin_1_0_0_0\AdministradorWin.exe.manifest
but in Location appears Application%20Files\AdministradorWin_1_0_0_0\AdministradorWin.exe.manifest !!! %20 maldit !!!
I'm fear, fright...
I would appreciate any suggestions or comments. Any help will be veryappreciate and useful for me.
Thank you! Regards, greetings.