在XBAP
下载的最后,我得到了错误跟踪。我已经尝试使用Procmon
和VS2013-debugger
找出遗漏了什么。但是,到目前为止我还没有成功......有任何提示吗?
ERROR DETAILS
Following errors were detected during this operation.
* [23.05.2014 12:55:03] System.IO.FileNotFoundException
- The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
- Source: mscorlib
- Stack trace:
at System.Deployment.Internal.Isolation.IsolationInterop.CreateActContext(CreateActContextParameters& Params)
at System.Deployment.Internal.Isolation.IsolationInterop.CreateActContext(IDefinitionAppId AppId)
at System.ActivationContext.CreateFromName(ApplicationIdentity applicationIdentity)
at System.ActivationContext.CreatePartialActivationContext(ApplicationIdentity identity)
at System.Deployment.Application.DeploymentManager.SynchronizeCore(Boolean blocking)
at System.Deployment.Application.DeploymentManager.SynchronizeAsyncWorker()
在Fidder中,我为所有下载的文件获得了200秒......
答案 0 :(得分:0)
好的,问题是缓存大小的默认限制,即250MB。这就是我必须做的事情:
添加/更改HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment\OnlineAppQuotaInKB
,这是一个DWORD
值,表示以千字节为单位的缓存大小。例如,为了将缓存大小增加到500MB,我将此值设置为512000。