.NET Framework Bookmark and Share   
 index > Windows Presentation Foundation (WPF) > How to add an XBAP page inside a JSP
 

How to add an XBAP page inside a JSP

Hi,
Scenario:
I created an XBAP application, set it to Full trust modeand then published it to get a .xbap file and a Application Files folder. I pasted these 2 in the same folder where a JSP page is located and added following line in JSP:

<table>
<tr>

<td>

<iframe src="sample.xbap?path=<%=path%>&" originalAttribute="src" originalPath=""sample.xbap?path=<%=path%>&"" width="680" height="570">
<p>Your browser does not support iframes.</p>
</iframe>

</td>
</tr>
</table>

But the problem with this approach is:
For the beginning few minutes XBAP is allowed to access certain resources like file system and httpWebRequest. But later on after few minutes, it is unable to access any of these. As a result, application won't work (being dependent on these resources for getting data).


A developer
KSomi
Trust level is not something that varies with time. It can only be set at the creation-time of the full-trust AppDomain that contains your app's executable code. Being hosted in a frame can't affect this either.

I suggest attaching a debugger to PresentationHost.exe (browser app host process) during application execution, then break on any first chance exceptions. If this doesnt help, simply step through the code that is accessing the file system and network in a debugger after failure.

Hope this helps,
Matt
SDET : Deployment/Hosting
Matt Galbraith - MSFT

You can use google to search for other answers

Custom Search

More Threads

• Drop Down Button?
• Handle thickness: difference between ResizeMode.CanResize and ResizeMode.noResize
• WPF crashes on Focus()
• Bind values to base-class ??
• is there a way to write only one function for all the event?
• Window versus Page
• Usage of INotifyCollectionChanged
• Multi dimension ObservableCollection.
• Strange behavior with combo box. Click (to open) then click (to select) doesn't work until control is right-clicked.
• Multiplication in Textbox