Bonjour, je suis en train de développer une application utilisant le .net ria service.
Après avoir creé mon entitydatamode, j'ai crée ma class de domain service pour exposer mes objets à mon client (ici mon application silverlight). Ensuite j'ajoute un DomainDataSource au sein de ma page XAML, ainsi que le nameSpace de mon objet, je l'insère ensuite au sein de mon domainDataSource, et la malheureusement, j'ai un AG_Parser_Error au niveau du designer VS2008 ainsi qu'un AG_Parser_Bad_Property d'un XMLParserException levée depuis InitializeComponent(), pourtant l'objet est bien celui qui l'IntelliSense me renvoie et après de nombreux tutaux c'est bien la bonne méthode.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
 
<navigation:Page xmlns:dataControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm" xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Ria.Controls" xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" x:Class="NavigationTest.HomePage" 
 
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
 
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
 
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
 
xmlns:ds="clr-namespace:NavigationTest.Web"
 
Title="HomePage Page">
 
<Grid x:Name="LayoutRoot" Background="White">
 
 
<StackPanel> 
 
 
<TextBlock Text="Liste des Salles occupes" Style="{StaticResource HeaderTextStyle}"/>
 
<data:DataGrid x:Name="DataGrid1" Height="Auto" MinHeight="100"
 
IsReadOnly="True" ></data:DataGrid> 
 
<riaControls:DomainDataSource x:Name="SalleDataSource" LoadSize="20" 
 
LoadMethodName="GetSalles" AutoLoad="True" >
 
<riaControls:DomainDataSource.DomainContext>
 
<ds:SalleContext/>
 
</riaControls:DomainDataSource.DomainContext>
 
</riaControls:DomainDataSource>
 
<StackPanel Style="{StaticResource ContentTextPanelStyle}">
 
 
<dataControls:DataForm x:Name="dataForm1" Header="Occupation de la Salle" AutoGenerateFields="False" 
 
AutoCommit="True" 
 
CurrentItem="{Binding SelectedItem, ElementName=dataGrid1}" Margin="0,12,0,0">
 
 
<dataControls:DataForm.Fields>
 
<dataControls:DataFormTextField FieldLabelContent="Libelle"
 
Binding="{Binding Libelle, Mode=TwoWay,NotifyOnValidationError=True, ValidatesOnExceptions=True }" />
 
<dataControls:DataFormTextField FieldLabelContent="capacit"
 
Binding="{Binding Capacite, Mode=TwoWay,NotifyOnValidationError=True, ValidatesOnExceptions=True }" />
 
</dataControls:DataForm.Fields>
 
 
</dataControls:DataForm>
 
<Button x:Name="submitButton" Width="75" Height="23" Content="Submit" Margin="4,0,0,0" Click="submitButton_Click"/>
 
</StackPanel>
 
</StackPanel>
 
</Grid>
 
</navigation:Page>