wpf浏览器应用程序调试提示找不到元素
vs2010 新建一个wpf浏览器应用程序 调试运行后,ie打开,一会vs提示“无法启动程序...\...xbap 找不到元素”
在debug目录下直接运行该xbap程序 浏览器提示应用程序下载错误,错误日志:
平台版本信息
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.237
System.Deployment.dll : 4.0.30319.1 (RTMRel.030319-0100)
clr.dll : 4.0.30319.237 (RTMGDR.030319-2300)
dfdll.dll : 4.0.30319.1 (RTMRel.030319-0100)
dfshim.dll : 4.0.31106.0 (Main.031106-0000)
源
部署 URL : file:///C:/codetest/wpft/wpft/bin/Debug/wpft.xbap
应用程序 URL : file:///C:/codetest/wpft/wpft/bin/Debug/wpft.exe.manifest
标识
部署标识 : wpft.xbap, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4514954194d37df0, processorArchitecture=msil
应用程序标识 : wpft.exe, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4514954194d37df0, processorArchitecture=msil, type=win32
应用程序摘要
* 仅联机应用程序。
* 以浏览器作为宿主的应用程序。
错误摘要
以下是错误摘要,这些错误的详细信息列在该日志的后面。
* 下载应用程序时出现异常。 检测到下列失败消息:
+ 下载 file:///C:/codetest/wpft/wpft/bin/Debug/wpft.exe.deploy 未成功。
+ 未能找到文件“C:\codetest\wpft\wpft\bin\Debug\wpft.exe.deploy”。
+ 未能找到文件“C:\codetest\wpft\wpft\bin\Debug\wpft.exe.deploy”。
+ 未能找到文件“C:\codetest\wpft\wpft\bin\Debug\wpft.exe.deploy”。
组件存储事务失败摘要
未检测到任何事务错误。
警告
执行此操作的过程中未出现任何警告。
操作进度状态
没有可用的阶段信息。
错误详细信息
执行此操作期间检测到下列错误。
* [2011-8-30 15:46:05] System.Deployment.Application.DeploymentDownloadException (未知子类型)
- 下载 file:///C:/codetest/wpft/wpft/bin/Debug/wpft.exe.deploy 未成功。
- 源: System.Deployment
- 堆栈跟踪:
在 System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
在 System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
在 System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
在 System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
在 System.Deployment.Application.DeploymentManager.SynchronizeCore(Boolean blocking)
在 System.Deployment.Application.DeploymentManager.SynchronizeAsyncWorker()
--- 内部异常 ---
System.Net.WebException
- 未能找到文件“C:\codetest\wpft\wpft\bin\Debug\wpft.exe.deploy”。
- 源: System
- 堆栈跟踪:
在 System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
在 System.Net.FileWebRequest.GetResponse()
在 System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
--- 内部异常 ---
System.Net.WebException
- 未能找到文件“C:\codetest\wpft\wpft\bin\Debug\wpft.exe.deploy”。
- 源: System
- 堆栈跟踪:
在 System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
在 System.Net.FileWebRequest.GetResponseCallback(Object state)
--- 内部异常 ---
System.IO.FileNotFoundException
- 未能找到文件“C:\codetest\wpft\wpft\bin\Debug\wpft.exe.deploy”。
- 源: mscorlib
- 堆栈跟踪:
在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
在 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)
在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
在 System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
在 System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
组件存储事务详细信息
没有可用的事务信息。
各位高手能帮我看看是什么原因吗?谢谢!!