Xbab applications not running from the internet

Hi there,

I am trying to run an xbap application from this URL

http://www.valil.com/winfx/Valil.Chess.WinFX.xbap
(other xbab apps from the internet are not running either e.g http://www.charlespetzold.com/wpf/JeuDeTacquin/JeuDeTacquin.xbap )

IE 6 gives me an error message and wont let me run the app even though I
have added the site as a trusted site. It runs if I get the source and
compile and run it locally. It looks like a security issue. Can some one
kindly tell me what I need to do get the app running from the internet ?

The detailed error info is as follows:

Startup URI: http://www.valil.com/winfx/Valil.Chess.WinFX.xbap
Application Identity:

System.UnauthorizedAccessException: Access is denied. (Exception from
HRESULT: 0x80070005 (E_ACCESSDENIED))
at
System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore(UInt32
Flags, IntPtr hToken, Guid& riid)
at System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore()
at System.Deployment.Application.ComponentStore..ctor(ComponentStoreType
storeType, SubscriptionStore subStore)
at System.Deployment.Application.SubscriptionStore..ctor(String
deployPath, String tempPath, ComponentStoreType storeType)
at System.Deployment.Application.SubscriptionStore.get_CurrentUser()
at System.Deployment.Application.DeploymentManager..ctor(Uri
deploymentSource, Boolean isUpdate, Boolean isConfirmed, DownloadOptions
downloadOptions, AsyncOperation optionalAsyncOp)
at System.Deployment.Application.InPlaceHostingManager..ctor(Uri
deploymentManifest, Boolean launchInHostProcess)
at System.Deployment.Application.InPlaceHostingManager..ctor(Uri
deploymentManifest)
at MS.Internal.AppModel.XappLauncherApp.TryUriActivation()
at MS.Internal.AppModel.XappLauncherApp.XappLauncherApp_Startup(Object
sender, StartupEventArgs e)
at System.Windows.Application.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,
Delegate callback, Object args, Boolean isSingleParameter, Delegate
catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at
System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object
state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32
msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam,
IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,
Delegate callback, Object args, Boolean isSingleParameter, Delegate
catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority
priority, TimeSpan timeout, Delegate method, Object args, Boolean
isSingleParameter)
at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority
priority, Delegate method, Object arg)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr
wParam, IntPtr lParam)

--

