Cannot download the application. The application is missing the required files - visual-studio

Using Visual Studio ClickOnce for publishing an app. I have a NAS that the app is published to. The folder has read only permission for everybody. We are getting the following error:
PLATFORM VERSION INFO
Windows : 10.0.17134.0 (Win32NT)
Common Language Runtime : 4.0.30319.42000
System.Deployment.dll : 4.7.3056.0 built by: NET472REL1
clr.dll : 4.7.3394.0 built by: NET472REL1LAST_C
dfdll.dll : 4.7.3056.0 built by: NET472REL1
dfshim.dll : 10.0.17134.1 (WinBuild.160101.0800)
SOURCES
Deployment url : file:///C:/Users/erics/Downloads/xxxxxxxx.application
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\erics\Downloads\xxxxxxxx.application resulted in exception. Following failure messages were detected:
+ Downloading file:///C:/Users/erics/Downloads/xxxxxxxx.application did not succeed.
+ Could not find file 'C:\Users\erics\Downloads\xxxxxxxx.application'.
+ Could not find file 'C:\Users\erics\Downloads\xxxxxxxx.application'.
+ Could not find file 'C:\Users\erics\Downloads\xxxxxxxx.application'.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [5/6/2019 8:53:47 AM] : Activation of C:\Users\erics\Downloads\xxxxxxxx.application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [5/6/2019 8:53:48 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading file:///C:/Users/erics/Downloads/xxxxxxxx.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, X509Certificate2 clientCertificate)
at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
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, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl, Uri& deploymentUri)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Net.WebException
- Could not find file 'C:\Users\erics\Downloads\xxxxxxxx.application'.
- Source: System
- Stack trace:
at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
--- Inner Exception ---
System.Net.WebException
- Could not find file 'C:\Users\erics\Downloads\xxxxxxxx.application'.
- Source: System
- Stack trace:
at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
at System.Net.FileWebRequest.GetResponseCallback(Object state)
--- Inner Exception ---
System.IO.FileNotFoundException
- Could not find file 'C:\Users\erics\Downloads\xxxxxxxx.application'.
- 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, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
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.
I have check all my deployment paths and they are correct and reachable.
I have changed the folder permission to read/write and that did not resolve the issue.
I have checked for the presence of xxxxxxxx.application and it is present in the version folder.
I have checked for the absense of any files called out in the manifest. They are all in the version folder.
Any recommendations?

Related

Install Docker on windows - getting path error

The given path's format is not supported.
at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
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, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at CommunityInstaller.DownloadStep.d__35.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CommunityInstaller.InstallWorkflow.d__24.MoveNext()

Could not find a part of the path 'c:\windows\system32\inetsrv\~\INSA.cfg'

