FAQ #34

Windows no longer shows channels when connecting to a smuxi-server running on Ubuntu 11.10

Added by Mirco Bauer 4340 days ago. Updated by Mirco Bauer 4339 days ago.

Category: Troubleshooting Difficluty: Difficluty5
Assigned to:- Due date:
Related issue:- Related Message:-
Related version:- Views:84


This probably means the smuxi-server is running on Mono 2.10 which uses the .NET 4.0 runtime profile while the Windows frontend uses the .NET 2.0/3.5 runtime profile.

To verify if the smuxi-server uses .NET 4.0, run this command:
monodis --assemblyref /usr/lib/smuxi/smuxi-server.exe
If that shows output like this:
AssemblyRef Table
1: Version=
        Public Key:
0x00000000: B7 7A 5C 56 19 34 E0 89

See the Version= That means smuxi-server runs on .NET 4.0

Now you need to force the smuxi-server to use the .NET 2.0/3.5 profile again by starting it like this:
mono --runtime=v2.0.0.0 /usr/lib/smuxi/smuxi-server.exe
Or you need to force the Windows frontend to use the .NET 4.0 profile by adding a smuxi-frontend-gnome.exe.config file to the application directory with this as content:
<?xml version="1.0"?>
    <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
        <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
          <level value="DEBUG" />
          <appender-ref ref="ConsoleAppender" />
          <appender-ref ref="RollingFile" />
        <appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
            <layout type="log4net.Layout.PatternLayout">
                <conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
        <appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
          <file value="smuxi-frontend-gnome.log" />
          <appendToFile value="true" />
          <maximumFileSize value="10240KB" />
          <maxSizeRollBackups value="1" />

          <layout type="log4net.Layout.PatternLayout">
            <conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />