while debugging infopath form getting error as "web application could not be found" - InfoPath Dev
in

InfoPath Dev

while debugging infopath form getting error as "web application could not be found"

Last post 09-21-2012 01:49 AM by Ravindra. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 09-14-2012 04:15 AM

    • Ravindra
    • Not Ranked
      Male
    • Joined on 05-29-2012
    • Mumbai,India
    • Posts 7

    while debugging infopath form getting error as "web application could not be found"

     Dear friends,

    I am using Info path 2010 form.

    when i debugging the Info Path code and access the SPSite and SPWeb object then it gives error "The Web application at http://sitename/ 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."

    My site is running correctly in browser and access the SPSite and SPweb object but still getting error "web application could not be found" while Info Path preview debugging.

    Please help.

    Thanks in Advance.

  • 09-14-2012 06:07 AM In reply to

    Re: while debugging infopath form getting error as "web application could not be found"

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 09-16-2012 08:41 PM In reply to

    Re: while debugging infopath form getting error as "web application could not be found"

    Ravindra:
    when i debugging the Info Path code and access the SPSite and SPWeb object then it gives error "The Web application at http://sitename/ 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."

    My site is running correctly in browser and access the SPSite and SPweb object but still getting error "web application could not be found" while Info Path preview debugging.

     

    In other words, the reference of ErnestoM tells what is quite obvious without any references:

    • "The code is executed on a different machine - The SharePoint object model (except the Client API) requires to be run on the SharePoint server itself. It is not possible to run the application on a server which is not within the same SharePoint farm the code is trying to access"

    Preview/Filler form is run on client machine, while Infopath browser form on Sharepoint Server through IPFS (Sharepoint Server Infopath Form Services)

    Generally speaking, Infopath code-behind is client code and one cannot assure where the user choose to run it, or can?(i.e. I would have avoided server-side code in Infopath code-behind. Any other, point of view on this?
    This is rather important conceptually for application design/architecture, is not it?


    Gennady Vanin (Novosibirsk) --- Геннадий Ванин (Новосибирск)
  • 09-21-2012 01:49 AM In reply to

    • Ravindra
    • Not Ranked
      Male
    • Joined on 05-29-2012
    • Mumbai,India
    • Posts 7

    Re: while debugging infopath form getting error as "web application could not be found"

    Hi,Thanks for reply, however you are correct we need to avoid the server side code in InfoPath coding but sometimes we need to access the SPWeb and SPSite object in code for retrieval of list item or SharePoint Groups so what we can do in this situation? The SPSite and SPWeb object was access successfully in Moss2007. I am trying to debugging in my SharePoint server and same Farm so I think this should not be the cause of issue. Thanks.  

     

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