IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

SharePoint .NET Discussion :

Connection Bdd Oracle pour une webpart


Sujet :

SharePoint .NET

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    154
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 154
    Points : 68
    Points
    68
    Par défaut Connection Bdd Oracle pour une webpart
    Bon voila,j'ai les première branche de mon arbre mais il faut que je le complète via une bdd.
    première question : Comment se connecter à une bdd oracle?
    Comment se gère les données que l'on récupère?

    Actuellement, j'ai un noeud racine et 5 noeud enfant( les Grand service)
    il me reste a rajouter les sous service et les employé attribué a chacun des sous service.
    J'ai une table qui regroupe les utilisateur avec une clé étrangère du code de leur service, et une table service avec le code service, ainsi que le libellé service donc pour mon organigramme, il faut que je récupère le libellé d'un service ( ce sera un noeud ) qui sera le fils d'un GRAND service, et à service je lui rajoute les employé.
    je sais pas si j'ai été clair... mais c'est surtout la connection et la récuperation des donnée qui me gène pour le moment , je pense qu'avec une double boucle je devrai m'en sortir apres.

  2. #2
    Membre habitué

    Inscrit en
    Juin 2005
    Messages
    142
    Détails du profil
    Informations forums :
    Inscription : Juin 2005
    Messages : 142
    Points : 174
    Points
    174
    Par défaut
    Ta question n'as plus rien a voir avec SharePoint. C'est tout simplement du développement .net.

    Regarde dans les tutos sur l'accès aux données (ADO.NET)

  3. #3
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    154
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 154
    Points : 68
    Points
    68
    Par défaut
    Hm j'ai regardé les tutos, mais je n'y arrive pas et cela concerne sharepoint puisque le dit script marcherait normalement mais quand je le met dans ma webpart ça ne fonctionne pas.
    En fait je souhaite établir une connection entre une webpart et un serveur distante Oracle : voici mon script avec tout les essai qu'il a pu comporter :

    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
    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
    109
    110
    111
    112
    113
    using System;
    using System.Runtime.InteropServices;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Xml.Serialization;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    using Microsoft.SharePoint.WebPartPages;
    using System.Data;
    using System.Data.OracleClient;
    using System.Web;
    using System.Collections;
     
     
     
     
    namespace WebPart4
    {
     
     
        [Guid("0781047e-d071-48d9-9ce7-463997e752ab")]
        public class WebPart4 : System.Web.UI.WebControls.WebParts.WebPart
        {
     
            public WebPart4()
            {
                this.ExportMode = WebPartExportMode.All;
            }
     
            public DataSet SelectOracleSrvRows(DataSet dataset, string connection, string query)
            {
                query = "select count(nom) from intranet_employe";
                //connection = "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xx.xx.xx.xxx)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ULISP)));User Id=USER;Password=MDP;";
                //connection = "Provider=msdaora;Data Source=ulisp;User Id=USER;Password=MDP;Server=xx.xx.xx.xxx;Integrated Security=no;";  
               // this.connection = "Password=sb;User ID=intranet;Data Source=ULISP;Server=xx.xx.xx.xxx;"; 
               // connection = "Data Source=TITAN_ULISP;User Id=intranet;Password=sb;Server=xx.xx.xx.xxx;";
               // connection = "SERVER = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xx.xxx)(PORT =1521))(CONNECT_DATA = (SERVICE_NAME = ULISP))); uid = USER; pwd = MDP;";
                connection = "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xx.xx.xx.xxx)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ULISP)));User Id=USER;Password=MDP;";
                OracleConnection conn = new OracleConnection(connection);
                OracleDataAdapter adapter = new OracleDataAdapter();
                adapter.SelectCommand = new OracleCommand(query, conn);
                adapter.Fill(dataset);
                return dataset;
            }
     
     
     
            DataSet dataset = null;
            string valeur = null;
            string connection = null;
            string query = null;
     
     
            protected override void CreateChildControls()
            {
     
                this.Controls.Clear();
                TreeView tree = new TreeView();
                this.Controls.Add(tree);
     
                TreeNode rootNode = new TreeNode("AQUITANIS");
                TreeNode firstNode = new TreeNode("Direction Générale");
                TreeNode secondNode = new TreeNode("Direction des ressources Humaines");
                TreeNode thirdNode = new TreeNode("Direction Financière");
                TreeNode fourthNode = new TreeNode("Direction de la Location");
                TreeNode fifthNode = new TreeNode("Direction du Patrimoine");
     
                tree.Nodes.Add(rootNode);
                rootNode.ChildNodes.Add(firstNode);
                rootNode.ChildNodes.Add(secondNode);
                rootNode.ChildNodes.Add(thirdNode);
                rootNode.ChildNodes.Add(fourthNode);
                rootNode.ChildNodes.Add(fifthNode);
     
     
                rootNode.SelectAction = TreeNodeSelectAction.None;
                firstNode.SelectAction = TreeNodeSelectAction.None;
                secondNode.SelectAction = TreeNodeSelectAction.None;
                thirdNode.SelectAction = TreeNodeSelectAction.None;
                fourthNode.SelectAction = TreeNodeSelectAction.None;
                fifthNode.SelectAction = TreeNodeSelectAction.None;
     
     
     
                DataSet ds = SelectOracleSrvRows(dataset, connection, query);
     
     
                foreach (DataRow dr in ds.Tables[0].Rows)
                {
     
     
     
                    valeur = dr["nom"] as string;
     
                    this.Page.Response.Write(valeur);
     
     
                }
     
     
            }
     
     
     
     
     
     
     
        }
     
     
    }

  4. #4
    Membre expert

    Profil pro
    Inscrit en
    Septembre 2002
    Messages
    1 581
    Détails du profil
    Informations personnelles :
    Âge : 48
    Localisation : Belgique

    Informations forums :
    Inscription : Septembre 2002
    Messages : 1 581
    Points : 3 016
    Points
    3 016
    Par défaut
    Citation Envoyé par jonathanC Voir le message
    ça ne fonctionne pas.
    C'est à dire, tu as une erreur? tu as été voir dans les logs sharepoint? tu as été voir dans l'event viewer? Donne plus d'infos si tu veux être aidé.

  5. #5
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    154
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 154
    Points : 68
    Points
    68
    Par défaut
    Salut,
    merci pour ta réponse je remet mon script, car j'arrive bien à me connecter à oracle avec VS2005.j'ai récupérer le connection string qu'il a généré, je n'ai pas d'erreur au deploiement, mais sur WSS j'ai une erreur(il n y a pas de détail de l'erreur mais la page ne marche pas) .
    l'erreur intervient lors de l'appel de ma fonction de connection :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    DataSet ds = SelectOracleSrvRows();
    j'ai essayer de mettre directement ma fonction dans la methode createChildControle mais j'ai toujour une erreur..

    hm je ne sais pas où sont les logs sharepoint et je ne sais pas ce qu'est l'event viewer..mais je vais chercher.


    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
    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
    using System;
    using System.Runtime.InteropServices;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Xml.Serialization;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    using Microsoft.SharePoint.WebPartPages;
    using System.Data;
    using System.Data.OracleClient;
    using System.Web;
    using System.Collections;
     
     
     
     
    namespace WebPart4
    {
     
     
        [Guid("0781047e-d071-48d9-9ce7-463997e752ab")]
        public class WebPart4 : System.Web.UI.WebControls.WebParts.WebPart
        {
     
     
            public WebPart4()
            {
                this.ExportMode = WebPartExportMode.All;
            }
     
            public DataSet SelectOracleSrvRows()
            {
     
                DataSet dataset= new DataSet();
     
     
                string connection = "Data Source=titan_ulisp;User ID=intranet;Unicode=True;";
                string query = "select nom from intranet_employe;";
     
     
                OracleConnection conn = new OracleConnection(connection);
                OracleDataAdapter adapter = new OracleDataAdapter();
                adapter.SelectCommand = new OracleCommand(query, conn);
                adapter.Fill(dataset);
                return dataset;
            }
     
     
     
     
     
     
            protected override void CreateChildControls()
            {
     
                this.Controls.Clear();
                TreeView tree = new TreeView();
                this.Controls.Add(tree);
     
                TreeNode rootNode = new TreeNode("AQUITANIS");
                TreeNode firstNode = new TreeNode("Direction Générale");
                TreeNode secondNode = new TreeNode("Direction des ressources Humaines");
                TreeNode thirdNode = new TreeNode("Direction Financière");
                TreeNode fourthNode = new TreeNode("Direction de la Location");
                TreeNode fifthNode = new TreeNode("Direction du Patrimoine");
     
                tree.Nodes.Add(rootNode);
                rootNode.ChildNodes.Add(firstNode);
                rootNode.ChildNodes.Add(secondNode);
                rootNode.ChildNodes.Add(thirdNode);
                rootNode.ChildNodes.Add(fourthNode);
                rootNode.ChildNodes.Add(fifthNode);
     
     
                rootNode.SelectAction = TreeNodeSelectAction.None;
                firstNode.SelectAction = TreeNodeSelectAction.None;
                secondNode.SelectAction = TreeNodeSelectAction.None;
                thirdNode.SelectAction = TreeNodeSelectAction.None;
                fourthNode.SelectAction = TreeNodeSelectAction.None;
                fifthNode.SelectAction = TreeNodeSelectAction.None;
     
     
     
     
                DataSet ds = SelectOracleSrvRows();
     
                string valeur = null;
                foreach (DataRow dr in ds.Tables[0].Rows)
                {
                    valeur = dr["nom"] as string;
     
                    this.Page.Response.Write(valeur);
                }
     
     
     
     
            }
        }
     
     
    }

  6. #6
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    154
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 154
    Points : 68
    Points
    68
    Par défaut
    Bon apres les multiple test que j'ai effectué, l'erreur provient de la connection..rassurez moi, c'est possible de connecter une webpart à oracle sous WSS?

  7. #7
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    154
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 154
    Points : 68
    Points
    68
    Par défaut
    N'y a t il pas quelque chose a changer dans le web.config? ou autre je ne sais pas

  8. #8
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    154
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 154
    Points : 68
    Points
    68
    Par défaut
    j'ai remplacer ça :

    <trust level="WSS_Minimal" originUrl="" />.
    par <trust level="WSS_Medium" originUrl="" />.
    dans le web.config .. mais toujours sans succès..

    j'ai même été jusqu'a trust level ="full" ...

  9. #9
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    154
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 154
    Points : 68
    Points
    68
    Par défaut
    Y aurait-il AUTRE chose à changer au niveau de la configuration de sharepoint?

  10. #10
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    154
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 154
    Points : 68
    Points
    68
    Par défaut
    Personne...?

  11. #11
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    154
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 154
    Points : 68
    Points
    68
    Par défaut
    J'ai fais un projet à part , pour tester la connection et la connection fonctionne ,j'arrive a récupérer les nom de ma bdd...
    Or quand je transpose ce même script à ma webpart..
    WSS bug.. quelqun aurait une idée?

  12. #12
    Membre expert

    Profil pro
    Inscrit en
    Septembre 2002
    Messages
    1 581
    Détails du profil
    Informations personnelles :
    Âge : 48
    Localisation : Belgique

    Informations forums :
    Inscription : Septembre 2002
    Messages : 1 581
    Points : 3 016
    Points
    3 016
    Par défaut
    Citation Envoyé par jonathanC Voir le message
    J'ai fais un projet à part , pour tester la connection et la connection fonctionne ,j'arrive a récupérer les nom de ma bdd...
    Or quand je transpose ce même script à ma webpart..
    WSS bug.. quelqun aurait une idée?

    Va voir dans les logs Sharepoint, ils se trouvent dans:

    c:\program files\common files\microsoft Shared\web server extensions\12\logs

    et essaye de voir si tu obtiens une erreur liée à ton webpart. Sinon ce que tu pourrais également faire (préférable d'ailleurs) c'est d'ajouter des try\catch dans ton code et d'afficher le message d'erreur et la stack dans la page histoire d'y voir plus clair...

  13. #13
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    154
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 154
    Points : 68
    Points
    68
    Par défaut
    Salut,
    merci d'avoir répondu, j'ai fais un try catch dans mon webpart mais il affiche rien, le message c'est tout le temps erreure inantendue..
    voila le script de ma webpart :

    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
    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
    using System;
    using System.Runtime.InteropServices;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Xml.Serialization;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    using Microsoft.SharePoint.WebPartPages;
    using System.Data;
    using System.Data.OracleClient;
    using System.Web;
    using System.Collections;
     
     
     
     
    namespace WebPart4
    {
     
     
        [Guid("0781047e-d071-48d9-9ce7-463997e752ab")]
        public class WebPart4 : System.Web.UI.WebControls.WebParts.WebPart
        {
     
     
            public WebPart4()
            {
                this.ExportMode = WebPartExportMode.All;
            }
     
     
            protected override void CreateChildControls()
            {
     
     
     
                this.Controls.Clear();
                TreeView tree = new TreeView();
                this.Controls.Add(tree);
     
                TreeNode rootNode = new TreeNode("AQUITANIS");
                TreeNode firstNode = new TreeNode("Direction Générale");
                TreeNode secondNode = new TreeNode("Direction des ressources Humaines");
                TreeNode thirdNode = new TreeNode("Direction Financière");
                TreeNode fourthNode = new TreeNode("Direction de la Location");
                TreeNode fifthNode = new TreeNode("Direction du Patrimoine");
     
                tree.Nodes.Add(rootNode);
                rootNode.ChildNodes.Add(firstNode);
                rootNode.ChildNodes.Add(secondNode);
                rootNode.ChildNodes.Add(thirdNode);
                rootNode.ChildNodes.Add(fourthNode);
                rootNode.ChildNodes.Add(fifthNode);
     
     
                rootNode.SelectAction = TreeNodeSelectAction.None;
                firstNode.SelectAction = TreeNodeSelectAction.None;
                secondNode.SelectAction = TreeNodeSelectAction.None;
                thirdNode.SelectAction = TreeNodeSelectAction.None;
                fourthNode.SelectAction = TreeNodeSelectAction.None;
                fifthNode.SelectAction = TreeNodeSelectAction.None;
     
     
     
                string connection ="Data Source=titan_ulisp;User ID=intranet;password=mdp;Unicode=True;";
                string query ="SELECT nom FROM intranet_employe where nom='XXX'";
                DataSet dataset = new DataSet();
                try
                {
                    OracleConnection conn = new OracleConnection(connection);
                    conn.Open();
                    Console.WriteLine("Etat de la connexion : ça marche" + conn.State);
                    OracleDataAdapter adapter = new OracleDataAdapter();
                    adapter.SelectCommand = new OracleCommand(query, conn);
                    adapter.Fill(dataset);
                    conn.Close();
                }
                catch (Exception e)
                {
                    Console.WriteLine("L'erreur suivante a été rencontrée :" + e.Message);
                }
                string valeur = null;
                foreach (DataRow dr in dataset.Tables[0].Rows)
                {
                    valeur = dr["nom"] as string;
                    TreeNode employe = new TreeNode(valeur);
                    firstNode.ChildNodes.Add(employe);
                }
     
     
     
     
            }
        }
     
     
    }

    voici les logs, j'ai trouver ligne 256 que ça parlait de connection mais je suis incapable de l'interpreter... :


    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
    02/08/2008 08:48:08.51 	w3wp.exe (0x10FC)                       	0x174C	Windows SharePoint Services   	Database                      	880i	High    	System.Threading.ThreadAbortException: Le thread a été abandonné.     à SNINativeMethodWrapper.SNIPacketGetConnection(IntPtr packet)     à System.Data.SqlClient.TdsParserStateObject.ProcessSniPacket(IntPtr packet, UInt32 error)     à System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)     à System.Data.SqlClient.TdsParserStateObject.ReadPacket(Int32 bytesExpected)     à System.Data.SqlClient.TdsParserStateObject.ReadBuffer()     à System.Data.SqlClient.TdsParserStateObject.ReadByte()     à System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)     à System.Data.SqlClient.SqlDataReader.ConsumeMetaData()     à ...	 
    02/08/2008 08:48:08.51*	w3wp.exe (0x10FC)                       	0x174C	Windows SharePoint Services   	Database                      	880i	High    	...System.Data.SqlClient.SqlDataReader.get_MetaData()     à System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)     à System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)     à System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)     à System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)     à System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)     à System.Data.SqlClient.SqlCommand.ExecuteReader(Command...	 
    02/08/2008 08:48:08.51*	w3wp.exe (0x10FC)                       	0x174C	Windows SharePoint Services   	Database                      	880i	High    	...Behavior behavior)     à Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior)	 
    02/08/2008 08:48:08.54 	w3wp.exe (0x10FC)                       	0x174C	Windows SharePoint Services   	Database                      	880k	High    	   à Microsoft.SharePoint.Administration.SPPersistedChildCollection`1.InitializeFromDatabase()     à Microsoft.SharePoint.Administration.SPPersistedObjectCollection`1.get_BackingList()     à Microsoft.SharePoint.Administration.SPPersistedObjectCollection`1.GetEnumerator()     à Microsoft.SharePoint.Administration.SPAlternateUrlCollectionManager.FlushCaches()     à Microsoft.SharePoint.Administration.SPFarm.FlushCache(Object sender, SPConfigurationChangeEventArgs e)     à Microsoft.SharePoint.Administration.SPFarm.FireChangeEvent(Guid objectId, SPPersistedObjectChangeEvent evt)     à Microsoft.SharePoint.Administration.SPConfigurationDatabase.SPFileSystemCacheWatcher.OnRenamed(Object source, RenamedEventArgs e)     à System.IO.FileSystemWatcher.OnRenamed(RenamedEventArgs e)     à System.IO....	 
    02/08/2008 08:48:08.54*	w3wp.exe (0x10FC)                       	0x174C	Windows SharePoint Services   	Database                      	880k	High    	...FileSystemWatcher.NotifyRenameEventArgs(WatcherChangeTypes action, String name, String oldName)     à System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* overlappedPointer)     à System.Threading._IOCompletionCallback.IOCompletionCallback_Context(Object state)     à System.Threading.ExecutionContext.runTryCode(Object userData)     à System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)     à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)     à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)     à System.Threading._IOComp...	 
    02/08/2008 08:48:08.54*	w3wp.exe (0x10FC)                       	0x174C	Windows SharePoint Services   	Database                      	880k	High    	...letionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)  	 
    02/08/2008 08:48:08.59 	w3wp.exe (0x10FC)                       	0x174C	Windows SharePoint Services   	Database                      	880l	High    	ConnectionString: 'Data Source=np:\\.\pipe\MSSQL$Microsoft##SSEE\sql\query;Initial Catalog=SharePoint_Config_9aed98dc-bf57-4a08-a226-8d99b23fced9;Integrated Security=True;Enlist=False'    ConnectionState: Closed ConnectionTimeout: 15	 
    02/08/2008 08:48:08.60 	w3wp.exe (0x10FC)                       	0x174C	Windows SharePoint Services   	Database                      	880m	High    	SqlCommand: 'dbo.proc_getObjectsByBaseClass'     CommandType: StoredProcedure CommandTimeout: 0     Parameter: '@RETURN_VALUE' Type: Int Size: 0 Direction: ReturnValue Value: ''     Parameter: '@BaseClassId' Type: UniqueIdentifier Size: 0 Direction: Input Value: '9920f486-2ff4-4d10-9532-e01979826585'     Parameter: '@ParentId' Type: UniqueIdentifier Size: 0 Direction: Input Value: '0fad6096-d263-404d-9078-527e8bceb7d5'	 
    02/08/2008 08:48:10.53 	devenv.exe (0x0B50)                     	0x1438	Windows SharePoint Services   	Topology                      	8xqz	Medium  	Updating SPPersistedObject SPSolution Name=webpart4.wsp Parent=SPFarm Name=SharePoint_Config_9aed98dc-bf57-4a08-a226-8d99b23fced9. Version: -1 Ensure: 0, HashCode: 14293220, Id: 46e6416e-3c9d-4fd5-b884-14223f700716, Stack:    à Microsoft.SharePoint.Administration.SPPersistedObject.Update()     à Microsoft.SharePoint.Administration.SPPersistedObject.Update(Boolean ensure)     à Microsoft.SharePoint.Administration.SPPersistedChildCollection`1.Add(T newObj, Boolean ensure)     à Microsoft.SharePoint.Administration.SPPersistedChildCollection`1.Add(T newObj)     à Microsoft.SharePoint.Administration.SPSolutionCollection.Add(String path, UInt32 lcid)     à Microsoft.SharePoint.Administration.SPSolutionCollection.Add(String path)     à System.RuntimeMethodHandle._InvokeMethodFast(Object target, O...	 
    02/08/2008 08:48:10.53*	devenv.exe (0x0B50)                     	0x1438	Windows SharePoint Services   	Topology                      	8xqz	Medium  	...bject[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)     à System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)     à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)     à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)     à System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)     à Microsoft.SharePoint.Tools.Reflection.ReflectionUtility.InvokeMethod(MethodBase method, Object instance, Object[] parameters)     à Mi...	 
    02/08/2008 08:48:10.53*	devenv.exe (0x0B50)                     	0x1438	Windows SharePoint Services   	Topology                      	8xqz	Medium  	...crosoft.SharePoint.Tools.Reflection.ReflectionUtility.InvokeMethod(Type type, String methodName, Object instance, Object[] parameters)     à Microsoft.SharePoint.Tools.SharePointProxies.SPProxy.InvokeMethod(String name, Object[] parameters)     à Microsoft.SharePoint.Tools.SharePointProxies.SPSolutionCollectionProxy.Add(String path)     à Microsoft.SharePoint.Tools.SharePointSolutions.SolutionRegister.AddSolution(String solutionFilePath, ISolution solution, String url)     à Microsoft.SharePoint.Tools.SharePointSolutions.SolutionRegister.Register(String solutionFilePath, String solutionCachePath, String registerUrl)     à Microsoft.SharePoint.Tools.SharePointSolutions.SolutionDeployer.Deploy()     à System.Threading.ThreadHelper.ThreadStart_Context(Object state)     à System.Threading.Exec...	 
    02/08/2008 08:48:10.53*	devenv.exe (0x0B50)                     	0x1438	Windows SharePoint Services   	Topology                      	8xqz	Medium  	...utionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)     à System.Threading.ThreadHelper.ThreadStart()  	 
    02/08/2008 08:48:10.54 	devenv.exe (0x0B50)                     	0x1438	Windows SharePoint Services   	Topology                      	8xqz	Medium  	Updating SPPersistedObject SPSolutionLanguagePack Name=0 Parent=SPSolution Name=webpart4.wsp. Version: -1 Ensure: 0, HashCode: 39215152, Id: edcd922b-5046-4e4e-939c-0d771a718e81, Stack:    à Microsoft.SharePoint.Administration.SPPersistedObject.Update()     à Microsoft.SharePoint.Administration.SPSolution.AddLanguagePack(SPSolutionPackage solnPackage, String path, UInt32 lcid)     à Microsoft.SharePoint.Administration.SPSolutionCollection.Add(String path, UInt32 lcid)     à Microsoft.SharePoint.Administration.SPSolutionCollection.Add(String path)     à System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)     à System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] a...	 
    02/08/2008 08:48:10.54*	devenv.exe (0x0B50)                     	0x1438	Windows SharePoint Services   	Topology                      	8xqz	Medium  	...rguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)     à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)     à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)     à System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)     à Microsoft.SharePoint.Tools.Reflection.ReflectionUtility.InvokeMethod(MethodBase method, Object instance, Object[] parameters)     à Microsoft.SharePoint.Tools.Reflection.ReflectionUtility.InvokeMethod(Type type, String methodName, Object instance, Object[] parameters)     à Microsoft.SharePoint.Tools.SharePointPr...	 
    02/08/2008 08:48:10.54*	devenv.exe (0x0B50)                     	0x1438	Windows SharePoint Services   	Topology                      	8xqz	Medium  	...oxies.SPProxy.InvokeMethod(String name, Object[] parameters)     à Microsoft.SharePoint.Tools.SharePointProxies.SPSolutionCollectionProxy.Add(String path)     à Microsoft.SharePoint.Tools.SharePointSolutions.SolutionRegister.AddSolution(String solutionFilePath, ISolution solution, String url)     à Microsoft.SharePoint.Tools.SharePointSolutions.SolutionRegister.Register(String solutionFilePath, String solutionCachePath, String registerUrl)     à Microsoft.SharePoint.Tools.SharePointSolutions.SolutionDeployer.Deploy()     à System.Threading.ThreadHelper.ThreadStart_Context(Object state)     à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)     à System.Threading.ThreadHelper.ThreadStart()  	 
    02/08/2008 08:48:10.60 	devenv.exe (0x0B50)                     	0x1438	Windows SharePoint Services   	Topology                      	8xqz	Medium  	Updating SPPersistedObject SPPersistedFile Name=webpart4.wsp Parent=SPSolutionLanguagePack Name=0. Version: -1 Ensure: 0, HashCode: 19851382, Id: 221ac52f-d988-4b2d-8194-088e1085b2e2, Stack:    à Microsoft.SharePoint.Administration.SPPersistedObject.Update()     à Microsoft.SharePoint.Administration.SPPersistedFile.Update()     à Microsoft.SharePoint.Administration.SPSolutionLanguagePack.SetSolutionFile(SPSolutionPackage solnPackage, String path)     à Microsoft.SharePoint.Administration.SPSolution.AddLanguagePack(SPSolutionPackage solnPackage, String path, UInt32 lcid)     à Microsoft.SharePoint.Administration.SPSolutionCollection.Add(String path, UInt32 lcid)     à Microsoft.SharePoint.Administration.SPSolutionCollection.Add(String path)     à System.RuntimeMethodHandle._InvokeMethodFast...	 
    02/08/2008 08:48:10.60*	devenv.exe (0x0B50)                     	0x1438	Windows SharePoint Services   	Topology                      	8xqz	Medium  	...(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)     à System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)     à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)     à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)     à System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)     à Microsoft.SharePoint.Tools.Reflection.ReflectionUtility.InvokeMethod(MethodBase method, Object instance, Object[] par...

  14. #14
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    154
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 154
    Points : 68
    Points
    68
    Par défaut
    Hey oublier les logs j'ai reussi à afficher l'erreur sur oracle :

    L'erreur suivante a été rencontrée :System.Data.OracleClient requiert le logiciel client Oracle version 8.1.7 ou supérieure.

    Comment indiquer a WSS que ce client est installé? car je l'ai installé la version est 9. je c plus combien ...!
    help me !!

  15. #15
    Membre habitué
    Homme Profil pro
    Développeur Java
    Inscrit en
    Avril 2007
    Messages
    375
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Loir et Cher (Centre)

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 375
    Points : 154
    Points
    154
    Par défaut
    Je rencontre le même problème, mais avec un fichier .cs de code behind.
    Je me permet donc de faire remonter ce post. Est-ce que tu as trouvé une solution ?

    Merci

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. comment procéder pour une webpart
    Par bakabdel dans le forum SharePoint
    Réponses: 2
    Dernier message: 18/03/2009, 11h11
  2. Connection rapide à Oracle pour lire les données
    Par DOUM555 dans le forum Interfaces de programmation
    Réponses: 0
    Dernier message: 29/01/2009, 23h00
  3. Connection Bdd oracle pour une webpart
    Par jonathanC dans le forum C#
    Réponses: 7
    Dernier message: 05/02/2008, 09h09
  4. Interrogation bdd oracle avec une application web
    Par Lemuel dans le forum Oracle
    Réponses: 2
    Dernier message: 09/12/2006, 14h09
  5. cmt se connecté a oracle pour faire une requete avec python
    Par dipajero dans le forum Bibliothèques tierces
    Réponses: 6
    Dernier message: 28/12/2005, 20h22

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo