Remove and Re-Add System.Windows References
This includes:
- System.Windows
- System.Windows.Browser
- System.Windows.Controls.Data
- System.Windows.Controls.Extended (this one will likely not be needed now as many controls have moved into the base assemblies)
Make this change in App.xaml and any other user control (*.xaml) objects.
From:
xmlns="http://schemas.microsoft.com/client/2007"To:
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"This avoids mystery "invalid XAML" errors from the Silverlight control on web pages:
Sys.InvalidOperationException: Invalid XAML for control 'Xaml1'. [] (line 1, col 229): The element is not valid in the given namespace.Update the Deployment Node Namespace in AppManifest.xaml
From:
<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" EntryPointAssembly="HCHB.ServiceRequests" EntryPointType="HCHB.ServiceRequests.App" RuntimeVersion="2.0.30226.2">To:
<Deployment xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" EntryPointAssembly="HCHB.ServiceRequests" EntryPointType="HCHB.ServiceRequests.App" RuntimeVersion="2.0.30523.6">Update the Silverlight Control Declaration
Find the Silverlight control on the web page(s) in your site and update the node accordingly, from:
<asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/Silverlight1.xap" Version="2.0" Width="100%" Height="100%" />To:
<asp:Silverlight ID="Silverlight1" runat="server" Source="~/ClientBin/Silverlight1.xap" MinimumVersion="2.0.30523" Width="100%" Height="100%" />Change the Cross-Domain Access Policy
This prevents 404 errors when calling my web services.
From:
<?xml version="1.0" encoding="utf-8"?>To:
<access-policy>
<cross-domain-access>
<policy>
<allow-from>
...
<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
...
No comments:
Post a Comment