WPF XBAP - Trying to host in forms auth ASP.NET web app, and consume WCF service in that same web app.
-
viernes, 13 de abril de 2012 18:18
Good Afternoon -
I have the basics of
a) a wcf service hosted in my ASP.NET 3.5 web app, and
b) a basic one form WPF XBAP application, with a service reference to a) established and a proxy generated.
If I copy the xbap and manifest into my web app, add a new page with an iframe pointing at the xbap, when I hit that page, I get "presentationhost has encountered an error and..." nothing very meaningful in the error or event log.
If I copy the xbap and manifest into my web app, add a hyperlink to open the xbap in a new window, when I click the link, I still get "presentationhost has encountered an error and..." just in the new ie window.
If I have the xbap start on it's own, and also start the asp.net web app containing the wcf service, the xbap does come up, but when I click on my button calling my wcf service, I get an error basically saying the service call returned the markup of the logon page...
I am working with Visual Studio 10 premium, sp1, and .NET 4.0, on an XP sp3 machine.
Any suggestions would be greatly appreciated!
Derrick
Todas las respuestas
-
martes, 17 de abril de 2012 9:13Moderador
Hi Derrick1298,
WPF XBAP can only call WCF from "site of origin", you could check if this is the cause of your issue, more information you could refer to xaml guy's post:
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/85c05bd9-a4e4-4d05-90bf-c1e139a8c8a6
Best regards,
Sheldon _Xiao[MSFT]
MSDN Community Support | Feedback to us
Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marcado como respuesta Sheldon _XiaoModerator martes, 01 de mayo de 2012 7:53
-
martes, 01 de mayo de 2012 7:53Moderador
Hi Derrick1298,
I am marking your issue as "Answered", if you have new findings about your issue, please let me know.Best regards,
Sheldon _Xiao[MSFT]
MSDN Community Support | Feedback to us
Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