PresentationHost.exe v3.0.51116.0
(winmain_oob/avalon_wap_FEB_CTP_2006.060131-1602 -
C:\WINDOWS\system32\PresentationHost.exe
ntdll.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\ntdll.dll
kernel32.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\kernel32.dll
msvcrt.dll v7.0.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\msvcrt.dll
ADVAPI32.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\ADVAPI32.dll
RPCRT4.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\RPCRT4.dll
USER32.dll v5.1.2600.2622 (xpsp_sp2_gdr.050301-1519) -
C:\WINDOWS\system32\USER32.dll
GDI32.dll v5.1.2600.2818 (xpsp_sp2_gdr.051228-1427) -
C:\WINDOWS\system32\GDI32.dll
ole32.dll v5.1.2600.2726 (xpsp.050725-1531) - C:\WINDOWS\system32\ole32.dll
SHELL32.dll v6.00.2900.2869 (xpsp_sp2_gdr.060316-1512) -
C:\WINDOWS\system32\SHELL32.dll
SHLWAPI.dll v6.00.2900.2861 (xpsp_sp2_gdr.060303-1517) -
C:\WINDOWS\system32\SHLWAPI.dll
urlmon.dll v6.00.2900.2870 (xpsp_sp2_gdr.060317-1513) -
C:\WINDOWS\system32\urlmon.dll
VERSION.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\VERSION.dll
WININET.dll v6.00.2900.2861 (xpsp_sp2_gdr.060303-1517) -
C:\WINDOWS\system32\WININET.dll
CRYPT32.dll v5.131.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\CRYPT32.dll
MSASN1.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\MSASN1.dll
OLEAUT32.dll v5.1.2600.2180 - C:\WINDOWS\system32\OLEAUT32.dll
IMM32.DLL v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\IMM32.DLL
comctl32.dll v6.0 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
comctl32.dll v5.82 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\comctl32.dll
MsgPlusLoader1.dll v3, 63, 4, 0 - C:\Program Files\MessengerPlus!
3\MsgPlusLoader1.dll
MSCTF.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\MSCTF.dll
tiptsf.dll v1.7.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\Program
Files\Common Files\microsoft shared\ink\tiptsf.dll
OLEACC.dll v4.2.5406.0 (xpclient.010817-1148) - C:\WINDOWS\system32\OLEACC.dll
MSVCP60.dll v6.02.3104.0 - C:\WINDOWS\system32\MSVCP60.dll
PSAPI.DLL v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\PSAPI.DLL
CLBCATQ.DLL v2001.12.4414.308 - C:\WINDOWS\system32\CLBCATQ.DLL
COMRes.dll v2001.12.4414.258 - C:\WINDOWS\system32\COMRes.dll
xpsp2res.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\xpsp2res.dll
McVSSkt.dll v10, 0, 0, 26 - c:\progra~1\mcafee.com\vso\McVSSkt.dll
WS2_32.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\WS2_32.dll
WS2HELP.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\WS2HELP.dll
Secur32.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\Secur32.dll
dfshim.dll v2.0.50727.42 (RTM.050727-4200) - C:\WINDOWS\system32\dfshim.dll
mscoree.dll v2.0.50727.42 (RTM.050727-4200) - C:\WINDOWS\system32\mscoree.dll
PresentationHostDLL.dll v3.0.51116.0
(winmain_oob/avalon_wap_FEB_CTP_2006.060131-1602 -
C:\WINDOWS\WinFX\v3.0\WPF\PresentationHostDLL.dll
mscorwks.dll v2.0.50727.42 (RTM.050727-4200) -
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
MSVCR80.dll v8.00.50727.42 -
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd\MSVCR80.dll
mscorlib.ni.dll v2.0.50727.42 (RTM.050727-4200) -
C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\mscorlib\a1fb4119af2f9c478da1ffb42ae06bbe\mscorlib.ni.dll
System.ni.dll v2.0.50727.42 (RTM.050727-4200) -
C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System\09b24e0f71234f42b31ef6107414b1b5\System.ni.dll
WindowsBase.ni.dll v3.0.51116.0 -
C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\WindowsBase\6cb2b9e21ed5fb4f86ba6033c634e44c\WindowsBase.ni.dll
PresentationCore.ni.dll v3.0.51116.0
(winmain_oob/avalon_wap_FEB_CTP_2006.060131-1602 -
C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\PresentationCore\cbc59dea81eda64f96469d9f773c69d8\PresentationCore.ni.dll
PresentationFramework.ni.dll v3.0.51116.0
(winmain_oob/avalon_wap_FEB_CTP_2006.060131-1602 -
C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\PresentationFramewo#\58f84ee44c4a5747b445e016591fde1c\PresentationFramework.ni.dll
msctfime.ime v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\msctfime.ime
mslbui.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\mslbui.dll
actxprxy.dll v6.00.2900.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\actxprxy.dll
msi.dll v3.1.4000.2435 - C:\WINDOWS\system32\msi.dll
SXS.DLL v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\SXS.DLL
PresentationUI.ni.dll v3.0.51116.0 -
C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\PresentationUI\0d8c626bdfe1fe498012e37befdd8cad\PresentationUI.ni.dll
System.Deployment.ni.dll v2.0.50727.42 (RTM.050727-4200) -
C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Deployment\61a6971c7a2b8e4cbc39f5fd9da1ebe3\System.Deployment.ni.dll
rsaenh.dll v5.1.2600.2161 (xpsp.040706-1629) - C:\WINDOWS\system32\rsaenh.dll
nbmaptip.dll v1.0.2201.0 - C:\Program Files\windows journal\nbmaptip.dll
sptip.dll v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) - C:\WINDOWS\ime\sptip.dll
SPGRMR.DLL v5.1.2600.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\IME\SPGRMR.DLL
shfolder.dll v6.00.2900.2180 (xpsp_sp2_rtm.040803-2158) -
C:\WINDOWS\system32\shfolder.dll
diasymreader.dll v8.0.50727.42 (RTM.050727-4200) -
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll

[10136 byte] By [AhmedChaudhary] at [2007-12-21]
# 1
Hi,

I've got no problems running http://www.charlespetzold.com/wpf/JeuDeTacquin/JeuDeTacquin.xbapp or the other one.

Which CTP Version of WinFX are you running ?
Are you administrator on the machine ?

Bye

ThomasLEBRUN at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 2
Hello. We have run into the very same problem. Two out of 10 - 15 users are getting the same error above, whereas everyone else has had no problem. We should all be running the same configurations: XP SP2, IE6. We are all running TrendMicro. Though turning that off did not solve the problem for affected users. Each user is also listed as an Admininstrator on their own machine.

All users are running WinFX Runtime Components 3.0 - Beta 2 ( 3.0.03906.22 ). All development is with the latest CTP.

Could anyone provide a direction to head in on resolving this?

Thanks,
Mark

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

Looks to be a version problem as I'm running 3.0.6327.0 of the PresentationFramework and it works fine.

JohnStewien at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 4
My apologies. I must have copied the version from the wrong place. The Presentation Host version is 3.0.6327 also.

Are there any other possibilities?

Thanks,
mark

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

The original post had "UnauthorizedAccessException".

According to the doco "Represents the error that occurs when an I/O operation cannot be performed because of incompatible file access levels".

As a side note I'm running IE7 from www.microsoft.com/ie

As Thomas Lebrun suggests maybe you need to Run IE as Administrator?

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

First, let me clarify that you do not need to be administrator to launch a typical WPF standalone application or browser application (xbap). These apps are ClickOnce-deployed and are per-user (not per-machine).

The exception stack suggests the ClickOnce deployment service is unable to induct the application to the store. Can you try manually creating a file or a folder under C:\Documents and Settings\<username>\Local Settings\Apps\2.0 or in one of the subfolders underneath there? Want to make sure there isn't some weird access issues going on. If that isn;t the case, can you kill dfsvc.exe, delete all the contents of that folder and try deploying the app again?

AshishShetty-MSFT at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 7
Same problem here with xbap applications:

System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore(UInt32 Flags, IntPtr hToken, Guid& riid)
at System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore()
at System.Deployment.Application.ComponentStore..ctor(ComponentStoreType storeType, SubscriptionStore subStore)
at System.Deployment.Application.SubscriptionStore..ctor(String deployPath, String tempPath, ComponentStoreType storeType)
at System.Deployment.Application.SubscriptionStore.get_CurrentUser()
...

No problem accessing and deleting all content under C:\Documents and Settings\<username>\Local Settings\Apps\2.0 but without better luck. Please note that dfsvc.exe does not even start. I didn't see any acces denied error using FileMon.

On the contrary, no problem using other ClickOnce applications, such as http://www.sellsbrothers.com/wahoo2/publish.htm

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

Thanks for your response, Ashish.

Unfortunately, I still cannot get this to work. I took a look in C:\Documents and Settings\<username>\Local Settings. There was not an Apps folder. I made sure that the Local Settings directory was not read-only, but that didn't seem to help.

I also noticed that dfsvc.exe was not running on the system before I attempted the install or afterwards. This could be a problem, no? I also see from searching the net that there are several worms that install a file with the same name. (MYFIP.A or MYFIP.K). Perhaps an anti-spy, or antivirus program could be the problem?

I will look into this possibility, but I would also like to know if this seems likely to you.

Thanks,Mark

safetyglance at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 9
Is this still a problem? Can you try deleting the ClickOnce app store (all contents under C:\Documents and Settings\<username>\Local Settings\Apps\2.0), then trying again? The dfsvc.exe I was referring to is the ClickOnce service that does the downloads and checks for updates. It is launched on application launch and shuts down soon thereafter. If it wasn't running at the specific instance you checked, there's no reason to panic.
AshishShetty-MSFT at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 10

Hi Ashish. Thanks again for inquiring on the status.

We have still not arrived at a solution. There is no ...\Apps\2.0 directory on the affected machines. It seems to me as though creating those very directories is part of the problem. The only new piece of information I have right now is the following error message I retrieved from the Events log:

The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Unable to open shim database version registry key - v2.0.50727.00000.

I had a moment just now to look up this error. I found the following discussion:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=131584&SiteID=1&PageID=1

In this forum, there is the following post:

As already stated earlier in this thread giving user-rights onto the key "v2.0.50727.00000" in [HKLM\Software\Microsoft\.NETFramework\Policy\AppPatch]

should solve the issue. I granted users Read/Write and the problem has not re-occured since then.

I will try this solution and report back.

safetyglance at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 11

We have resolved this issue.

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

Is there something wrong with the forum software? My posts are being cut-off and the edit feature does not work.

Anyway, we solved the issue by deleting and recreating the affected user accounts.

-Mark

safetyglance at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 13
i am unable to run xbap application on browser, i am using winfx may CTP release and IE 7.0
trun_gup at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 14

Try to download the June CTP and to see if you are able to display/launch the page/application

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

Visual Studio Orcas

Site Classified