[Mono-list] XSP: Error compiling "global.asax"

Rubén Gutierrez rubeng@tectimes.com
Sun, 18 May 2003 15:30:02 -0600


Hi, my name is Ruben and this is my first post here.

I've been trying to run the XSP server under Windows (Win2k and WinXP) but I keep getting different errors. 
First of all, when I first try to acces the server (localhost:8080) I get the following error:

Error

System.Web.HttpException:  ---> System.IO.FileNotFoundException: File 'tmp2121760691.dll' not found.
in (unmanaged) 06 System.Reflection.Assembly:LoadFrom (string)
in <0x00004> 06 System.Reflection.Assembly:LoadFrom (string)
in <0x000df> 00 System.Web.Compilation.GlobalAsaxCompiler:GetCompiledType ()
in <0x000e1> 00 System.Web.Compilation.GlobalAsaxCompiler:CompileApplicationType (string)
in <0x00029> 00 System.Web.HttpApplicationFactory:CompileApp (System.Web.HttpContext)
in <0x00041> 00 System.Web.HttpApplicationFactory:InitializeFactory (System.Web.HttpContext)
in <0x0007a> 00 System.Web.HttpApplicationFactory:GetInstance (System.Web.HttpContext)
in <0x0014a> 00 System.Web.HttpRuntime:InternalExecuteRequest (System.Web.HttpWorkerRequest)
--- End of inner exception stack trace ---

But once I hit reload, that error never shows up again, and instead I get this one:

Error

System.Web.HttpException:  ---> System.ApplicationException: Error compiling application file (global.asax).
in <0x00072> 00 System.Web.HttpApplicationFactory:CompileApp (System.Web.HttpContext)
in <0x00041> 00 System.Web.HttpApplicationFactory:InitializeFactory (System.Web.HttpContext)
in <0x0007a> 00 System.Web.HttpApplicationFactory:GetInstance (System.Web.HttpContext)
in <0x0014a> 00 System.Web.HttpRuntime:InternalExecuteRequest (System.Web.HttpWorkerRequest)
--- End of inner exception stack trace ---

If I remove the "global.asax" file, the server runs fine (I can, say, download the mono.png file) but no ASPX file works. If I try to access any .aspx file the page just never loads.

On my WinXP machine, I first got an error saying that it couldn't find the machine.config file, because I installed Mono (the .EXE you provide on your download page) on D:\ instead of C:\ and it was looking the config file in C:\mono-0.17\install\etc\mono\. I had to create that folder and copy the missing file there, even though the enviroment variable MONO_BASEPATH was set correctly to D:\mono-0.17\install\.

On the Win2k machine I installed Mono on the default location (drive C:) and still the xsp server doesn't work.

Does the XSP server run under Windows? or am I trying to run it in vain?

Cheers,

Ruben Gutierrez
Publicaciones Electrónicas
MP Ediciones S.A.