wpf 无法在 Internet Explorer 11 上运行 Xbap 应用程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20185688/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cannot run Xbap application on Internet Explorer 11
提问by Mussammil
I am downloading an WPF Xbap application from the follwing link:
我正在从以下链接下载 WPF Xbap 应用程序:
http://ttpdownload.bl.uk/app_files/xbap/BrowserApp.xbap
http://ttpdownload.bl.uk/app_files/xbap/BrowserApp.xbap
which is opened in my Internet Explorer 11 but I got the following error:
它在我的 Internet Explorer 11 中打开,但出现以下错误:
Application Download Error The application cannot be downloaded.Check for network connectivity issues or contact the application publisher for assistance.
My error log is :
PLATFORM VERSION INFO Windows : 6.3.9600.0 (Win32NT) Common Language Runtime : 4.0.30319.33440 System.Deployment.dll : 4.0.30319.33440 built by: FX45W81RTMREL clr.dll : 4.0.30319.33440 built by: FX45W81RTMREL dfdll.dll : 4.0.30319.33440 built by: FX45W81RTMREL dfshim.dll : 6.3.9600.16384 (winblue_rtm.130821-1623)
SOURCES Deployment url : file:///C:/Users/Musammil/AppData/Local/Temp/BrowserApp-3.xbap
IDENTITIES Deployment Identity : BrowserApp.xbap, Version=1.1.131.0, Culture=neutral, PublicKeyToken=8bed49b226483885, processorArchitecture=msil
APPLICATION SUMMARY * Online only application. * Trust url parameter is set. ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * An exception occurred while downloading the manifest. Following failure messages were detected: + Downloading file:///C:/Users/Musammil/AppData/Local/Temp/BrowserApp.exe.manifest did not succeed. + Could not find file 'C:\Users\Musammil\AppData\Local\Temp\BrowserApp.exe.manifest'. + Could not find file 'C:\Users\Musammil\AppData\Local\Temp\BrowserApp.exe.manifest'. + Could not find file 'C:\Users\Musammil\AppData\Local\Temp\BrowserApp.exe.manifest'.
COMPONENT STORE TRANSACTION FAILURE SUMMARY No transaction error was detected.
WARNINGS There were no warnings during this operation.
OPERATION PROGRESS STATUS No phase information is available.
ERROR DETAILS Following errors were detected during this operation. * [11/25/2013 11:16:03 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype) - Downloading file:///C:/Users/Musammil/AppData/Local/Temp/BrowserApp.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.DeploymentManager.BindCore(Boolean blocking, TempFile& tempDeploy, TempDirectory& tempAppDir, FileStream& refTransaction, String& productName) at System.Deployment.Application.DeploymentManager.BindAsyncWorker() --- Inner Exception --- System.Net.WebException - Could not find file 'C:\Users\Musammil\AppData\Local\Temp\BrowserApp.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 file 'C:\Users\Musammil\AppData\Local\Temp\BrowserApp.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\Musammil\AppData\Local\Temp\BrowserApp.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.
应用程序下载错误 无法下载应用程序。请检查网络连接问题或联系应用程序发行商寻求帮助。
我的错误日志是:
平台版本信息 Windows : 6.3.9600.0 (Win32NT) 公共语言运行时 : 4.0.30319.33440 System.Deployment.dll : 4.0.30319.33440 构建者: FX45W81RTMREL clr.dll 构建者: 345W81RTMREL clr.dll 3403403403404004040400000000000000000000000000000d3404000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;作者:FX45W81RTMREL dfshim.dll:6.3.9600.16384 (winblue_rtm.130821-1623)
来源部署网址:file:///C:/Users/Musammil/AppData/Local/Temp/BrowserApp-3.xbap
IDENTITIES 部署标识:BrowserApp.xbap,版本=1.1.131.0,Culture=neutral,PublicKeyToken=8bed49b226483885,processorArchitecture=msil
申请摘要 * 仅限在线申请。* 设置信任 url 参数。错误摘要以下是错误的摘要,这些错误的详细信息在日志后面列出。* 下载清单时发生异常。检测到以下失败消息: + 下载 file:///C:/Users/Musammil/AppData/Local/Temp/BrowserApp.exe.manifest 未成功。+ 找不到文件“C:\Users\Musammil\AppData\Local\Temp\BrowserApp.exe.manifest”。+ 找不到文件“C:\Users\Musammil\AppData\Local\Temp\BrowserApp.exe.manifest”。+ 找不到文件“C:\Users\Musammil\AppData\Local\Temp\BrowserApp.exe.manifest”。
COMPONENT STORE TRANSACTION FAILURE 概要 未检测到事务错误。
警告 在此操作期间没有警告。
操作进度状态 没有可用的阶段信息。
错误详细信息 在此操作期间检测到以下错误。* [11/25/2013 11:16:03 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype) - 下载文件:///C:/Users/Musammil/AppData/Local/Temp/BrowserApp.exe.manifest没有成功。- 来源:System.Deployment - 堆栈跟踪:在 System.Deployment.Application.SystemNetDownloader.DownloadAllFiles() 在 System.Deployment.Application.FileDownloader.Download(SubscriptionState subState) 在 System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next) 在 System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()在 System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification 通知, DownloadOptions 选项, ServerInformation& serverInformation) at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification 通知, DownloadOptions 选项, Uri& appSourceUri, String& appManifestPath) at System.Deployment.Application.DeploymentManager.BindTempCore(Boolean blocks, Boolean blocks) tempDeploy、TempDirectory& tempAppDir、FileStream& refTransaction、String& productName) 在 System.Deployment.Application.DeploymentManager.BindAsyncWorker() --- 内部异常 --- System.Net.WebException - 找不到文件 'C:\Users\Musammil\AppData \Local\Temp\BrowserApp.exe.manifest'。- 来源:系统 - 堆栈跟踪:在 System.Net。FileWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.FileWebRequest.GetResponse() at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next) --- 内部异常--- System.Net.WebException - 找不到文件' C:\Users\Musammil\AppData\Local\Temp\BrowserApp.exe.manifest'。- 来源:系统 - 堆栈跟踪:在 System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint) at System.Net.FileWebRequest.GetResponseCallback(Object state) --- 内部异常 --- System.IO.FileNotFoundException - 找不到文件“C:\Users\Musammil\AppData\Local\Temp\BrowserApp.exe.manifest”。- 来源:mscorlib - 堆栈跟踪:
COMPONENT STORE TRANSACTION DETAILS 没有可用的交易信息。
Why I can't run the xbap application whats the wrong?
为什么我不能运行 xbap 应用程序怎么了?
回答by Vitor Canova
You need to go to Internet Option --> Security Tab --> Custom level... --> and Enable the option XAML browser applications.
您需要转到 Internet 选项 --> 安全选项卡 --> 自定义级别... --> 并启用选项XAML 浏览器应用程序。
I think I don't need to say this but you need to make this change for every client you want to run your app. It was a security change introduced in IE9for Internet Zones.
我想我不需要这么说,但是您需要为要运行应用程序的每个客户端进行此更改。这是IE9 中为 Internet 区域引入的安全更改。
I sucessfully run your app. It has some books in one shelve. ;)
我成功地运行了你的应用程序。它的一个书架上有一些书。;)
回答by JonRowley
I've not tested this, but instead of allowing all sites to run XBAPs another approach might be to enable Enterprise Mode in IE11 for that specific site and hopefully that'll mean it's running in IE8 mode which in turn means XBAPs should be enabled in the Internet zone.
我没有测试过这个,但不是允许所有站点运行 XBAP,另一种方法可能是在 IE11 中为该特定站点启用企业模式,希望这意味着它在 IE8 模式下运行,这反过来意味着 XBAP 应该在互联网专区。
回答by warrens
For the BrowserApp.xbap to run there must be 2 other files located at the same site:
要运行 BrowserApp.xbap,必须有 2 个其他文件位于同一站点:
BrowserApp.exe.manifest
BrowserApp.exe.manifest
and
和
BrowserApp.exe
浏览器应用程序