Server Error in '/' Application.
Could not find a part of the path 'c:\windows\system32\inetsrv\~\INSA.cfg'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\windows\system32\inetsrv\~\INSA.cfg'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[DirectoryNotFoundException: Could not find a part of the path 'c:\windows\system32\inetsrv\~\INSA.cfg'.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +271
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, Boolean useLongPath, Boolean checkHost) +1217
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +144
System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) +174
System.IO.StreamReader..ctor(String path) +53
INSA.Web.GBK.GBKManager.GetGBKConnectionString(String fileName) +54
INSA.Web.GBK.GBKManager.CreateGBKConnection(String fileName, Boolean crcProvided) +10
PMS.Global.Application_Start(Object sender, EventArgs e) +71
[HttpException (0x80004005): Could not find a part of the path 'c:\windows\system32\inetsrv\~\INSA.cfg'.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +520
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +176
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +165
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +267
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +341
[HttpException (0x80004005): Could not find a part of the path 'c:\windows\system32\inetsrv\~\INSA.cfg'.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +523
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +107
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +688
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3429.0

SolverStudio Install Error on .vsto

This is the code, i have Windows 7 64x 86x, Office 2010, installed Visual Studio 2010 Tools for Office Runtime and .NET version 4.0.0.0
This is the error code, i changed the log path to my folder to PATH:
PO/SolverStudio_00_09_03_00 20160520/SolverStudio/SolverStudio/SolverStudio.vsto
************** Texto de Exceção **************
System.Deployment.Application.DeploymentDownloadException: Não houve êxito no download de file:///PATH/SolverStudio_00_09_03_00 20160520/SolverStudio/SolverStudio/SolverStudio.vsto. ---> System.Net.WebException: Não foi possível localizar uma parte do caminho 'PATH\SolverStudio_00_09_03_00 20160520\SolverStudio\SolverStudio\SolverStudio.vsto'. ---> System.Net.WebException: Não foi possível localizar uma parte do caminho 'PATH\SolverStudio_00_09_03_00 20160520\SolverStudio\SolverStudio\SolverStudio.vsto'. ---> System.IO.DirectoryNotFoundException: Não foi possível localizar uma parte do caminho 'PATH\SolverStudio_00_09_03_00 20160520\SolverStudio\SolverStudio\SolverStudio.vsto'.
em System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
em 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, Boolean useLongPath, Boolean checkHost)
em System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
em System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
em System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
em System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
--- Fim do rastreamento de pilha de exceções internas ---
em System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
em System.Net.FileWebRequest.GetResponseCallback(Object state)
--- Fim do rastreamento de pilha de exceções internas ---
em System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
em System.Net.FileWebRequest.GetResponse()
em System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
--- Fim do rastreamento de pilha de exceções internas ---
em Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.GetManifests(TimeSpan timeout)
em Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
Followed this help tutorial
This link helped to solve
I had to move the folder of installation to the DESKTOP!

Webdeploy System.Runtime.Serialization.SerializationException: Member 'ClassName' was not found

When im doing a webdeploy at visual studio 2012 and select the option update database I get the following error at my server log:
User:
Client IP: xxxx
Content-Type: application/msdeploy
Version: 9.0.0.0
MSDeploy.VersionMin: 7.1.600.0
MSDeploy.VersionMax: 9.0.1631.0
MSDeploy.Method: Sync
MSDeploy.RequestId: 36abe7a7-87e3-4ffb-a46f-b5918da1e651
MSDeploy.RequestCulture: nl-NL
MSDeploy.RequestUICulture: en-US
ServerVersion: 9.0.1631.0
Skip: objectName="^configProtectedData$"
Provider: auto, Path:
A tracing deployment agent exception occurred that was propagated to the client. Request ID '36abe7a7-87e3-4ffb-a46f-b5918da1e651'. Request Timestamp: '1-10-2012 17:39:41'. Error Details:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.Serialization.SerializationException: Member 'ClassName' was not found.
at System.Runtime.Serialization.SerializationInfo.GetElement(String name, Type& foundType)
at System.Runtime.Serialization.SerializationInfo.GetString(String name)
at System.Exception..ctor(SerializationInfo info, StreamingContext context)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
at System.Runtime.Serialization.ObjectManager.DoFixups()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, IMethodCallMessage methodCallMessage)
at Microsoft.Web.Deployment.Base64EncodingHelper.DeserializeHelper(BinaryFormatter formatter, Byte[] buffer)
at Microsoft.Web.Deployment.Base64EncodingHelper.Deserialize(String str, Exception& handledException)
at Microsoft.Web.Deployment.SerializationHelper.Deserialize(String str)
at Microsoft.Web.Deployment.SqlDacPacProvider.ProcessExeOutput()
at Microsoft.Web.Deployment.SqlDacPacProvider.RunExecutableAsync(String exeName, String arguments, Int32 waitInterval, Int32 retryAttempts)
at Microsoft.Web.Deployment.SqlDacPacProvider.Add(DeploymentObject source, Boolean whatIf)
at Microsoft.Web.Deployment.DeploymentObject.Add(DeploymentObject source, DeploymentSyncContext syncContext)
at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAdd(DeploymentObject destObject, DeploymentObject sourceObject)
at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source)
at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source)
at Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObject destinationObject, DeploymentObject sourceObject)
at Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject destObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable, ContentRootTable contentRootTable, Nullable`1 syncPassId)
at Microsoft.Web.Deployment.DeploymentAgent.HandleSync(DeploymentAgentAsyncData asyncData, Nullable`1 passId)
at Microsoft.Web.Deployment.DeploymentAgent.HandleRequestWorker(DeploymentAgentAsyncData asyncData)
at Microsoft.Web.Deployment.DeploymentAgent.HandleRequest(DeploymentAgentAsyncData asyncData)
What might be causing this issue?
The error Visual studio gives me is:
Error 2 Web deployment task failed. ((1-10-2012 18:54:34) An error occurred when the request was processed on the remote computer.)
(1-10-2012 18:54:34) An error occurred when the request was processed on the remote computer.
The server experienced an issue processing the request. Contact the server administrator for more information. 0 0 Database
--FIX--
For some reason my installation of Webdeploy 3 did not work well (tried reinstalling too) with ms authentication, created a sql auth connectionstring and it resolved the issue.

