The referenced assembly is not installed on your system. (Exception from HRESULT: 0x800736B3)
I have an application that is distributed with click-once. One of my users already makes use of it for quite some time without any problems. Only recently, he is not able to launch the application anymore.
During the check that is made to see if there is a new version of the software, he gets the message: "Application cannot be started, contact vendor"
If I copy my application manually, he is able to launch it without any problem.
I included the detailled log below.
Any suggestions?
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:///C:/Documents%20and%20Settings/HEL/Start%20Menu/Programs/BARCO%20NV/Corporate%20Associates.appref-msERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Documents and Settings\HEL\Start Menu\Programs\BARCO NV\Corporate Associates.appref-ms resulted in exception. Following failure messages were detected:
+ The referenced assembly is not installed on your system. (Exception from HRESULT: 0x800736B3)COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.WARNINGS
There were no warnings during this operation.OPERATION PROGRESS STATUS
* [11/07/2006 11:37:13 ] : Activation of C:\Documents and Settings\HEL\Start Menu\Programs\BARCO NV\Corporate Associates.appref-ms has started.ERROR DETAILS
Following errors were detected during this operation.
* [11/07/2006 11:37:13 ] System.Runtime.InteropServices.COMException
- The referenced assembly is not installed on your system. (Exception from HRESULT: 0x800736B3)
- Source: System.Deployment
- Stack trace:
at System.Deployment.Internal.Isolation.IStore.GetAssemblyInformation(UInt32 Flags, IDefinitionIdentity DefinitionIdentity, Guid& riid)
at System.Deployment.Internal.Isolation.Store.GetAssemblyManifest(UInt32 Flags, IDefinitionIdentity DefinitionIdentity)
at System.Deployment.Application.ComponentStore.GetSubscriptionStateInternal(DefinitionIdentity subId)
at System.Deployment.Application.SubscriptionStore.GetSubscriptionStateInternal(SubscriptionState subState)
at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, TempFile& deployFile)
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.
Réponses
From the description of this error it looks like the ClickOnce store has somehow got corrupted for this one user.
Try the following to recover the store:
1. Run "Mage -cc". (Mage.exe can be found in the .NET 2.0 SDK)
2. Uninstall the application via Add/Remove Programs and reinstall it
3. If neither of these work then the last option is to delete the ClickOnce store and get back to clean state. To delete the ClickOnce store delete the folder "%userprofile%\Local Settings\Apps".
Before deleting the store if you can send a snapshot of your corrupted store to Microsoft to evaluate further that would be very helpful. You can submit via feedback on http://connect.microsoft.com/VisualStudio.
Instructions to submit store contents:
- Package entire contents of folder %userprofile%\Local Settings\Apps into a .zip file
- Export regkey HKCU\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment to .reg fileAttach both of these with Feedback report.
Please make sure this folder does not contain any information that is Private or sensitive in nature before submitting.
Regards,
Sameer
Toutes les réponses
- What com references are you using in your application?
I don't make any COM references.
When I click on my .application file, it immediately gives the error. And only for this single user.
From the description of this error it looks like the ClickOnce store has somehow got corrupted for this one user.
Try the following to recover the store:
1. Run "Mage -cc". (Mage.exe can be found in the .NET 2.0 SDK)
2. Uninstall the application via Add/Remove Programs and reinstall it
3. If neither of these work then the last option is to delete the ClickOnce store and get back to clean state. To delete the ClickOnce store delete the folder "%userprofile%\Local Settings\Apps".
Before deleting the store if you can send a snapshot of your corrupted store to Microsoft to evaluate further that would be very helpful. You can submit via feedback on http://connect.microsoft.com/VisualStudio.
Instructions to submit store contents:
- Package entire contents of folder %userprofile%\Local Settings\Apps into a .zip file
- Export regkey HKCU\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment to .reg fileAttach both of these with Feedback report.
Please make sure this folder does not contain any information that is Private or sensitive in nature before submitting.
Regards,
SameerSameer
I got recently got the same error on another ClickOnce install. Do you want us to follow the information above and send a Snapshot of the store to Microsoft
Or do you have another solution to this that might work. We've tryed a Few times to remove the app from the Add/Remove programs and it doesn't appear to work. Have not tried the Mage -cc option yet.
Thanks
Rich-------------------
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:///C:/Documents%20and%20Settings/Administrator/Desktop/CampusDishKiosk.appref-msERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Documents and Settings\Administrator\Desktop\CampusDishKiosk.appref-ms resulted in exception. Following failure messages were detected:
+ The referenced assembly is not installed on your system. (Exception from HRESULT: 0x800736B3)COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.WARNINGS
There were no warnings during this operation.OPERATION PROGRESS STATUS
* [11/21/2006 2:37:16 AM] : Activation of C:\Documents and Settings\Administrator\Desktop\CampusDishKiosk.appref-ms has started.ERROR DETAILS
Following errors were detected during this operation.
* [11/21/2006 2:37:16 AM] System.Runtime.InteropServices.COMException
- The referenced assembly is not installed on your system. (Exception from HRESULT: 0x800736B3)
- Source: System.Deployment
- Stack trace:
at System.Deployment.Internal.Isolation.IStore.GetAssemblyInformation(UInt32 Flags, IDefinitionIdentity DefinitionIdentity, Guid& riid)
at System.Deployment.Internal.Isolation.Store.GetAssemblyManifest(UInt32 Flags, IDefinitionIdentity DefinitionIdentity)
at System.Deployment.Application.ComponentStore.GetSubscriptionStateInternal(DefinitionIdentity subId)
at System.Deployment.Application.SubscriptionStore.GetSubscriptionStateInternal(SubscriptionState subState)
at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, TempFile& deployFile)
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.- I am having the same issue. Did you get this resolved?
Did you wonder about my question or the original thread starter's?
My issue was resolved. See the link I referred to in my post.
Bert
That did it. I deleted the folder and there it went. Thanks for the help.
I had a lot of trouble with this same problem unitl I deleted "%userprofile%\Local Settings\Apps".
- Me too, and the same solution worked - brilliant, many thanks Sameer.
- I started having this problem a few days ago. I don't have the app installed locally - it's installed on a server (via ClickOnce). All the users run the app from the server and I used to be able to as well but am now getting this error. I also have the dev environment installed and can run the app without a problem from there, but as soon as I connect to the server installed app ...
None of the users are having a problem, just me. Since the app isn't installed locally I don't have the option to uninstall it, and I also don't have the localsettings\apps folder, so where to from here? I'm running .net 3.5 framework and VS 2008...
Can anyone help? - Found the localsettings\apps - and yes deleting it worked...!
- This solution worked for me as well. Thanks much!
- Thanks! Deleting of Apps Folder works!
- I tried everything, but deleting the Apps directory was the only thing that worked for me.
Great tip Sameer, thanks a lot! - Worked for me too. Cheers!
I had this issue and tried every single potential solution. This has been a multi-hour experience for me. As always it turns out to be a pretty simple solution to fix it.
In VS 2008 I opened my solution that was giving me trouble. I opened the property page and clicked the "References" tab. I clicked the "Unused References" button ( I took a screen shot of all the references just in case I needed to go back and replace what was there). I let the window pop up and populate with unused references. I checked them all and clicked "Remove". Then I rebuilt the application and published and it worked.
I had not added any references recently and have been creating builds all along without issue, but apparently something has changed to convince the app not to start.
I encourage everyone that when they come to a solution that they explain what they did to correct it in great detail. If any get frustrated like I do, how disappointing is it to see that someone has come to a solution but poorly explained how they solved it! "I clicked the button and deleted the file and Voila!" Ugh....:) </psa>
- Same problem for us.Unable to uninstall App Via Add/Remove Programs.Deleted All Dirs and Files under: %userprofile%\Local Settings\AppsReinstalled App, everything worked after that.I see the original post was from July of 2006, I guess the problem has not been resolved yet. Sameer was asking for a copy of the App Directory, did he receive it? If not I can provide a copy.
Regards, Mike DePouw - While we have found the deletion of the Apps directory to be the only surefire solution to this problem, we're trying to find a way to prevent this problem in the first place. This issue seems to occur for every user we have beta-testing at least once every 6 months, and we're looking to launch this as a commercial product in the near future.
Does anyone have any information on avoiding this issue?
Edited for clarity
- Deleting under Apps certainly works, but I'm interested in preventing the issue completely. Why does this happen and what can be done to prevent it?
Mike,
Can you provide a copy for me?
- Package entire contents of folder %userprofile%\Local Settings\Apps into a .zip file
- Export regkey HKCU\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment to .reg file
Alternatively, you can run a diagnostic tool on your machine that will collect the data and send to us. I can send you a ticket for doing it.
Thanks.
Emel Simsek
Software Development Engineer, ClickOnce.- Emel,
Where can I upload the Apps dir to?
Also I can export the current reg key but the computer is now working again. I didn't see that part of Sameer's instructions... Do you want the current reg key?
Regards, Mike DePouw Update on this:
Mike has sent me the data he collected from customer machine. However, the registry and apps directory were not snapshot at the same time which renders it unusable for investigation.
However, I can tell you that we have fixed an issue manifested by the same call stack we see here in .NET Framework 4.0 release. With the fix, we have basically handled a case where the registry metadata and apps directory was out of sync.
We do not know the root cause of the issue though. We suspect that it migth be caused by System Restore.
Had anybody running into this exception performed a System Restore prior to launching the clickonce app through the shortcut?
Thanks.
EMEL- I just ran across this issue. Two machines (same network) just experienced this issue. I can't say for sure if System Restore was run. However, I can give the scenario:
* Both Machines were updated to a recent version (released last Friday)
* There was a power outage here and both machines were never shutdown after the update, and lost power (were running on UPS's, but powerloss lasted for roughly 4 hours)
* Come this morning, both machines are now running the previous version just fine. But, they cannot update (receive the error in above posts)
* Add/Remove from Control panel not effective in updating the apps.
* Removing the App's folder cures the issue.
Not sure what caused the revert to previous version? Either ClickOnce did that on its own because of corrupt data of latest version (result of power loss most likely), or a System Restore was automatically run? Or somehow run by user unknowingly. All other systems that were updated Friday (and mostly powered down) are running fine with latest clickonce version update (and can easily add/remove/reinstall). - Oh, I should say the power outage happened during the weekend. I would think that sHould have been plenty of time for things to be flushed to disk after the update, but I think it is the most likely cause of the corrupt ClickOnce problem here.
- We too had a very rough bout with this problem after a power-outage a few weeks ago. Pretty much every single machine that lost power needed to have the cache wiped and the program re-installed. I will try to note if the machine recently went through a non-standard reboot preceding the problem the next time it arises.
This happens when to machine is restarted or a power outage occurs and the app is running. Had it happen several times on different machines. Always the same scenario, machine crashes while app is running. Have this happening on a machine now. I will capture the 2.0 directory before and after I restore it.
- Kpd0001, Also pull the RegKey referenced above.
Regards, Mike DePouw - I have the same problem with one of my apps. We did have a power outage about a week ago. I am about to try removing the app to see if this helps.
New C# Express Developer Deleting the App folder worked for me.
Can't thank you enough!- Upon investigating an issue with the same call stack where I have got the ClickOnce related data, it seems like the registry metadata is reverted back at some point causing disconcert with app folder. I have a theory : The cause of this would be abrupt termination of the user session + roaming profile. with a roaming profile HKCU hive is saved back to a share during logoff while the app folder is not. Also, HKCU is synched from share during logon. If there is no logoff, then the latest HKCU will not be synched back but in the logon it will be overriten by an earlier version from the share.
This is only a theory. Can anybody following this thread tell me about their profile type?
Thanks.
EMEL - Emel, this happened to me on a non-Active Directory machine. Local profile only. No abnormal shutdown or unusual events whatsoever. One day the application worked--the next day, it didn't.
- The user in my org. that had this problem had a local profile.
Regards, Mike DePouw - In my case, I believe it was a roaming profile (not 100% positive).
- Another user just ran into the same issue. Is there any real workaround yet that doesn't involve having to tell the user to delete a directory? Could be very problematic with other (3rd party) clickonce deployments - they might have written data to those folders. Although, I suspect when this problem happens, all clickonce apps are broken. But, still, not a pretty solution - almost like asking the user to delete their program files directory.
- I have been able to reproduce this issue and it happens regardless of login type. Also, I don't see the ClickOnce registry where it was mentioned above, but rather in: HKCR\Software\Microsoft\Windows\CurrentVersion\Deployment. Weird.
Anyway, I can consistently reproduce this exact error message by simply:
1) Install clickonce app.
2) Cleanly reboot the system so everything is flushed/synced/written to disk
3) Publish a ClickOnce update
4) Get the latest update (I got the update programmatically through the app, although it may not matter which way it is gotten)
5) After programmatically getting the app, I shut it down (did not run the latest app, though may not matter).
6) I then yanked power (simulating a BSOD / Powerloss / etc) to cause a hard shutdown
After rebooting, the above error message happens. And the only way to allow the app to update again is to remove the App folder (or delete the registry Deployment entry).
Can't this information be better synced to disk *right after* an update so that subsequent power failures/Window crashes/etc after and update don't render the clickonce process useless? I really don't understand why the system needs the clean reboot in order to stabilize/protect the clickonce cache from corruption.
- This just happened to me also. User got an update this morning from click once. Later, the power dropped and user turned off machine, rather than gracefully shuting down. Could not uninstall application, had to remove the directories and volia, could reinstall.
User is networked, but no roaming profiles or anything like that. No other users were affected.
There needs to be a better, more gradeful way to handle this than having the user delete a directory. Hi Sameer,
I just got the same error message from the App I wrote "Scoreborad", It was caused by powere failure last night. I have tried almost everything to recue it... now I have to try your last option: To delete the ClickOnce store delete the folder "%userprofile%\Local Settings\Apps". where I can find this folder? Thanks in advance.
Jesse Shu- Jesse - It should be in the c:\documents and settings directory - from there you go into the user profile directory, \local settings\apps as outlined in your own post.
One of our customers also has the same problem. In his case, he cannot find the Apps folder under Local Settings. Can someone help?
PLATFORM VERSION INFO
Windows : 5.1.2600.196608 (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 : http://pointstart-dev.s3.amazonaws.com/PointStarter.application?ticket=262
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of http://pointstart-dev.s3.amazonaws.com/PointStarter.application?ticket=262 resulted in exception. Following failure messages were detected:
+ The referenced assembly is not installed on your system. (Exception from HRESULT: 0x800736B3)
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [11/2/2009 12:10:32 PM] : Activation of http://pointstart-dev.s3.amazonaws.com/PointStarter.application?ticket=262 has started.
ERROR DETAILS
Following errors were detected during this operation.
* [11/2/2009 12:10:32 PM] System.Runtime.InteropServices.COMException
- The referenced assembly is not installed on your system. (Exception from HRESULT: 0x800736B3)
- Source: System.Deployment
- Stack trace:
at System.Deployment.Internal.Isolation.IStore.GetAssemblyInformation(UInt32 Flags, IDefinitionIdentity DefinitionIdentity, Guid& riid)
at System.Deployment.Internal.Isolation.Store.GetAssemblyManifest(UInt32 Flags, IDefinitionIdentity DefinitionIdentity)
at System.Deployment.Application.ComponentStore.GetAssemblyManifest(DefinitionIdentity asmId)
at System.Deployment.Application.ComponentStore.GetSubscriptionStateInternal(DefinitionIdentity subId)
at System.Deployment.Application.SubscriptionStore.GetSubscriptionStateInternal(SubscriptionState subState)
at System.Deployment.Application.SubscriptionState.Validate()
at System.Deployment.Application.SubscriptionState.get_IsInstalled()
at System.Deployment.Application.SubscriptionStore.CheckAndReferenceApplication(SubscriptionState subState, DefinitionAppId appId, Int64 transactionId)
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)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.

