<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-family:arial,sans-serif;font-size:13px">1. Use the open source way, find and fix it myself and hope that we will have this change in the official mono one day.</span></blockquote>
<div> </div><div><span style="font-family:arial,sans-serif;font-size:13px">I've fixed a few bugs with Mono (most around the <a href="http://ASP.NET">ASP.NET</a> routing implementation) and I've found that the Mono developers are pretty good with pull requests. If you do a good fix, it's very likely to make it into a release of Mono. The 3.x series is having more frequent releases compared to the 2.10.x series.</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 26, 2013 at 8:16 PM, Vladimir Dimitrov <span dir="ltr"><<a href="mailto:vlad.dimitrov@gmail.com" target="_blank">vlad.dimitrov@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Almost the same thing just happened again. I got this error when
    calling a web service on the apache/mono server:<br>
    <br>
    System.Exception: INTERNAL configuration error: failed to get
    configuration 'system.diagnostics'<br>
      at System.Diagnostics.DiagnosticsConfiguration.get_Settings ()
    [0x00000] in <filename unknown>:0 <br>
      at System.Diagnostics.TraceImpl.InitOnce () [0x00000] in
    <filename unknown>:0 <br>
      at System.Diagnostics.TraceImpl.get_Listeners () [0x00000] in
    <filename unknown>:0 <br>
      at System.Diagnostics.TraceImpl.get_ListenersSyncRoot () [0x00000]
    in <filename unknown>:0 <br>
      at System.Diagnostics.TraceImpl.WriteLine (System.String message)
    [0x00000] in <filename unknown>:0 <br>
      at System.Diagnostics.Debug.WriteLine (System.String format,
    System.Object[] args) [0x00000] in <filename unknown>:0 <br>
      at Warehouse.Data.Str.WriteDebugMessage (System.String message,
    System.Object[] args) [0x00000] in <filename unknown>:0 <br>
      at Warehouse.Portal.Sync.Api.SyncPoll.GetCommand (System.Byte[]
    encIV, System.Byte[] encKey, System.Byte[] encParams) [0x00000] in
    <filename unknown>:0 <br>
      at (wrapper managed-to-native)
    System.Reflection.MonoMethod:InternalInvoke
    (System.Reflection.MonoMethod,object,object[],System.Exception&)<br>
      at System.Reflection.MonoMethod.Invoke (System.Object obj,
    BindingFlags invokeAttr, System.Reflection.Binder binder,
    System.Object[] parameters, System.Globalization.CultureInfo
    culture) [0x00000] in <filename unknown>:0 <br>
    <br>
    after "sudo service apache2 restart" everything continued to work
    properly.<br>
    Something causes the configuration to become messed up in (what
    looks like) random or heavy load situations and this makes
    everything go south.<br>
    <br>
    Unfortunately it looks like this part of mono is not in the primary
    (or maybe in no) focus for the Xamarin team so my best bet here is
    to:<br>
    1. Use the open source way, find and fix it myself and hope that we
    will have this change in the official mono one day.<br>
    2. Move to a Windows server with IIS which I know is not a secondary
    focus for MS.<span class="HOEnZb"><font color="#888888"><br>
    <br>
    - Vladimir</font></span><div><div class="h5"><br>
    <br>
    <div>On 21.8.2013 г. 16:16 ч., Vladimir
      Dimitrov wrote:<br>
    </div>
    <blockquote type="cite">
      
      I got to this point in the sources too, but I have no idea what I
      can do or why didn't many other people got the same problem?<br>
      <br>
      <div>On 21.8.2013 г. 15:20 ч., Rafael
        Teixeira wrote:<br>
      </div>
      <blockquote type="cite">
        <div dir="ltr">From sources (<a href="https://github.com/mono/mono/blob/master/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentationHandler.cs" target="_blank">https://github.com/mono/mono/blob/master/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentationHandler.cs</a>):<br>

          <br>
          <blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
            <pre style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;line-height:18px"><div style="color:rgb(51,51,51);padding-left:10px">
                        <span style="font-weight:bold">if</span> <span>(</span><span>key</span> <span>==</span> <span style="color:rgb(221,17,68)">"wsdl"</span> <span>||</span> <span>key</span> <span>==</span> <span style="color:rgb(221,17,68)">"schema"</span> <span>||</span> <span>key</span> <span>==</span> <span style="color:rgb(221,17,68)">"code"</span> <span>||</span> <span>key</span> <span>==</span> <span style="color:rgb(221,17,68)">"disco"</span><span>)</span></div>

<div style="color:rgb(51,51,51);padding-left:10px">                             <span style="font-weight:bold">return</span><span>;</span></div><div style="color:rgb(51,51,51);padding-left:10px">

</div><div style="color:rgb(51,51,51);padding-left:10px"><span style="color:rgb(153,153,153);font-weight:bold">#if NET_2_0</span></div><div style="color:rgb(51,51,51);padding-left:10px">
                        <span style="color:rgb(68,85,136);font-weight:bold">string</span> <span>help</span> <span>=</span> <span>WebServicesSection</span><span>.</span><span>Current</span><span>.</span><span>WsdlHelpGenerator</span><span>.</span><span>Href</span><span>;</span></div>

<div style="color:rgb(51,51,51);padding-left:10px">                     <span style="color:rgb(68,85,136);font-weight:bold">string</span> <span>path</span> <span>=</span> <span>Path</span><span>.</span><span>GetDirectoryName</span> <span>(</span><span>ConfigurationManager</span><span>.</span><span>OpenMachineConfiguration</span><span>().</span><span>FilePath</span><span>);</span></div>

<div style="color:rgb(51,51,51);padding-left:10px"><span style="color:rgb(153,153,153);font-weight:bold">#else</span></div><div style="color:rgb(51,51,51);padding-left:10px">
                        <span style="color:rgb(68,85,136);font-weight:bold">string</span> <span>help</span> <span>=</span> <span>WSConfig</span><span>.</span><span>Instance</span><span>.</span><span>WsdlHelpPage</span><span>;</span></div>
<div style="color:rgb(51,51,51);padding-left:10px">                     <span style="color:rgb(68,85,136);font-weight:bold">string</span> <span>path</span> <span>=</span> <span>Path</span><span>.</span><span>GetDirectoryName</span> <span>(</span><span>WSConfig</span><span>.</span><span>Instance</span><span>.</span><span>ConfigFilePath</span><span>);</span></div>

<div style="color:rgb(51,51,51);padding-left:10px"><span style="color:rgb(153,153,153);font-weight:bold">#endif</span></div><div style="padding-left:10px"><font color="#333333">                   </font><font color="#445588"><b>...</b></font></div>

<div style="color:rgb(51,51,51);padding-left:10px">
</div><div style="color:rgb(51,51,51);padding-left:10px">                 <span style="color:rgb(68,85,136);font-weight:bold">string</span> <span>physPath</span> <span>=</span> <span>Path</span><span>.</span><span>Combine</span> <span>(</span><span>path</span><span>,</span> <span>help</span><span>);</span></div>

</pre>
          </blockquote>
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra">So
            probably WebServicesSection.Current.WsdlHelpGenerator.Href
            is returning null or
            ConfigurationManager.OpenMachineConfiguration().FilePath is
            returning null.</div>
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra">For the first case, as this is read
            from current configuration which can be reread from time to
            time as any part of the configuration chain changes it is
            possible that either some of those MonoTodos in <a href="https://github.com/mono/mono/blob/master/mcs/class/System.Web.Services/System.Web.Services.Configuration/WsdlHelpGeneratorElement.cs?source=cc" target="_blank">https://github.com/mono/mono/blob/master/mcs/class/System.Web.Services/System.Web.Services.Configuration/WsdlHelpGeneratorElement.cs?source=cc</a> are

            making things flaky:</div>
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra">
            <pre style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:18px"><div style="padding-left:10px"><span style="color:rgb(0,128,128)">                [MonoTODO ("probably verifies the Href property here, after deserializing?")]</span></div>
</pre>
          </div>
          <div class="gmail_extra">
            <pre style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:18px"><div style="padding-left:10px">
                <span style="font-weight:bold">protected</span> <span style="font-weight:bold">override</span> <span style="font-weight:bold">void</span> <span style="color:rgb(153,0,0);font-weight:bold">DeserializeElement</span> <span>(</span><span>XmlReader</span> <span>reader</span><span>,</span> <span style="color:rgb(68,85,136);font-weight:bold">bool</span> <span>serializeCollectionKey</span><span>)</span></div>

<div style="padding-left:10px">         <span>{</span></div><div style="padding-left:10px">                   <span style="font-weight:bold">base</span><span>.</span><span>DeserializeElement</span> <span>(</span><span>reader</span><span>,</span> <span>serializeCollectionKey</span><span>);</span></div>

<div style="padding-left:10px">         <span>}</span></div><div style="padding-left:10px">
</div><div style="padding-left:10px"><span style="color:rgb(0,128,128)">          [MonoTODO]</span></div>
<div style="padding-left:10px">         <span style="font-weight:bold">protected</span> <span style="font-weight:bold">override</span> <span style="font-weight:bold">void</span> <span style="color:rgb(153,0,0);font-weight:bold">Reset</span> <span>(</span><span>ConfigurationElement</span> <span>parentElement</span><span>)</span></div>

<div style="padding-left:10px">         <span>{</span></div><div style="padding-left:10px">                   <span style="font-weight:bold">base</span><span>.</span><span>Reset</span> <span>(</span><span>parentElement</span><span>);</span></div>

<div style="padding-left:10px">         <span>}</span></div></pre>
          </div>
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra">or some locking is missing to avoid
            reading an incomplete current configuration instance...</div>
          <div class="gmail_extra">
            <div class="gmail_extra"><br>
            </div>
          </div>
          <div class="gmail_extra">As for the second case after much
            navigating through sources it comes down to calling an
            internal call <span style="white-space:pre-wrap">'</span>string
            get_machine_config_path ()' which I don't have time now to
            try to explore...</div>
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra">Hope it helps,</div>
          <div class="gmail_extra"><br clear="all">
            <div>Rafael Teixeira<br>
              O..:.)oooo<br>
            </div>
            <br>
            <br>
            <div class="gmail_quote">On Wed, Aug 21, 2013 at 8:05 AM,
              Vladimir Dimitrov <span dir="ltr"><<a href="mailto:vlad.dimitrov@gmail.com" target="_blank">vlad.dimitrov@gmail.com</a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hey

                guys,<br>
                <br>
                I have worked with mono for almost 7 years but I
                recently got involved in a project that used mono web
                services and apache together on Linux.<br>
                <br>
                The problem is that as the load on the service started
                to rise we started getting different errors which appear
                in random intervals.<br>
                <br>
                One of the errors is described here: <a href="https://bugzilla.novell.com/show_bug.cgi?id=522631" target="_blank">https://bugzilla.novell.com/show_bug.cgi?id=522631</a>
                (not by me). And attempting to fix it I added some
                configuration that caused another error to appear once:
                <a href="http://img577.imageshack.us/img577/4473/44in.png" target="_blank">http://img577.imageshack.us/img577/4473/44in.png</a><br>
                <br>
                The only common spot between the errors seem to be the
                configuration. Looks like at some point it becomes
                invalid. This sometimes happens after the service gets
                restarted, but sometimes it happens while the service is
                running normally. A restart of apache usually fixes the
                problem.<br>
                <br>
                Does anybody else encountered something similar or have
                an idea what can be the problem?<br>
                <br>
                Thanks,<br>
                 Vladimir<br>
                <br>
                <br>
                _______________________________________________<br>
                Mono-devel-list mailing list<br>
                <a href="mailto:Mono-devel-list@lists.ximian.com" target="_blank">Mono-devel-list@lists.ximian.com</a><br>
                <a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
Mono-devel-list mailing list<br>
<a href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a><br>
<a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
<br></blockquote></div><br></div>