[En cours][C#]Comment spécifier un type
Bonjour :)
J'ai une page dans laquelle je souhaite mettre une DropDownList qui va me chercher des infos dans une base de données :
Table : Languages
Colonnes : Code, Libelle
J'ai donc inséré le code suivant :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| <asp:LinqDataSource
ID="LanguesDataSource"
ContextTypeName="Carma.App_Code.CarmaDataContext"
TableName="Languages"
runat="server">
</asp:LinqDataSource>
<asp:DropDownList
ID="LanguesDropDownList"
runat="server"
DataSourceID="LanguesDataSource"
DataValueField="Libelle">
</asp:DropDownList> |
et j'obtiens le message d'erreur suivant :
Citation:
Le type 'Carma.App_Code.CarmaDataContext' est ambigu : il peut provenir de l'assembly 'C:\Windows\Microsoft (...)' ou de l'assembly 'C:\Users\Administrateur\Desktop\4.01 Internationalisation\Carma\bin\Carma.DLL'.
Spécifiez l'assembly explicitement dans le nom du type.
Ci joint un screen de larchitecture de mon application => ici
J'ai essayé de remplacer le contextTypeName par "(DataContext)Carma.App_Code.CarmaDataContext mais ça ne marche pas non plus.
Pourriez-vous m'aider ;)
Un grand merci d'avance ^^