NAV2009 addin with webservice, losing connection...

2mas2mas Member Posts: 7
edited 2013-03-21 in NAV Three Tier
Hello Everyone,

I am facing the issue - NAV2009 add-in's web-service connection fails because of Proxy Authentication is required.

Maybe someone already faced the same issue before ? I will try to describe in more details bellow.

NAV Setup: Service tier is on Separate machine, all RTC Clients are used from the same installation folder.
All users have same permissions.

I have developed the add-in for NAV 2009 (first C# project ever) .
It is small .dll which lets user to connect to from NAV Page to the 3rd party web-service and retrieve addresses by sending only the post code.

So the thing is that our client uses citrix. Some of higher priority users such as admins can use it without any problems,
But simple users cannot connect to web service, so when this connection to web service fails, RTC client loses the connection.
I’ve inspected from server side, that application on its crash returns the error Message: The request failed with HTTP status 407: Proxy Authentication Required.
I have no idea what the different authentication or setup they are using, as their sysadmin says that everything is the same.

Also what I figured out, while web service call is not made, dll works fine.

Info from Event Log on Server Side:
Type: System.Net.WebException
Status: UnknownError
Message: The request failed with HTTP status 407: Proxy Authentication Required.
StackTrace:    at Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(Object obj, String methodName, Object[] args)
Source: Microsoft.Dynamics.Nav.Ncl
----------------------------------
Type: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
StackTrace:
     at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
     at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(Object obj, String methodName, Object[] args)
Source: mscorlib
----------------------------------
Type: System.Net.WebException
Status: UnknownError
Message: The request failed with HTTP status 407: Proxy Authentication Required.
StackTrace:
     at Microsoft.Dynamics.Nav.Service.NSClientCallback.FormRunModal(NavForm form, NavFormRuntimeParameters parameters)
     at Microsoft.Dynamics.Nav.Runtime.NavForm.RunModal(NavRecord record, Int32 fieldNo)
     at Microsoft.Dynamics.Nav.Runtime.NavForm.RunModal()
     at Microsoft.Dynamics.Nav.BusinessApplication.Page21.PostCodeLookup(Int32 postCodeFieldNo, Int32 addressFieldNo1, Int32 addressFieldNo2, Int32 addressFieldNo3, Int32 cityFieldNo, Int32 countyFieldNo)
     at Microsoft.Dynamics.Nav.BusinessApplication.Page21.Control90_OnAssistEdit()
Source: Microsoft.Dynamics.Nav.Service
----------------------------------
Type: System.Net.WebException
Status: UnknownError
Message: The request failed with HTTP status 407: Proxy Authentication Required.
StackTrace:
     at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
     at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
     at Data8Addin.Data8WS.AddressCapture.GetFullAddress(String username, String password, AddressCaptureLicence licence, String postcode, String building, Option[] options)
     at Data8Addin.Data8Addin.GetFullAddress(AddressCaptureLicence licence, String postcode, String building)
     at Data8Addin.Data8Addin.FindPostCode1(Object sender, EventArgs e)
     at System.EventHandler.Invoke(Object sender, EventArgs e)
     at System.Windows.Forms.Control.OnTextChanged(EventArgs e)
     at System.Windows.Forms.TextBoxBase.OnTextChanged(EventArgs e)
     at System.Windows.Forms.Control.set_Text(String value)
     at System.Windows.Forms.TextBoxBase.set_Text(String value)
     at System.Windows.Forms.TextBox.set_Text(String value)
     at Microsoft.Dynamics.Framework.UI.Extensibility.WinForms.StringControlAddInBase.set_Value(String value)
     at Data8Addin.Data8Addin.set_Value(String value)
     at Microsoft.Dynamics.Framework.UI.WinForms.ControlAddInAdapter.OnUpdateValue()
     at Microsoft.Dynamics.Framework.UI.Windows.LogicalControlAdapter.UpdateValue()
     at Microsoft.Dynamics.Framework.UI.Windows.LogicalControlAdapter.PropertyChanged(Object sender, PropertyChangedEventArgs propertyChangedArgs)
     at Microsoft.Dynamics.Framework.UI.LogicalControl.OnPropertyChanged(PropertyChangedEventArgs e)
     at Microsoft.Dynamics.Framework.UI.LogicalControl.OnValueChanged(ValueChangedEventArgs e)
     at Microsoft.Dynamics.Framework.UI.LogicalControl.RowEntryProxy_RowValueChangedEvent(Object sender, ValueChangedEventArgs e)
     at Microsoft.Dynamics.Framework.UI.RowEntry.OnValueChanged(ValueChangedEventArgs e)
     at Microsoft.Dynamics.Framework.UI.RowEntryProxy.RowEntryValueChangedEvent(Object sender, ValueChangedEventArgs e)
     at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
     at Microsoft.Dynamics.Framework.UI.RowEntry.OnValueChanged(ValueChangedEventArgs e)
     at Microsoft.Dynamics.Nav.Client.DataBinder.NavFormStateRowEntry.UpdateVariables(NavDataRow dataRow)
     at Microsoft.Dynamics.Nav.Client.DataBinder.NavBindingManager.UpdateFormVariables(NavDataRow dataRow)
     at Microsoft.Dynamics.Nav.Client.DataBinder.NstDataAccess.UpdateFieldsInternal(NavDataSet results, NavRecordState recordState, NavRecord record, Boolean allowBookmarkUpdates)
     at Microsoft.Dynamics.Nav.Client.DataBinder.NstDataAccess.UpdateRecordStateAfterChangingCurrentRow(NavRecordState state, DataAccessOperation operation, NavRecord record, NavDataSet results)
     at Microsoft.Dynamics.Nav.Client.DataBinder.NstDataAccess.UpdateDataBindingState(NavRecordState state, DataAccessOperation operation, NavRecord record, NavDataSet results)
     at Microsoft.Dynamics.Nav.Client.DataBinder.NstDataAccess.CompleteOperation(OperationContext operation, Boolean save, Boolean performFormUpdate)
     at Microsoft.Dynamics.Nav.Client.UI.Databinder.OperationContext.CompleteOperation()
     at Microsoft.Dynamics.Nav.Client.DataBinder.DataAccessOperationContext.DisposeCore()
     at Microsoft.Dynamics.Nav.Client.UI.Databinder.OperationContext.Dispose()
     at Microsoft.Dynamics.Nav.Client.DataBinder.NstDataAccess.InvokeApplicationMethod(ApplicationCodeType type, Int32 objectId, String name, DataAccessOperation operation, NavRecord record, NavRecord xrec, Object[] args)
     at Microsoft.Dynamics.Nav.Client.DataBinder.NstDataAccess.InvokeVirtualOnNewRecord(NavRecord virtualRecord)
     at Microsoft.Dynamics.Nav.Client.DataBinder.NavFormStateBindingManager.InitializeVariables()
     at Microsoft.Dynamics.Nav.Client.UIPatterns.OnNewRecordPattern.DataLoaded(Object sender, EventArgs e)
     at System.EventHandler.Invoke(Object sender, EventArgs e)
     at Microsoft.Dynamics.Framework.UI.BindingManager.OnDataLoaded(EventArgs e)
     at Microsoft.Dynamics.Framework.UI.BindingManager.ChangeStateToFilled()
     at Microsoft.Dynamics.Framework.UI.BindingManager.DoFill(Bookmark bookmark, FillDirection fillDirection)
     at Microsoft.Dynamics.Framework.UI.BindingManager.Fill(BindingManagerFillOptions options)
     at Microsoft.Dynamics.Framework.UI.BindingManager.Fill()
     at Microsoft.Dynamics.Framework.UI.LogicalForm.LoadDataInternal()
     at Microsoft.Dynamics.Framework.UI.LogicalForm.LoadData()
     at Microsoft.Dynamics.Framework.UI.Windows.LogicalFormAdapterBase.OnLoadData()
     at Microsoft.Dynamics.Framework.UI.Windows.LogicalFormAdapterBase.LoadDataInternal()
     at Microsoft.Dynamics.Framework.UI.Windows.LogicalFormAdapterBase.Load(LogicalControl originatingLogicalControl, Boolean loadDataDelayed)
     at Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.OnFormToShow(LogicalForm logicalFormToShow, LogicalControl originatingLogicalControl)
     at Microsoft.Dynamics.Framework.UI.WinForms.ClientSession.OnFormToShow(LogicalForm logicalFormToShow, LogicalControl originatingLogicalControl)
     at Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.OnDialogToShow(DialogSessionEventArgs e)
     at Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.DialogToShow(Object sender, DialogSessionEventArgs e)
     at Microsoft.Dynamics.Framework.UI.UISession.OnDialogToShow(DialogSessionEventArgs e)
     at Microsoft.Dynamics.Framework.UI.UISession.ShowDialog(LogicalForm logicalForm, LogicalForm owner)
     at Microsoft.Dynamics.Framework.UI.LogicalForm.ShowDialog(LogicalForm ownerForm)
     at Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClass16.<FormRunModal>b__15()
     at Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClass1.<RunClientRequest>b__0()
     at Microsoft.Dynamics.Nav.Client.ServerInvocationManager.WaitForServerResponse(IAsyncResult asyncResult, ThreadCallbackContext threadEventContext)
Source: System.Web.Services
Sign In or Register to comment.