Je penche dessus depuis qques temps
Voici mon erreur
Impossible de trouver la procédure stockée 'P_REF_SelectApplications'.
Description : Une exception non gérée s'est produite au moment de l'exécution de la demande Web actuelle. Contrôlez la trace de la pile pour plus d'informations sur l'erreur et son origine dans le code.
Détails de l'exception: System.Data.SqlClient.SqlException: Impossible de trouver la procédure stockée 'P_REF_SelectApplications'.
Erreur source:
Trace de la pile:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 Ligne 93 : sqlSC.Parameters["@pTri"].Value = tri; Ligne 94 : Ligne 95 : return sqlSC.ExecuteReader(); Ligne 96 : } Ligne 97 : Fichier source : c:\frcuma\src\extranet\commun\ref\data\sqlapplication.cs Ligne : 95
et voici ma méthode où l'erreur se situe :[SqlException: Impossible de trouver la procédure stockée 'P_REF_SelectApplications'.]
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
System.Data.SqlClient.SqlCommand.ExecuteReader()
Frcuma.COMMUN.REF.Data.SQLApplication.Lire(String tri) in c:\frcuma\src\extranet\commun\ref\data\sqlapplication.cs:95
Frcuma.COMMUN.REF.Data.SQLApplication.Charger(ArrayList tabDest, String tri) in c:\frcuma\src\extranet\commun\ref\data\sqlapplication.cs:130
Frcuma.COMMUN.REF.frmREF_ConsulterSouscription.genererTableau() in c:\frcuma\src\extranet\commun\ref\frmref_consultersouscription.aspx.cs:55
Frcuma.COMMUN.REF.frmREF_ConsulterSouscription.Page_Load(Object sender, EventArgs e) in c:\frcuma\src\extranet\commun\ref\frmref_consultersouscription.aspx.cs:216
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
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 public System.Data.SqlClient.SqlDataReader Lire(string tri) { // Définition de l'accès aux données sqlDA.TableMappings.Clear(); sqlSC.Cancel(); sqlSC.Parameters.Clear(); sqlSC.Cancel(); // // sqlDA // sqlDA.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] { new System.Data.Common.DataTableMapping("Table", "P_REF_SelectApplications", new System.Data.Common.DataColumnMapping[] { new System.Data.Common.DataColumnMapping("APP_ID", "APP_ID"), new System.Data.Common.DataColumnMapping("APP_LIBELLE", "APP_LIBELLE"), new System.Data.Common.DataColumnMapping("APP_TARIF", "APP_TARIF")})}); // // sqlSC // sqlSC.CommandText = "[P_REF_SelectApplications]"; sqlSC.CommandType = System.Data.CommandType.StoredProcedure; sqlSC.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(0)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null)); sqlSC.Parameters.Add(new System.Data.SqlClient.SqlParameter("@pTri", System.Data.SqlDbType.VarChar, 50)); sqlSC.Parameters["@pTri"].Value = tri; return sqlSC.ExecuteReader(); }
Partager