SharePoint Developer Center > SharePoint Products and Technologies Forums > SharePoint - Development and Programming > force code to use internal web site url instead of extranet url
Ask a questionAsk a question
 

Answerforce code to use internal web site url instead of extranet url

  • Wednesday, November 04, 2009 11:03 PMDejan MILIC Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    Is there a way to force my .net assembly to use internal relative path instead of extranet one when querying a SharePoint/PerformancePoint webservice ?
    I'm asking this because we implemented a code that is working fine if we browse the site using the internal url, but when we try to trigger it from the extranet url it fails throwing "CannotReachServerException".

    Is there a method to retrieve the internal host header from the web application ?

    Regards,

    Dejan

Answers

All Replies