C# 不能';在浏览器中托管winforms应用程序时找不到文件.exe.manifest

C# 不能';在浏览器中托管winforms应用程序时找不到文件.exe.manifest,c#,wpf,hosting,manifest,web-hosting,C#,Wpf,Hosting,Manifest,Web Hosting,我在webbrowser中托管windows窗体应用程序。当我运行应用程序时,它不断告诉我找不到.exe.manifest文件 PLATFORM VERSION INFO Windows : 6.3.9600.0 (Win32NT) Common Language Runtime : 4.0.30319.34014 System.Deployment.dll : 4.0.30319.34274 built by: FX452RTMGDR clr.dll

我在webbrowser中托管windows窗体应用程序。当我运行应用程序时,它不断告诉我找不到.exe.manifest文件

PLATFORM VERSION INFO
Windows             : 6.3.9600.0 (Win32NT)
Common Language Runtime     : 4.0.30319.34014
System.Deployment.dll       : 4.0.30319.34274 built by: FX452RTMGDR
clr.dll             : 4.0.30319.34014 built by: FX45W81RTMGDR
dfdll.dll           : 4.0.30319.34274 built by: FX452RTMGDR
dfshim.dll          : 6.3.9600.16384 (winblue_rtm.130821-1623)
来源 部署url:file:///C:/Users/amalraj.umapathy/Downloads/WPFHost%20(6) .xbap

身份 部署标识:WPFHost.xbap,版本=1.0.0.1,区域性=中性,PublicKeyToken=f79e6586c29e4e3f,processorArchitecture=msil

申请摘要 *仅在线应用程序

错误摘要 下面是错误的摘要,这些错误的详细信息将在日志的后面列出。 *下载清单时发生异常。检测到以下故障消息: +下载file:///C:/Users/amalraj.umapathy/Downloads/WPFHost.exe.manifest 没有成功。 +找不到文件“C:\Users\amalraj.umathy\Downloads\WPFHost.exe.manifest”。 +找不到文件“C:\Users\amalraj.umathy\Downloads\WPFHost.exe.manifest”。 +找不到文件“C:\Users\amalraj.umathy\Downloads\WPFHost.exe.manifest”

组件存储事务失败摘要 未检测到任何事务错误

警告 此操作期间没有警告

运行进度状态 没有可用的阶段信息

错误详细信息 在此操作期间检测到以下错误。 *[12/09/2015 5:37:20 PM]System.Deployment.Application.DeploymentDownloadException(未知子类型) -下载file:///C:/Users/amalraj.umapathy/Downloads/WPFHost.exe.manifest 没有成功。 -来源:System.Deployment -堆栈跟踪: 位于System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem下一步) 位于System.Deployment.Application.SystemNetDownloader.DownloadeAllFiles()处 位于System.Deployment.Application.FileDownloader.Download(订阅状态子状态) 位于System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri和sourceUri、字符串targetPath、IDownloadNotification通知、DownloadOptions选项、ServerInformation和ServerInformation) 在System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest、String targetDir、Uri deploymentUri、IDownloadNotification通知、DownloadOptions选项、Uri和appSourceUri、String和appManifestPath) 位于System.Deployment.Application.DeploymentManager.BindCore(布尔阻塞、TempFile和tempDeploy、TempDirectory和tempAppDir、FileStream和refTransaction、String和productName) 位于System.Deployment.Application.DeploymentManager.BindAsyncWorker()处 ---内部异常--- System.Net.WebException -找不到文件“C:\Users\amalraj.umathy\Downloads\WPFHost.exe.manifest”。 -资料来源:系统 -堆栈跟踪: 位于System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult) 在System.Net.FileWebRequest.GetResponse()中 位于System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem下一步) ---内部异常--- System.Net.WebException -找不到文件“C:\Users\amalraj.umathy\Downloads\WPFHost.exe.manifest”。 -资料来源:系统 -堆栈跟踪: 在System.Net.FileWebResponse..ctor(FileWebRequest请求、Uri、FileAccess访问、布尔异步提示) 位于System.Net.FileWebRequest.GetResponseCallback(对象状态) ---内部异常--- System.IO.FileNotFoundException -找不到文件“C:\Users\amalraj.umathy\Downloads\WPFHost.exe.manifest”。 -资料来源:mscorlib -堆栈跟踪: 在System.IO.\uuu Error.WinIOError(Int32 errorCode,字符串maybeFullPath) 在System.IO.FileStream.Init(字符串路径、文件模式、文件访问权限、Int32权限、布尔用户权限、文件共享、Int32缓冲大小、文件选项选项、安全属性secAttrs、字符串msgPath、布尔bFromProxy、布尔useLongPath、布尔checkHost) 位于System.IO.FileStream..ctor(字符串路径、文件模式、文件访问权限、文件共享、Int32 bufferSize、文件选项选项、字符串msgPath、布尔bFromProxy) 位于System.IO.FileStream..ctor(字符串路径、文件模式、文件访问访问、文件共享、Int32 bufferSize、布尔UseAync) 位于System.Net.FileWebStream..ctor(FileWebRequest请求、字符串路径、FileMode模式、FileAccess访问、FileShare共享、Int32长度、布尔异步) 在System.Net.FileWebResponse..ctor(FileWebRequest请求、Uri、FileAccess访问、布尔异步提示)

组件存储事务详细信息 没有可用的交易信息


请澄清。提前谢谢。

我想我会问一个明显的问题,你的项目中有清单文件吗?是的,我有清单文件。我在调试文件夹中有清单文件,但当我通过Visual Studio运行我的应用程序时,.XBAP文件只被下载。它没有在浏览器的“新建”选项卡中运行,当我仅单击下载的.XBAP文件时,应用程序正在浏览器中运行,这表明找不到清单文件。