Downloading Clickonce application fails in WebBrowser control - webbrowser-control

I am using webbrowser Control in my application and conditionally needs to download another application ( click once based) without user interaction. the download of the application works from Edge browser as expected.
Download fails in webbrowser control with following error
OPERATION PROGRESS STATUS
* [3/4/2022 3:58:28 PM] : Activation of C:\Users\Test4\AppData\Local\Microsoft\Windows\INetCache\IE\2XZDUQN2\TestClickonce[1].application has started.
* [3/4/2022 3:58:29 PM] : Processing of deployment manifest has successfully completed.
* [3/4/2022 3:58:29 PM] : Installation of the application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [3/4/2022 3:58:29 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading file:///C:/Users/Test4/AppData/Local/Microsoft/Windows/INetCache/IE/2XZDUQN2/TestClickonce.exe.manifest 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.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
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, 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\Test4\AppData\Local\Microsoft\Windows\INetCache\IE\2XZDUQN2\TestClickonce.exe.manifest'.
- 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\Test4\AppData\Local\Microsoft\Windows\INetCache\IE\2XZDUQN2\TestClickonce.exe.manifest'.
- 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\Test4\AppData\Local\Microsoft\Windows\INetCache\IE\2XZDUQN2\TestClickonce.exe.manifest'.
- 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.

Related

VB.Net Application Download did not succeed

I've encountered an error upon deploying a project for a few times. on my 18th revision of the project I noticed that it is not installing automatically after I opened my application. I tried to manually install it by running my system.application file but unfortunately I'm receiving a "Application Download did not succeed".
I've searched the web and did try some of the solution for this problem but none of them worked. I'm using VS2015 in coding this.
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.3416.0 built by: NET472REL1LAST_B
dfdll.dll : 4.7.3056.0 built by: NET472REL1
dfshim.dll : 10.0.17134.1 (WinBuild.160101.0800)
SOURCES
Deployment url : file:///C:/KidsMonitoringSystem/Application%20Files/Kids%20Monitoring%20System_1_0_0_20/Kids%20Monitoring%20System.application
Deployment Provider url : file://users/Team%20Guilas/Desktop/Kids/Kids%20Monitoring%20System.application
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\KidsMonitoringSystem\Application Files\Kids Monitoring System_1_0_0_20\Kids Monitoring System.application resulted in exception. Following failure messages were detected:
+ Downloading file://users/Team Guilas/Desktop/Kids/Kids Monitoring System.application did not succeed.
+ The network path was not found.
+ The network path was not found.
+ The network path was not found.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [6/23/2019 12:50:20 AM] : Activation of C:\KidsMonitoringSystem\Application Files\Kids Monitoring System_1_0_0_20\Kids Monitoring System.application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [6/23/2019 12:50:23 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading file://users/Team Guilas/Desktop/Kids/Kids Monitoring System.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.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, 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
- The network path was not found.
- Source: System
- Stack trace:
at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
--- Inner Exception ---
System.Net.WebException
- The network path was not found.
- 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.IOException
- The network path was not found.
- 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.
The answer appears to be in the logged info you posted: your application is hosted on/published to a network location (smb file share?) and it has gone away:
Downloading file://users/Team Guilas/Desktop/Kids/Kids Monitoring System.application did not succeed.
The network path was not found.
Check your network connection, server availability, drive mappings etc and try again?

cannot continue the application is improperly formatted

i'm having a big issue installing a published vb.net software on another machine , it works properly on my pc (where i developed the software )
but when i try to install it on other machines it throws this error message
"cannot continue .the application is improperly formatted.contact the application vendor ...etc "
PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.18408
System.Deployment.dll : 4.0.30319.18408 built by: FX451RTMGREL
clr.dll : 4.0.30319.18408 built by: FX451RTMGREL
dfdll.dll : 4.0.30319.18408 built by: FX451RTMGREL
dfshim.dll : 4.0.41209.0 (Main.041209-0000)
SOURCES
Deployment url : file:///C:/Users/wbc/Videos/Walido%20GYM.application
IDENTITIES
Deployment Identity : Walido GYM.application, Version=1.0.0.7, Culture=neutral, PublicKeyToken=09750bed798d4b36, processorArchitecture=x86
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 C:\Users\wbc\Videos\Walido GYM.application resulted in exception. Following failure messages were detected:
+ Exception reading manifest from file:///C:/Users/wbc/Videos/Application%20Files/Walido%20GYM_1_0_0_7/Walido%20GYM.exe.manifest: the manifest may not be valid or the file could not be opened.
+ Parsing and DOM creation of the manifest resulted in error. Following parsing errors were noticed:
-HRESULT: 0x80070c81
Start line: 0
Start column: 0
Host file:
+ Exception from HRESULT: 0x80070C81
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [23/12/2016 18:24:16] : Activation of C:\Users\wbc\Videos\Walido GYM.application has started.
* [23/12/2016 18:24:17] : Processing of deployment manifest has successfully completed.
* [23/12/2016 18:24:17] : Installation of the application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [23/12/2016 18:24:17] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
- Exception reading manifest from file:///C:/Users/wbc/Videos/Application%20Files/Walido%20GYM_1_0_0_7/Walido%20GYM.exe.manifest: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, Uri& appSourceUri, String& appManifestPath)
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, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Deployment.Application.InvalidDeploymentException (ManifestParse)
- Parsing and DOM creation of the manifest resulted in error. Following parsing errors were noticed:
-HRESULT: 0x80070c81
Start line: 0
Start column: 0
Host file:
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.LoadCMSFromStream(Stream stream)
at System.Deployment.Application.Manifest.AssemblyManifest..ctor(FileStream fileStream)
at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
--- Inner Exception ---
System.Runtime.InteropServices.COMException
- Exception from HRESULT: 0x80070C81
- Source: System.Deployment
- Stack trace:
at System.Deployment.Internal.Isolation.IsolationInterop.CreateCMSFromXml(Byte[] buffer, UInt32 bufferSize, IManifestParseErrorCallback Callback, Guid& riid)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadCMSFromStream(Stream stream)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
edited:
after using MyApplication_UnhandledException to throw out infos about problem
i got this message :
Prerequisite check for system component SQL Server 2005 Express Edition SP2 (x86) failed with the following error message:
"This version of SQL Server 2005 Express Edition (x86) is not supported for the current processor architecture."
See the setup log file located at 'C:\Users\rose\AppData\Local\Temp\VSDE833.tmp\install.log' for more information.
i downloaded another version of sql server 2005 express and installed it then tried again another error message popped out says :
Prerequisite check for system component SQL Server 2008 Express failed with the following error message:
"The instance of SQL Server 2005 Express named 'SQLEXPRESS' contains components that are not included in SQL Server 2008 Express Service Pack 1. SQL Server 2008 Express SP1 cannot upgrade this instance. Please use SQL Server 2008 Express with Advanced Services instead."
See the setup log file located at 'C:\Users\rose\AppData\Local\Temp\VSDDE9B.tmp\install.log' for more information.
i went to project proprieties and unchecked sql server Prerequisites
published my project (this time no setup )
when i clicked on (exe) file nothing comes out
also when i click on clickonce depl application manifest file another error comes out
PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.18408
System.Deployment.dll : 4.0.30319.18408 built by: FX451RTMGREL
clr.dll : 4.0.30319.18408 built by: FX451RTMGREL
dfdll.dll : 4.0.30319.18408 built by: FX451RTMGREL
dfshim.dll : 4.0.41209.0 (Main.041209-0000)
SOURCES
Deployment url : file:///E:/555/Application%20Files/Walido%20GYM_1_0_0_15/Walido%20GYM.application
IDENTITIES
Deployment Identity : Walido GYM.application, Version=1.0.0.15, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=x86
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 E:\555\Application Files\Walido GYM_1_0_0_15\Walido GYM.application resulted in exception. Following failure messages were detected:
+ Downloading file:///E:/555/Application Files/Walido GYM_1_0_0_15/Application Files/Walido GYM_1_0_0_15/Walido GYM.exe.manifest did not succeed.
+ Could not find a part of the path 'E:\555\Application Files\Walido GYM_1_0_0_15\Application Files\Walido GYM_1_0_0_15\Walido GYM.exe.manifest'.
+ Could not find a part of the path 'E:\555\Application Files\Walido GYM_1_0_0_15\Application Files\Walido GYM_1_0_0_15\Walido GYM.exe.manifest'.
+ Could not find a part of the path 'E:\555\Application Files\Walido GYM_1_0_0_15\Application Files\Walido GYM_1_0_0_15\Walido GYM.exe.manifest'.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
* The manifest for this application does not have a signature. Signature validation will be ignored.
OPERATION PROGRESS STATUS
* [24/12/2016 15:11:02] : Activation of E:\555\Application Files\Walido GYM_1_0_0_15\Walido GYM.application has started.
* [24/12/2016 15:11:02] : Processing of deployment manifest has successfully completed.
* [24/12/2016 15:11:02] : Installation of the application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [24/12/2016 15:11:02] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading file:///E:/555/Application Files/Walido GYM_1_0_0_15/Application Files/Walido GYM_1_0_0_15/Walido GYM.exe.manifest 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.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, Uri& appSourceUri, String& appManifestPath)
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, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Net.WebException
- Could not find a part of the path 'E:\555\Application Files\Walido GYM_1_0_0_15\Application Files\Walido GYM_1_0_0_15\Walido GYM.exe.manifest'.
- 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 a part of the path 'E:\555\Application Files\Walido GYM_1_0_0_15\Application Files\Walido GYM_1_0_0_15\Walido GYM.exe.manifest'.
- 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.DirectoryNotFoundException
- Could not find a part of the path 'E:\555\Application Files\Walido GYM_1_0_0_15\Application Files\Walido GYM_1_0_0_15\Walido GYM.exe.manifest'.
- 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.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.
thanks in advance .

Website Error each time rebuild and upload to Server : Attempted to read or write protected memory

My Server:
Window Server 2008 R2
IIS 7.5
Each time I edit code locally then upload it to the server, it gets an error:
Event code: 3005 Event message: An unhandled exception has occurred. Event time: 7/4/2016 7:53:10 AM Event time (UTC): 7/4/2016 12:53:10 AM Event ID: d5bd5d3e12a14d1eabe43f91b5d3c7ef Event sequence: 721307 Event occurrence: 704 Event detail code: 0 Application information:
Application domain: /LM/W3SVC/30824/ROOT-4-131120555752900745
Trust level: Full
Application Virtual Path: /
Application Path: C:\vhosts\xxxxxxxxx\httpdocs\
Machine name: COLO1298 Process information:
Process ID: 6932
Process name: w3wp.exe
Account name: COLO1298\IWAM_plesk(default) Exception information:
Exception type: AccessViolationException
Exception message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Request information:
Request URL: http://xxxxxxxxx.com.vn/publish/form/RegisterForm.aspx
Request path: /publish/form/RegisterForm.aspx
User host address: 171.254.38.251
User:
Is authenticated: False
Authentication Type:
Thread account name: COLO1298\IWAM_plesk(default) Thread information:
Thread ID: 55
Thread account name: COLO1298\IWAM_plesk(default)
Is impersonating: False
Stack trace:
at Microsoft.Win32.NativeMethods.CreateProcess(String lpApplicationName, StringBuilder lpCommandLine, SECURITY_ATTRIBUTES lpProcessAttributes, SECURITY_ATTRIBUTES lpThreadAttributes, Boolean bInheritHandles, Int32 dwCreationFlags, IntPtr lpEnvironment, String lpCurrentDirectory, STARTUPINFO lpStartupInfo, PROCESS_INFORMATION lpProcessInformation)
at System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine)
at System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine)
at Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeReturnValue, String trueArgs)
at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)
at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames)
at System.Web.Compilation.AssemblyBuilder.Compile()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
When I restart IIS, it's OK again.
I don't think the source code has a problem because when I upload it to another server, this doesn't happen.

