Hi Andrus,

Andrus Moor wrote:
>  If I call this web service repeatedly, sometimes it succeeds. So it
>  certainly can compile scripts sometimes.

Oops, I've understood this sentence

> Every second csscript Compile() method call causes exception

as "every second" (like minutes) ;)

It seems to be an io-layer issue. Try to run this test a few
times in a row to see if you can reproduce the error:

---
using System;
using System.Diagnostics;
using System.Threading;

class Test
{
        static void Main ()
        {
                while (true) {
                        // adjust gmcs's path according to your system
                        Process.Start ("gmcs").WaitForExit ();
                        Thread.Sleep (100);
                }
        }
}
---

>>> How to enable line numbers in stack trace ?
>> Add  `MonoDebug true' to your mod_mono config.
> 
>  This line is present in mod_mono.config.

Do you have this in web.config (for the case the offending
code is in some aspx/App_Code file)?

<system.web>
        <compilation debug="true">
        </compilation>
</system.web>

Another reason for missing line numbers is a missing
.mdb file for the offending assembly. If it was compiled with
MS CSC it likely doesn't have one.

Robert

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to