Unable to run XBAP

I was able to go to a xbap URL from one machine(XP with sp2) and it works fine, on other machine(XP with sp2) , I get the following exception

System.IO.FileNotFoundException: Could not find file 'C:\Documents and Settings\xxx\Temporary Internet files\Content.IE5\R1HCV8RY\]xxx.exe.manifest'.
File name: 'C:\Documents and Settings\xxx\Temporary Internet Files\Content.IE5\R1HCV8RY\xxx.exe.manifest'
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)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at System.Windows.Interop.ApplicationLauncherXappDebug.GetIdFromManifest(String manifestName)
at System.Windows.Interop.ApplicationLauncherXappDebug.GetApplicationIdentity()
at System.Windows.Interop.ApplicationLauncherXappDebug.Initialize()
at System.Windows.Interop.DocObjHost.MS.Internal.AppModel.IBrowserHostServices.Run(String path, String debugSecurityZoneURL, String viewerUri, String fragment, String applicationId, MimeType mime, Object streamContainer, Object ucomLoadIStream, Boolean isDebugMode, String progressAssemblyName, String progressClassName, String errorAssemblyName, String errorClassName)

what could be wrong, any Ideas?

Thanks

[1501 byte] By [leed] at [2008-1-1]
# 1

have you checked to see if the file:

"C:\Documents and Settings\xxx\Temporary Internet files\Content.IE5\R1HCV8RY\]xxx.exe.manifest"

exists on your new target client machine?

also,does the second client have .net 3.0 installed?

JDPeckham at 2007-9-12 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 2
the file is not there. the client has 3.0 rtm. why does it get downloaded on one machine and not on the other?
leed at 2007-9-12 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 3
The callstack suggests PresentationHost.exe is started in debug mode. This normally happens when you do F5 in Visual Studio. How are you trying to run the XBAP? If not from within VS, can you use Process Explorer (from sysinternals.com) to see the command line passed to PresentationHost.exe?
ChangoV.-MSFT at 2007-9-12 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 4

I was running from command line PresentationHost.exe -debug http://.....xbap

because when I typed in the url or clicked the link, it will just hang the browser instance and it doesnt do anything,

leed at 2007-9-12 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 5

PH -debug is meant for debugging from within VS. Only a local file path is accepted.

But it seems there is a bigger problem with XBAP activation on this computer. When the browser "hangs", what exactly happens: its GUI is non-responsive, or the XBAP just doesn't load? Is there a PresentationHost instance started? Does it keep running or quits immediately?

ChangoV.-MSFT at 2007-9-12 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 6

I have to kill the IE instance.

I tried process explorer, the presentationhost.exe comes and goes every 10 or so secs

the command line looks like this "c:\documents and Settings\{username}\Temporary Internet Files\Content.IE5\SH6BGHA3\xxx.xbap"

untill I restart the machine an IE instance will be opened and closed(flickr) every 10 or so secs

Thanks

leed at 2007-9-12 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 7

We've seen this phenomenon in artificial conditions: IE fails to properly activate the XBAP and then falls back to shell activation. The registered shell handler for .xbap is PresentationHost. It just launches the default browser with the given file path ... hence an infinite loop.

The installation of WPF on this computer is probably partly broken. Was there a pre-RTM release installed? Can you try to re-install now?

ChangoV.-MSFT at 2007-9-12 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 8

there is no pre rtm version on this machine ever. only RTM version was loaded.

I run all the WPF apps just fine. it is just the issue with any XBAP

Thanks

leed at 2007-9-12 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 9
That's worriysome... If you'd like, you can collect ETW traces by following the instructions on this thread (at the end of p.1) and send them to me.
ChangoV.-MSFT at 2007-9-12 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...

Visual Studio Orcas

Site Classified