The Web application at could not be found. Verify that you have typed the URL correctly - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

The Web application at could not be found. Verify that you have typed the URL correctly

Last post 05-05-2014 02:32 AM by mak.mansoor. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 11-26-2010 10:33 PM

    The Web application at could not be found. Verify that you have typed the URL correctly

    Hi All,

    I am trying to access the below url in  infopath c# coding  .

    SPSite site = new SPSite(http://srv-hq-itd-tmp1/Pages/); 

    its is given error : <b> The Web application at http://srv-hq-itd-tmp1/Pages/ 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. </b>

    same url is working fine in windows and console application...but not working infopath coding...

    I dont know why ? Can anybody help out ...

    Thanks

    MAK..1 

     

  • 11-29-2010 08:35 AM In reply to

    Re: The Web application at could not be found. Verify that you have typed the URL correctly

    The site url would be http://srv-hq-itd-tmp1 (without /Pages).  And I am pretty sure the site needs to be on the local machine where the code is running.

  • 11-29-2010 09:05 AM In reply to

    Re: The Web application at could not be found. Verify that you have typed the URL correctly

    hi ,

    i tryed without /Pages also, but same problem. and the code is running in my local machine only.

     

     

     

  • 11-29-2010 10:39 AM In reply to

    Re: The Web application at could not be found. Verify that you have typed the URL correctly

    You must be running the code on srv-hq-itd-tmp1 for this to work.  You cannot use SPSite with a url pointing to a remote server.

  • 05-05-2014 02:32 AM In reply to

    Re: The Web application at could not be found. Verify that you have typed the URL correctly

    Hi,

     I run the code in the same server ( http://srv-hq-itd-tmp1/) which is sharepoint site is avalible .If i use the code

    SPSite site = new SPSite(http://srv-hq-itd-tmp1/);  getting same error .I have tryed to change the platform traget from "Any CPU" to "x64", still same error. Suggest me how to sovle this problem.

     

    Regards,

     

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