|
Futur Membre du Club
Inscription : mars 2007 Messages : 98 Détails du profil  Informations forums : Inscription : mars 2007 Messages : 98 Points : 17 Points : 17
|
Merci beaucoup pour tes conseils, mais ça n'a pas marché. Par contre, ça m'a fait réfléchir et en fait je doute sur mes configurations de connexion.
J'ai l'impression que j'ai mal configuré le dataset et le web.config.
Est ce que tu pourrais regarder si la connexion est bonne?
On remarque bien que le message d'erreur que j'ai me donne de mauvais identifiants de server, même pas de mot de passe, BDD.... Est ce normal?
Je me permet d'envoyer le DataSet et le web.config. Dsl pour le flood
Mon DataSet: (Généré automatiquement par VS, en faisant un DataTable qui prend chaque champ que j'ai besoin dans les différentes tables.)
Code :
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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
| <?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSetBulletin1A" targetNamespace="http://tempuri.org/DataSetBulletin1A.xsd" xmlns:mstns="http://tempuri.org/DataSetBulletin1A.xsd" xmlns="http://tempuri.org/DataSetBulletin1A.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="Rhumerie_LaMaunyConnexionString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="Rhumerie_LaMaunyConnexionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.Rhumerie_LaMaunyConnexionString.ConnectionString" Provider="System.Data.SqlClient ">
</Connection>
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DataTable1TableAdapter" GeneratorDataComponentClassName="DataTable1TableAdapter" Name="DataTable1" UserDataComponentName="DataTable1TableAdapter">
<MainSource>
<DbSource ConnectionRef="Rhumerie_LaMaunyConnexionString (Web.config)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="False" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="True">
<CommandText>SELECT T_Lot2cannes.numero_lot2cannes, T_Lot2cannes.taux_sucre_lot2cannes, T_Lot2cannes.taux_ph_lot2cannes, T_Lot2cannes.tonnage_lot2cannes,
T_Lot2cannes.date_reception, T_Employe.nom_employe, T_Employe.prenom_employe, T_Livreur.nom_livreur, T_Livreur.prenom_livreur,
T_Societelivreur.nom_societe
FROM T_Lot2cannes INNER JOIN
T_Livreur ON T_Lot2cannes.id_livreur = T_Livreur.id_livreur INNER JOIN
T_Employe ON T_Lot2cannes.id_employe_reception = T_Employe.id_employe INNER JOIN
T_Societelivreur ON T_Livreur.id_societe = T_Societelivreur.id_societe</CommandText>
<Parameters>
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="numero_lot2cannes" DataSetColumn="numero_lot2cannes" />
<Mapping SourceColumn="taux_sucre_lot2cannes" DataSetColumn="taux_sucre_lot2cannes" />
<Mapping SourceColumn="taux_ph_lot2cannes" DataSetColumn="taux_ph_lot2cannes" />
<Mapping SourceColumn="tonnage_lot2cannes" DataSetColumn="tonnage_lot2cannes" />
<Mapping SourceColumn="date_reception" DataSetColumn="date_reception" />
<Mapping SourceColumn="nom_employe" DataSetColumn="nom_employe" />
<Mapping SourceColumn="prenom_employe" DataSetColumn="prenom_employe" />
<Mapping SourceColumn="nom_livreur" DataSetColumn="nom_livreur" />
<Mapping SourceColumn="prenom_livreur" DataSetColumn="prenom_livreur" />
<Mapping SourceColumn="nom_societe" DataSetColumn="nom_societe" />
</Mappings>
<Sources>
</Sources>
</TableAdapter>
</Tables>
<Sources>
</Sources>
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="DataSetBulletin1A" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="DataSetBulletin1A" msprop:Generator_DataSetName="DataSetBulletin1A">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="DataTable1" msprop:Generator_UserTableName="DataTable1" msprop:Generator_RowDeletedName="DataTable1RowDeleted" msprop:Generator_TableClassName="DataTable1DataTable" msprop:Generator_RowChangedName="DataTable1RowChanged" msprop:Generator_RowClassName="DataTable1Row" msprop:Generator_RowChangingName="DataTable1RowChanging" msprop:Generator_RowEvArgName="DataTable1RowChangeEvent" msprop:Generator_RowEvHandlerName="DataTable1RowChangeEventHandler" msprop:Generator_TablePropName="DataTable1" msprop:Generator_TableVarName="tableDataTable1" msprop:Generator_RowDeletingName="DataTable1RowDeleting">
<xs:complexType>
<xs:sequence>
<xs:element name="numero_lot2cannes" msprop:Generator_UserColumnName="numero_lot2cannes" msprop:Generator_ColumnPropNameInRow="numero_lot2cannes" msprop:Generator_ColumnVarNameInTable="columnnumero_lot2cannes" msprop:Generator_ColumnPropNameInTable="numero_lot2cannesColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2147483647" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="taux_sucre_lot2cannes" msprop:Generator_UserColumnName="taux_sucre_lot2cannes" msprop:Generator_ColumnPropNameInRow="taux_sucre_lot2cannes" msprop:Generator_ColumnVarNameInTable="columntaux_sucre_lot2cannes" msprop:Generator_ColumnPropNameInTable="taux_sucre_lot2cannesColumn" type="xs:decimal" minOccurs="0" />
<xs:element name="taux_ph_lot2cannes" msprop:Generator_UserColumnName="taux_ph_lot2cannes" msprop:Generator_ColumnPropNameInRow="taux_ph_lot2cannes" msprop:Generator_ColumnVarNameInTable="columntaux_ph_lot2cannes" msprop:Generator_ColumnPropNameInTable="taux_ph_lot2cannesColumn" type="xs:decimal" minOccurs="0" />
<xs:element name="tonnage_lot2cannes" msprop:Generator_UserColumnName="tonnage_lot2cannes" msprop:Generator_ColumnPropNameInRow="tonnage_lot2cannes" msprop:Generator_ColumnVarNameInTable="columntonnage_lot2cannes" msprop:Generator_ColumnPropNameInTable="tonnage_lot2cannesColumn" type="xs:decimal" minOccurs="0" />
<xs:element name="date_reception" msprop:Generator_UserColumnName="date_reception" msprop:Generator_ColumnPropNameInRow="date_reception" msprop:Generator_ColumnVarNameInTable="columndate_reception" msprop:Generator_ColumnPropNameInTable="date_receptionColumn" type="xs:dateTime" minOccurs="0" />
<xs:element name="nom_employe" msprop:Generator_UserColumnName="nom_employe" msprop:Generator_ColumnPropNameInRow="nom_employe" msprop:Generator_ColumnVarNameInTable="columnnom_employe" msprop:Generator_ColumnPropNameInTable="nom_employeColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2147483647" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="prenom_employe" msprop:Generator_UserColumnName="prenom_employe" msprop:Generator_ColumnPropNameInRow="prenom_employe" msprop:Generator_ColumnVarNameInTable="columnprenom_employe" msprop:Generator_ColumnPropNameInTable="prenom_employeColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2147483647" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nom_livreur" msprop:Generator_UserColumnName="nom_livreur" msprop:Generator_ColumnPropNameInRow="nom_livreur" msprop:Generator_ColumnVarNameInTable="columnnom_livreur" msprop:Generator_ColumnPropNameInTable="nom_livreurColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2147483647" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="prenom_livreur" msprop:Generator_UserColumnName="prenom_livreur" msprop:Generator_ColumnPropNameInRow="prenom_livreur" msprop:Generator_ColumnVarNameInTable="columnprenom_livreur" msprop:Generator_ColumnPropNameInTable="prenom_livreurColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2147483647" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nom_societe" msprop:Generator_UserColumnName="nom_societe" msprop:Generator_ColumnPropNameInRow="nom_societe" msprop:Generator_ColumnVarNameInTable="columnnom_societe" msprop:Generator_ColumnPropNameInTable="nom_societeColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2147483647" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema> |
Mon Web.config:
Code :
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 72 73 74 75 76 77 78 79 80
| <?xml version="1.0"?><!--
Remarque : au lieu d'éditer manuellement ce fichier, vous pouvez utiliser
l'outil d'administration Web pour configurer les paramètres de votre
application. Utilisez l'OPTION Site Web->Configuration Asp.Net de Visual Studio.
Vous trouverez la liste complète des paramètres et commentaires dans
machine.config.comments, situé généralement dans
\Windows\Microsoft.Net\Framework\v2.x\Config
--><configuration>
<connectionStrings>
<ADD name="Rhumerie_LaMaunyConnectionString" connectionString="Data Source=EXIA-B7BFF65562\GUYGUY;Initial Catalog=Rhumerie_LaMauny;Persist Security Info=True;User ID=Guillaume;Password=guyguy;Integrated Security=true"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<!--
Définissez compilation debug="true" pour insérer des symboles
de débogage dans la page compilée. Comme ceci
affecte les performances, définissez cette valeur en utilisant true uniquement
lors du développement.
Options Visual Basic*:
Définissez strict="true" pour interdire les conversions de types de données
susceptibles d'entraîner des pertes de données.
Définissez explicit="true" pour forcer la déclaration de toutes les variables.
-->
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/><add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></assemblies></compilation>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
</pages>
<!--
La section <authentication> permet la configuration
du mode d'authentification de sécurité utilisé par
ASP.NET pour identifier un utilisateur entrant.
-->
<authentication mode="Windows"/>
<!--
La section <customErrors> permet de configurer
les actions à exécuter si/quand une erreur non gérée se produit
lors de l'exécution d'une demande. Plus précisément,
elle permet aux développeurs de configurer les pages d'erreur html
pour qu'elles s'affichent à la place d'une trace de la pile d'erreur.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<httpHandlers><add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers></system.web>
<location allowOverride="true" inheritInChildApplications="true">
<appSettings>
<add key="CrystalImageCleaner-AutoStart" value="true" />
<add key="CrystalImageCleaner-Sleep" value="60000" />
<add key="CrystalImageCleaner-Age" value="120000" />
</appSettings>
</location>
</configuration> |
Merci encore!!
|