use xaml pages in asp.net project

hi folks
I created asp.net project and want to navigate through it to xaml page by using hyperlink
when I did it, I got exception

"System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."

used VS2005 and MS windows SDK beta2.0

how I can fix this problem?

[466 byte] By [MohammedAllam] at [2007-12-21]
# 1

XAML Web Applications are a particular type of application, which are executed in a sandbox

If I'm correct, it's not possible to link directly a XAML page in a web page.

But you can create a XAML Web Application and integrate this application in your Web app

Bye

ThomasLEBRUN at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 2
Set the TargetName of the Hyperlink to "_top" (XAML can use the HTML reserved target names for Hyperlink - _top, _parent etc.).

See this post for more details
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=396383&SiteID=1

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

Hi Thomoas,

I tried to integrate XAML Web app in my Web app and got the same exception
so Could you tell me how I integrate them?

Sincerity

Mohammed

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

Yeah viliescu I did but it give me the same exception

I Run xaml page at XBAP not in IE

MohammedAllam at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 5
how I can integrate a XAML Web Application in my Web app?
MohammedAllam at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 6
up
MohammedAllam at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 7
You should be able to create a hyperlink pointing to a XAML or an XBAP file. Can you make sure the linked resource is loading fine just by typing its URL on your browser's address bar? Once that is verified, can you also check if the linked resource is being loaded from the same zone as the resource which has the hyperlink?
AshishShetty-MSFT at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 8

Ashish

First I created a XBAP application. secondly I created a blank asp.net application and in the default page I kept the hyperlink like

<a href="D:\satish\Practice\WPF\WPFBrowserApplication1\WPFBrowserApplication1\bin\Debug\WPFBrowserApplication1.xbap" target="_top"> Click Here</a>

If i run seperately in my browser the linked resource "D:\satish\....\WPFBrowserApplication1.xbap" it is running fine,

but when i try run my asp.net application and tried to click the hyperlink i could not able to see any further processing or action.

What should be done.

You mentioned "can you also check if the linked resource is being loaded from the same zone as the resource which has the hyperlink?" how should i verify this.

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

Visual Studio Orcas

Site Classified