Common error resolution for Silverlight and WCF RIA Service

Source: Internet
Author: User
Tags silverlight

1. When adding data to the Database tutorial, the page prompts for missing objects, error debugging status prompts, unable to update EntitySet "* * *" because it has a definingquery, while the <modificationfunctionmapping> There is no <insertfunction> element in the element that supports the current operation

WORKAROUND: Because the table you are manipulating does not have a primary key added, it is OK to refresh the EDM after you add a primary key.

2. Page Tip "IIS has set access ...", the page prompts "Note fond", this is really iis6 problem, because WCF RIA service must use Anonymous authentication, so, the integration verification and so on can be removed.

3.WCF RIA Service Returns the custom type method:

Add a custom type to the. metadate.cs file, for example:


[DataContract]
public class ServiceContainer
{
[DataMember]
[Key]
public int ID {get; set;}

[DataMember]
public int Containerid {get; set;}
}

where [DataContract] is required, you must also define a primary key, [key]


1. display HTML on Silverlight

can adopt <div> mode

Code
<div style= "POSITION:ABSOLUTE;Z-INDEX:4; top:70px;left:200px;height:80%;width:80% ">
<iframe src= "http://www.google.com.hk" style= "position:fixed;top:70px;left:200px;height:80%;width:80%" > </iframe>
</div>

One thing to note, in SL <object> must be added <param name= "windowless" value= "true"/>, otherwise,<iframe> sometimes mysteriously disappear

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.