Here is my Scenario : Its for SharePoint 2007 environment I have a Form Library where the InfoPath form with Managed code is deployed. I have a Custom approval Workflow attached to this form. the Approval WF have a Task-form which is Infopath managed code form. In this Form i have used a Web-services to copy the submitted form data and filled it in the form using the Copy.asmx web service. and also used other web services.
Now when a user fill up the form it will trigger the Wf. When Approver opens the from it throws an error :
System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Microsoft.Office.InfoPath.Server.SolutionLifetime.WebServiceHelper.GetResponseHelper(WebRequest request, DataAdapterTimer dataAdapterTimer, DataAdapterCredentials credentials, Stopwatch timer, ExecWebRequestExceptionState state, String adapterName, Boolean isQuery) at Microsoft.Office.InfoPath.Server.SolutionLifetime.WebServiceHelper.ExecWebRequestSync(XPathNavigator inputSubDOM, Boolean[] inputUseDataset, XPathNavigator resultsSubDOM, Boolean resultUseDataset, XPathNavigator errorsSubDOM, Uri serviceUrl, Uri soapAction, Int64 timeOutMillisec, Solution solution, Document document, String name, Boolean isQuery, DataAdapterTimer dataAdapterTimer, DataAdapterCredentials credentials, Boolean useDcl, Boolean useProxy, Boolean useSelf)
An entry has been added to the Windows event log of the server. Log ID:5337
http://support.microsoft.com/?scid=kb;en-us;896861&x=14&y=17
I checked the Sp Logs and it shows this error :
Business logic failed due to an exception. (User: OFFICE\sharepoint2, Form Name: TA Gift Declaration Approval Form, IP: , Request: http://moss/_layouts/WrkTaskIP.aspx?List=7a8b1c68-f36e-4a11-97d5-31305e46a83f&ID=1&Source=http://moss/groups/Corporate/Technology/Lists/Approve%2520Gift%2520Declaration%2520Tasks/AllItems.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:TA-Gift-Declaration-Approval-Form:-myXSD-2010-02-08T03-29-59, Type: WebException, Exception Message: The remote server returned an error: (401) Unauthorized. The remote server returned an error: (401) Unauthorized.)
Exception thrown from business logic event listener StackTrace: at Microsoft.Office.InfoPath.Server.DocumentLifetime.OMExceptionManager.CallFormCodeWithExceptionHandling(UserMessages userMessages, OMCall d) at Microsoft.Office.InfoPath.Server.SolutionLifetime.FormEventsHost.FireLoadingEvent(Document document, Dictionary2 inputParameters) at Microsoft.Office.InfoPath.Server.DocumentLifetime.Document.PerformOnLoadEvent(Dictionary
2 intputParameters) at Microsoft.Office.InfoPath.Server.DocumentLifetime.Document.LoadSolutionAndDocument(HttpContext context, Solution solution, DocumentMetaInformation documentMetaInformation, OnInitializeCallback onInitializeCallback, OpenParameters openParameters) at Microsoft.Office.InfoPath.Server.DocumentLifetime.Document.OpenDocumentWithSolution(HttpContext context, SPSite contextSite, Solution solution, DocumentMetaInformation documentMetaInformation, OnInitializeCallback onInitializeCallback, OpenParameters openParameters) at Microsoft.Office.InfoPath.
I have already done this setting in my registry http://support.microsoft.com/kb/896861
Please let me know where to go from here.
http://moss/
root site?