Hi We are badly stuck in this issue :) Any pointers would be of great help
We have created two Infopath 2010 forms each deployed in separate site collection,
Form 1: It has code behind , deployed as sadnbox solution
Form 2 : No Code behind and deployed as sandbox solution
In testing env both are workign fine but in production FORM 2 is not working.
Issue : We are calling user profile web service on form load in both teh forms using data connections and UDCX files. but in form 2 teh call to web service is failing frequently, means 1 out of 7 times it passes and forms opens up but most of teh time it says " Error in querying datasource" , checked logs it is logging "Unathorized access 401". It is not issue with userprofile web service but if I call any other webservice the behavior is same ? and if it is something related to env then why the Infopath form with code is working....?
Code in form 1 is just retrieving some list items and populating controls. Rest everythign is same for both forms.
The test and production env are load balanced env. and kerberos is gettign used, also checked teh loopback thing, it is fine.
In fuurther analysis, I deployed to dummy forms in production, ( sandbox sol ) one with code and one without code, I only put call to userprofile web service in both forms using dataconnection, teh form with code has some dummy code written to populate a text box on form load event ....I found that form with code is working but without code nt working .... why this form with code is working ...always ?