Common Errors of silverlight and wcf ria service

Source: Internet
Author: User

1. when adding data to the database tutorial, the page prompts that an object is missing, and the debugging status prompts an error. The entityset "*****" cannot be updated because it has a definingquery, the <modificationfunctionmapping> element does not support the <insertfunction> element of the current operation"

Solution: because no primary key is added to the operated table, you can refresh edm after adding the primary key.

2. the page prompts "iis has set access permissions... ", the page prompts" note fond ", which is really a problem on iis6, because the wcf ria service must use anonymous authentication, so you can remove integration verification and so on.

3. The custom type method returned by the wcf ria service is as follows:

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 ;}
}

[Datacontract] is required, and a primary key, [key], must be defined.


1. display html on silverlight

You can use the <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>

 

 

Note that <param name = "windowless" value = "true"/> must be added to <object> in sl. Otherwise, <iframe> may disappear secretly.

Related Article

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.