Visual Studio ClickOnce Problem

I'm getting the following error when i send a finished program to a client in a ClickOnce deployment setup.
Yet when i try to execute it on my PC, it runs perfectly, i also tried the same program on my laptop and no problems. Yet he has tried to execute this in 5 different PC and get's the same error on each.
He also gets the following error when he click on details.
---------------------------begins:
PLATFORM VERSION INFO Windows :
6.0.6001.65536 (Win32NT) Common Language Runtime : 2.0.50727.3603
System.Deployment.dll : 2.0.50727.3053
(netfxsp.050727-3000) mscorwks.dll :
2.0.50727.3603 (GDR.050727-3600) dfdll.dll : 2.0.50727.3053
(netfxsp.050727-3000) dfshim.dll :
2.0.50727.3053 (netfxsp.050727-3000)
SOURCES Deployment url :
file:///C:/Users/MAIN-HD2/AppData/Local/Temp/7zO48D2.tmp/Desktop%20Manager.application
ERROR SUMMARY Below is a summary of
the errors, details of these errors
are listed later in the log.
* Activation of C:\Users\MAIN-HD2\AppData\Local\Temp\7zO48D2.tmp\Desktop
Manager.application resulted in
exception. Following failure messages
were detected:
+ Downloading file:///C:/Users/MAIN-HD2/AppData/Local/Temp/7zO48D2.tmp/Desktop
Manager.application did not succeed.
+ Could not find file 'C:\Users\MAIN-HD2\AppData\Local\Temp\7zO48D2.tmp\Desktop
Manager.application'.
+ Could not find file 'C:\Users\MAIN-HD2\AppData\Local\Temp\7zO48D2.tmp\Desktop
Manager.application'.
+ Could not find file 'C:\Users\MAIN-HD2\AppData\Local\Temp\7zO48D2.tmp\Desktop
Manager.application'.
COMPONENT STORE TRANSACTION FAILURE
SUMMARY No transaction error was
detected.
WARNINGS There were no warnings during
this operation.
OPERATION PROGRESS STATUS
* [9/9/2010 2:21:17 PM] : Activation of
C:\Users\MAIN-HD2\AppData\Local\Temp\7zO48D2.tmp\Desktop
Manager.application has started.
ERROR DETAILS Following errors were
detected during this operation.
* [9/9/2010 2:21:17 PM] System.Deployment.Application.DeploymentDownloadException
(Unknown subtype)
- Downloading file:///C:/Users/MAIN-HD2/AppData/Local/Temp/7zO48D2.tmp/Desktop
Manager.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.DownloadDeploymentManifestDirectBypass(SubscriptionStore
subStore, Uri& sourceUri, TempFile&
tempFile, SubscriptionState& subState,
IDownloadNotification notification,
DownloadOptions options,
ServerInformation& serverInformation)
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,
String textualSubId, String
deploymentProviderUrlFromExtension,
BrowserSettings browserSettings,
String& errorPageUrl) at
System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object
state)
--- Inner Exception --- System.Net.WebException
- Could not find file 'C:\Users\MAIN-HD2\AppData\Local\Temp\7zO48D2.tmp\Desktop
Manager.application'.
- 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
- Could not find file 'C:\Users\MAIN-HD2\AppData\Local\Temp\7zO48D2.tmp\Desktop
Manager.application'.
- Source: System
- Stack trace: at System.Net.FileWebResponse..ctor(FileWebRequest
request, Uri uri, FileAccess access,
Boolean asyncHint) at
System.Net.FileWebRequest.GetResponseCallback(Object
state)
--- Inner Exception --- System.IO.FileNotFoundException
- Could not find file 'C:\Users\MAIN-HD2\AppData\Local\Temp\7zO48D2.tmp\Desktop
Manager.application'.
- 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, FileOptions options,
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.
------------------------ends
Please any help would be greatly appreciated, cause I'm loosing my mind over this.
Thanks.
Just solved this... this error occurs when the pc you are installing a ClickOnce Application doesn't have all requirements to run a .net framework application, and is not correctly connected to the internet. It tries to download the necessary files, but fails.

Resources