installing application published in vb.net?

i built a very simple application in vb.net, installed it, it worked. then i did some very slight updates, build it, tried to install it but got the following errors. i restarted computer, uninstalled app for the uninstall menu, and tried to run setup.exe and still have been getting this error. can someone help!
PLATFORM VERSION INFO
Windows : 5.1.2600.196608 (Win32NT)
Common Language Runtime : 2.0.50727.3053
System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000)
SOURCES
Deployment url : file:///C:/Documents%20and%20Settings/PGarcia.BMRA/Desktop/Intol%20Prog/WindowsApplication1.application
IDENTITIES
Deployment Identity : WindowsApplication1.application, Version=1.0.0.4, Culture=neutral, PublicKeyToken=a9ac82ee8eb508b4, processorArchitecture=msil
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 C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\WindowsApplication1.application resulted in exception. Following failure messages were detected:
+ Downloading file:///C:/Documents and Settings/PGarcia.BMRA/Desktop/Intol Prog/Application Files/WindowsApplication1_1_0_0_4/WindowsApplication1.exe.manifest did not succeed.
+ Could not find a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_4\WindowsApplication1.exe.manifest'.
+ Could not find a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_4\WindowsApplication1.exe.manifest'.
+ Could not find a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_4\WindowsApplication1.exe.manifest'.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [6/9/2009 12:07:19 PM] : Activation of C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\WindowsApplication1.application has started.
* [6/9/2009 12:07:19 PM] : Processing of deployment manifest has successfully completed.
* [6/9/2009 12:07:19 PM] : Installation of the application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [6/9/2009 12:07:19 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading file:///C:/Documents and Settings/PGarcia.BMRA/Desktop/Intol Prog/Application Files/WindowsApplication1_1_0_0_4/WindowsApplication1.exe.manifest 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.DownloadManifest(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ManifestType manifestType, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
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, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Net.WebException
- Could not find a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_4\WindowsApplication1.exe.manifest'.
- 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 a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_4\WindowsApplication1.exe.manifest'.
- 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.DirectoryNotFoundException
- Could not find a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_4\WindowsApplication1.exe.manifest'.
- 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.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.
looks to be missing a file .manifest? or possibly a file/folder that got moved since last build.
if you are using source control try rolling back and looking for a missing file/files.
Assuming this is a ClickOnce application, which you did not specify but I'm deducing from the error report, you may have one of several issues. When you publish a ClickOnce application you must be certain that your version number is incremented from the last released/installed version or ClickOnce will get confused.
Also, be sure you deploy all of your published files to the deployment server, including your new manifest file. ClickOnce does a hash on the files to ensure they have not been tampered with.
My apologies if this is not a ClickOnce-deployed application.
Go to Command promt and run this...
For 32 Bit Machine
C:\WINNT\Microsoft.NET\Framework\v2.0.50727\ aspnet_regiis.exe -i
For 64 Bit Machine
C:\WINNT\Microsoft.NET\Framework64\v2.0.50727\ aspnet_regiis.exe -i

clickonce nightmare System.Deployment.Application.DeploymentDownloadException

anyone know how to fix this? this is what i get when i try to run setup.exe
PLATFORM VERSION INFO
Windows : 5.1.2600.196608 (Win32NT)
Common Language Runtime : 2.0.50727.3053
System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000)
SOURCES
Deployment url : file:///C:/Documents%20and%20Settings/PGarcia.BMRA/Desktop/Intol%20Prog/WindowsApplication1.application
IDENTITIES
Deployment Identity : WindowsApplication1.application, Version=1.0.0.3, Culture=neutral, PublicKeyToken=a9ac82ee8eb508b4, processorArchitecture=msil
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 C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\WindowsApplication1.application resulted in exception. Following failure messages were detected:
+ Downloading file:///C:/Documents and Settings/PGarcia.BMRA/Desktop/Intol Prog/Application Files/WindowsApplication1_1_0_0_3/WindowsApplication1.exe.manifest did not succeed.
+ Could not find a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest'.
+ Could not find a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest'.
+ Could not find a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest'.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [6/9/2009 11:26:55 AM] : Activation of C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\WindowsApplication1.application has started.
* [6/9/2009 11:26:56 AM] : Processing of deployment manifest has successfully completed.
* [6/9/2009 11:26:56 AM] : Installation of the application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [6/9/2009 11:26:56 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading file:///C:/Documents and Settings/PGarcia.BMRA/Desktop/Intol Prog/Application Files/WindowsApplication1_1_0_0_3/WindowsApplication1.exe.manifest 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.DownloadManifest(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ManifestType manifestType, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
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, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Net.WebException
- Could not find a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest'.
- 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 a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest'.
- 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.DirectoryNotFoundException
- Could not find a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest'.
- 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.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.
We had this same problem embedded in our ClickOnce deployment of [Qiqqa.com][1]. I suspect it has to do with the "MIME Type sniffing" that IE does when it gets an application/octet-stream - I guess to protect the user from malicious stuff.
Anyway, to solve the problem, we changed the mime type of our .deploy files to be text/plain - obviously not ideal, but at the same time, I don't know a scenario where we might have a .deploy file on our server that a user would browse to outside ClickOnce.
Problem solved.
Cheers,
Jimme
I don't know the exact cause of the problem, but the exception had this:
Could not find a part of the path
'C:\Documents and
Settings\PGarcia.BMRA\Desktop\Intol
Prog\Application
Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest
So that may be the best place to start troubleshooting.
Good Luck
i was running two sessions of the installer at the same time for some reason