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 :

[Sharepoint Designer] Problème de connexion entre 2 Webpart sur des pages différentes


Sujet :

SharePoint .NET

  1. #1
    Membre habitué

    Profil pro
    Consultant Business Intelligence
    Inscrit en
    Novembre 2005
    Messages
    284
    Détails du profil
    Informations personnelles :
    Localisation : Suisse

    Informations professionnelles :
    Activité : Consultant Business Intelligence

    Informations forums :
    Inscription : Novembre 2005
    Messages : 284
    Points : 186
    Points
    186
    Par défaut [Sharepoint Designer] Problème de connexion entre 2 Webpart sur des pages différentes
    Bonjour,

    Voilà j'ai un problème étrange, je travail sur une machine virtuelle, et j'y accède avec Remote Desktop Connexion. Mais pour modifier mon site Sharepoint j'utilise Sharepoint Designer qui est installé localement sur ma machine et je donne l'adresse IP de ma machine virtuelle.

    J'ai créer une première DataView qui contient une liste de personne et une seconde qui est le détail concernant une personne selectionnée, C'est sur 2 pages différentes : liste.aspx et detail.aspx
    J'ai créer la connexion entre les 2 Webparts.
    Et lorsque je suis sur la machine virtuelle via remote Desktop la connexion fonctionne en cliquant sur mon lien détail j'arrive sur la personne concernée. Mais dans IE7 l'adresse est ainsi : http://monserver/monsite/liste.aspx

    Par contre quand je suis sur Sharepoint Designer et que j'utilise la fonction aperçu dans IE7. j'obtiens l'erreur suivante :

    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
     
    Server Error in '/' Application.
    --------------------------------------------------------------------------
     
    This Web Part is attempting to connect to a Web Part on a page within another top-level site, which is not supported. To create a connection to a Web Part on another page, that other page must be within the same top-level site as the current page. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
     
    Exception Details: Microsoft.SharePoint.WebPartPages.Communication.ConnectionFailedException: This Web Part is attempting to connect to a Web Part on a page within another top-level site, which is not supported. To create a connection to a Web Part on another page, that other page must be within the same top-level site as the current page.
     
    Source Error: 
     
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
     
    Stack Trace: 
     
    [ConnectionFailedException: This Web Part is attempting to connect to a Web Part on a page within another top-level site, which is not supported. To create a connection to a Web Part on another page, that other page must be within the same top-level site as the current page.]
       Microsoft.SharePoint.WebPartPages.SPWebPartConnection.CreateAspCrossPageSource() +264
       Microsoft.SharePoint.WebPartPages.SPWebPartConnection.EnsureCrossPageProxy() +123
       Microsoft.SharePoint.WebPartPages.SPWebPartConnection.get_IsCrossPageDisabled() +29
       Microsoft.SharePoint.WebPartPages.SPWebPartManager.LoadConnectionsState() +372
       Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts) +10049
       Microsoft.SharePoint.WebPartPages.SPWebPartManager.LoadWebParts() +63
       Microsoft.SharePoint.WebPartPages.SPWebPartManager.OnPageInitComplete(Object sender, EventArgs e) +409
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       System.Web.UI.Page.OnInitComplete(EventArgs e) +8694646
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +467
    Mais dans ce cas dans IE7 j'utilise l'adresse IP de la machine :
    http://adresseip/monsite/liste.aspx

    Je suis obligé d'utilisé l'adresse IP à cause de redondance de nom sur le réseau, je sais c'est bête mais voilà.
    Et au niveau du site level, c'est ainsi :
    http://mamachine/monsite/liste.aspx et http://mamachine/monsite/detail.aspx

    Voilà merci à ceux qui prendront le temps de lire ce long post et de m'aider.

  2. #2
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Décembre 2007
    Messages
    26
    Détails du profil
    Informations personnelles :
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Décembre 2007
    Messages : 26
    Points : 30
    Points
    30
    Par défaut
    Salut,

    Ton problème viens sans doute du fait que tu te connecte en utilisant l'adresse IP depuis l'exterieur.

    J'essayerai deux choses :
    1) Modifier le fichier "host" (C:\Windows\System32\drivers\etc) de ta machine afin de lier le nom de ta VPC son IP.
    Tu pourra alors y accéder en utilisant le nom de la VPC plutôt que l'IP.

    2) Sur ta VPC MOSS, tu peux ajouter l'adresse IP dans les "Alternate Access Mapping". (Central Administration > Operations > Alternate Access Mappings)
    Ceci devrait permettre a Sharepoint de reconnaitre l'adresse ip comme une adress gérée par moss.

  3. #3
    Membre habitué

    Profil pro
    Consultant Business Intelligence
    Inscrit en
    Novembre 2005
    Messages
    284
    Détails du profil
    Informations personnelles :
    Localisation : Suisse

    Informations professionnelles :
    Activité : Consultant Business Intelligence

    Informations forums :
    Inscription : Novembre 2005
    Messages : 284
    Points : 186
    Points
    186
    Par défaut
    Salut,

    Oui en effect, ça fonctionne en modifiant "Alternate Access Mapping". Je te remercie.

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

Discussions similaires

  1. problème dans la connexion entre deux webpart
    Par Wnejla dans le forum SharePoint
    Réponses: 2
    Dernier message: 27/03/2013, 13h02
  2. [MySQL] Connexion entre 2 bases sur 2 serveur différents
    Par legrandse dans le forum PHP & Base de données
    Réponses: 13
    Dernier message: 23/04/2012, 16h54
  3. Réponses: 4
    Dernier message: 13/10/2010, 14h11
  4. Réponses: 2
    Dernier message: 10/10/2008, 20h35
  5. Problème de connexion entre WebParts "home made"
    Par pcr92 dans le forum SharePoint
    Réponses: 0
    Dernier message: 16/10/2007, 13h39

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