Solved

User cannot add freight cost to shipment

  • 30 June 2021
  • 6 replies
  • 207 views

Userlevel 3
Badge +5

A user tries to connect freight cost to s shipment, but is prompted with an error:

Ifs.Fnd.FndSystemException: Explorer: An Unhandled Exception has occurred ---> System.InvalidCastException: Unable to cast object of type 'Ifs.Application.Shpmnt_.frmShipment' to type 'Ifs.Application.Shpmnt_Ext_.frmShipment_Ext'.
 
 
   at Ifs.Application.Shpmnt_Ext_.frmShipment_Ext.FromHandle(SalWindowHandle handle)
 
 
   at Ifs.Application.Shpmnt_Ext_.tbwAvailableLines_Ext.menuItem__Connect_Execute(Object sender, FndCommandExecuteEventArgs e)
 
 
   at Ifs.Fnd.Windows.Forms.FndCommand.OnExecute(Component component)
 
 
   at Ifs.Fnd.Windows.Forms.FndContextMenuStrip.ExecuteCommand(ToolStripMenuItem menuItem, EventArgs e)
 
 
   at Ifs.Fnd.ApplicationForms.FndContextMenuStripInternal.ExecuteCommand(ToolStripMenuItem menuItem, EventArgs e)
 
 
   at Ifs.Fnd.Windows.Forms.FndToolStripMenuItem.OnClick(EventArgs e)
 
 
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
 
 
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
 
 
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
 
 
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
 
 
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
 
 
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
 
 
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
 
 
   at System.Windows.Forms.Control.WndProc(Message& m)
 
 
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
 
 
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
 
 
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
 
 
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
 
 
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
 
 
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 
 
   --- End of inner exception stack trace ---
 
A colleague of him with exactly the same permission set is able to do so.
We are working in IFS10.9
icon

Best answer by Xavier Fernando 30 June 2021, 12:03

View original

This topic has been closed for comments

6 replies

Userlevel 7
Badge +20

Hi @TokoWieme ,

Have you tried clearing the client cache in the user’s PC ?

If not, try doing it by deleting all the files in the 2.0 folder in the below folder path in the user’s PC in which this problem existing.

C:\Users\<your_user_name>\AppData\Local\Apps\2.0

Replace the <your_user_name> with the user’s windows user name.

 

Thanks,

Userlevel 7
Badge +20

And before doing that, there is no IFS windows open within the PC..

Userlevel 3
Badge +5

And before doing that, there is no IFS windows open within the PC..

Hi ThushAsanka,

 

Thank you for your repy, but unfortunately this did not help.I emptied both cache and 2.0 directory, but the error remains. 

But it look like it is a combination of his windows account and IFS, because if I logon to IFS on his PC, with my IFS account, I can add freight costs. 

This is an extra screenshot of the error. 

 

 

Userlevel 7
Badge +20

Hi @TokoWieme ,

 

If it is already not performed, could you please refresh security cache and reset his account ;

 

Yet please note, all his saved preferences will get reset to default.​​​​

Userlevel 3
Badge +5

Hi Xavier, 

 

Thanks for the advice. This did the trick; the user can finally do his job properly after months. You are a true superhero!

 

regards,

 

Camiel 

Userlevel 7
Badge +20

@TokoWieme ,

Thanks for kind feedback :)