Smart Office SDK unable to run project

The last week I’ve got two questions from Smart Office Developers in the partner network desperately trying to run the Smart Office SDK but as soon as they log in to Smart Office they are presented with “Infor Smart Office has encountered a problem”, “We are sorry for the inconvenience. Please tell Infor about this problem and provide the log file and information of the steps leading up to it. Press the Support button to save the log file at a location of your choice.”.

restartdialog

What to do?

When you are having an issue always check the log file. when developing the log file is located in a location similar to this example from Windows 10:

C:\Users\username\AppData\Local\Infor\Mango Client

This generic “catch-all” is only shown when there is an unhandled exception on a background thread. When developing always make sure that you have try-catch on code that is executed on a background thread. If you are developing and get this error the issue is probably in your code. But not in this case.

The log

In this case the log file had the following log at the bottom:

2016-06-30 16:07:25,519 [20] FATAL Mango.UI.Client.MangoApplication.OnUnhandledExceptionCurrentDomain – Fatal shutdown caused by unhandled exception on background thread.
2016-06-30 16:07:25,520 [9] FATAL Mango.UI.Client.MangoApplication.OnUnhandledExceptionCurrentDomain – [MUI0040] Unhandled exception from AppDomain. IsTerminating=True.
System.IO.FileNotFoundException: Could not load file or assembly ‘System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91’ or one of its dependencies. The system cannot find the file specified.
File name: ‘System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91’

Server stack trace:
at Mango.Core.Persistance.Statistics.GetRecentlyUsed(Int32 returnCount)
at Mango.UI.Services.ApplicationUsageService.RecentlyUsed(Int32 returnCount)
at Mango.UI.Services.HistoryDS.LoadRecent()
at Mango.UI.Services.HistoryDS.Execute()
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)

The solution

SQL Server Compact Edition is a requirement for SDK development. Usually you don’t need to install it – it just works. But if you have any issues then please download Microsoft SQL Server Compact 3.5 Service Pack 2 for Windows Desktop from Microsoft and install it. On a 64-bit computer install both 32-bit and 64-bit versions.

I hope that this post will find it’s way to any SDK developer that encounter this issue.

9 thoughts on “Smart Office SDK unable to run project

  1. Lode Vlaeminck

    Hello,

    I am exploring the SDK but I have some issues with starting up the samples project. I use the SDK that we got from infor, but when I try to run the sample project I get the error Unsupported version…
    I have tried to download other version of the SDK but no luck. The strange thing is: When I start Smart office at login screen screen I see a version number 10.2.0.0.61 but when I start the SDK from Visual studio (2015) I see a version number 14.0.2.3107.0.

    Can you help met find the correct SDK version I need to use?

    Kind regards

    Lode

    1. karinpb Post author

      If you install Smart Office from the server you are connecting to. What is the version of that installation (check the about under help / context menu on the Canvas)?

      Also make sure that you run the project in DEBUG and not just RUN as different rules applies if you just “run” it.

  2. karinpb Post author

    That is the M3 User adapter version (MUA) and not what is in the about dialog, that I asked about. The SDK version and the Server version must match. Differences in fixes might be ok as long as there isn’t a new setting added. What is the version of the SDK and the version of your Smart Office? The SDK version you can find that on the dlls in the binaries if you select to show the properties of for example Mango.UI.dll (if you don’t have the original zip).

    You can also check the version in the log file of the installed Smart Office.

  3. karinpb Post author

    Your Smart Office server is version 10.2.0.0.61. You should be able to use this zip:
    For Lawson customers
    InforSmartOfficeSDK_10.2.0_20140429.zip

    It’s available on the download center.

    1. Lode Vlaeminck

      Oké, we had the wrong version… I can log on into M3 via VS, but now the samples are not loaded…. If I go to about infor smart office there is a feature tab and the features are not loaded.

  4. Ajay Shankar R

    Hi,
    I have been trying to call a soap service using ActiveX object in ISO, but I keep on getting the error
    “FATAL Mango.UI.Client.MangoApplication.OnDispatcherUnhandledException – [MUI0017]
    Infor Smart Office encountered a problem”.
    Microsoft.JScript.JScriptException: Object required
    at Microsoft.JScript.Convert.ToObject(Object value, VsaEngine engine)
    Could you please provide any suggestions to resolve this issue?.
    Thanks.

Comments are closed.