Infopath form get SpContext.Current.Site.Url null value. - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Infopath form get SpContext.Current.Site.Url null value.

Last post 09-21-2010 10:13 PM by Bhavin Sankhat. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-21-2010 06:12 AM

    Infopath form get SpContext.Current.Site.Url null value.

     

    Hello,

    When i tries to access a current site name of sharepoint into my infopath form it give me error like:

    The Web application at http://MySharepoint could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.

    I have tried different option like:

    1) string strSitename=SpContext .Current.Site.Url;

    2) SpSite spSitename = new SpSite("http://MySharepoint") ;

    3)  SpSite spSitename = new SpSite("http://191.1.1.1") ;

    4) SpSite spSitename = new SpSite("http://intranet") ; (My AAM name).

     

    But still i didn't got Current site name into infopath form. I am stuck here and already it has taken my one day. Please help on this.

     

    Thank you.

    Bhavin A Sankhat
  • 09-21-2010 06:41 AM In reply to

    Re: Infopath form get SpContext.Current.Site.Url null value.

    I'm not sure it help but have you check this :

    http://support.microsoft.com/kb/896861

  • 09-21-2010 10:13 PM In reply to

    Re: Infopath form get SpContext.Current.Site.Url null value.

    Thank you for your reply but  It's not the solution that i am looking for.

    Bhavin A Sankhat
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.