XBAP Download error on some machines

I have an XBAP app that can be displayed fine on my Vista box (IE7) and my XP box (IE6). However, on a neighbor's box it gets an error on the download. (None of those boxes is the server box.)

It downloads the XBAP file and gives that special "downloading" XBAP screen, then it gets an error. To me, it looks like the problem is that on his box, it is trying to download from the local files system instead of from the HTTP: URL the XBAP link pointed to.

I don't know what might be different between my box and his box. He does have the right .NET 3.0 stuff installed (he could run another of my apps that was a regular app). Besides, it doesn't even look like he is getting that far.

The server is a Linux box running Apache. As far as I can tell, the MIME types are set correctly and as I said the app deploys fine on my two boxes:

Code Snippet

$ GET -ehttp://localhost/xbap/MyXbap/MyXbap.xbap | grep 'Content-Type'

Content-Type: application/x-ms-xbap

$ GET -ehttp://localhost/xbap/MyXbap/MyXbap.exe.manifest | grep 'Content-Type'

Content-Type: application/manifest

Here's the error:

Code Snippet

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)
dfshim.dll : 2.0.50727.42 (RTM.050727-4200)

SOURCES
Deployment url :file:///D:/Documents%20and%20Settings/xxxx/Local%20Settings/Temporary%20Internet%20Files/Content.IE5/NITJRTNK/MyXbap%5B1%5D.xbap

IDENTITIES
Deployment Identity : MyXbap.application, Version=1.0.0.11, Culture=neutral, PublicKeyToken=c776a171881fc350, processorArchitecture=msil

APPLICATION SUMMARY
* Online only application.

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:
+ Downloadingfile:///D:/Documents and Settings/xxxx/Local Settings/Temporary Internet Files/Content.IE5/NITJRTNK/MyXbap.exe.manifest did not succeed.
+ Could not find file 'D:\Documents and Settings\xxxx\Local Settings\Temporary Internet Files\Content.IE5\NITJRTNK\MyXbap.exe.manifest'.
+ Could not find file 'D:\Documents and Settings\xxxx\Local Settings\Temporary Internet Files\Content.IE5\NITJRTNK\MyXbap.exe.manifest'.
+ Could not find file 'D:\Documents and Settings\xxxx\Local Settings\Temporary Internet Files\Content.IE5\NITJRTNK\MyXbap.exe.manifest'.

(FWIW, this seems to be the same error I get if I try to run the XBAP file from Firefox. It downloads the XBAP file, stores it locally, then launches Windows Presentation Foundation Host to run it. That runs and tries to similarly get the manifest from the local filesystem.)

[3571 byte] By [jona.than] at [2008-1-4]
# 1
Can your neighbors box run an XBAP at all eg locally, from an IIS machine, or from a public site eg http://thewpfblog.com/examples/DayTwoDemo/DayTwoDemo_1_0_0_0.xbap?
Michael.Weinhardt-MSFT at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 2
I should have thought of testing that first.
He gets the same kind of error going to that wpfblog.com sample.
Is it some sort of IE setting or would it be something in the OS configuration?
jona.than at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 3

We had a similar problem reported recently. See this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1428273&SiteID=1. The investigation wasn't conclusive, but there seemed to be a problem very early in the initialization of PresentationHost. Can you send me an ETW log using the instructions provided there?

Also, try this: In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\Windows Presentation Foundation\Hosting, create a DWORD value RunUnrestricted=1. This will tell PresentationHost not to restart itself with a restricted process token. (Remember to delete the value after the test. The switch is only for debugging purposes.)

ChangoV.-MSFT at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 4
Sorry for the delay. Sending the log files now...
jona.than at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 5
Did the log files provide any clues about what is going on?
jona.than at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 6

Hello Jonathan,

I replied to you by email on 5/4. I'll resend it now.

The log files showed that for some reason Internet Explorer is not doing the proper DocObject activation. Otherwise, PresentationHost is doing what it's told to do.

The simplest thing to try is to reinstall .NET Framework v3. There may be a broken registry key.

Or we can try to figure out the cause first. I'd need a trace of IE's part of the activation process. To add to the previous instructions, we need to define another logger in WPFPerf. Click the Add button and enter these parameters:

Logger name: IE7

GUID: 797FABAC-7B58-4796-B924-D51178A59CE4

Log file: c:\temp\IE.etl

Level: 5

Flags: 4294967295

To collect the logs: start IE, start the loggers in WPFPerf, and enter an XBAP's URL directly in IE's address bar. Go back to WPFPerf and stop the loggers.

ChangoV.-MSFT at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...

Visual Studio Orcas

Site Classified