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.