Re: [Mono-list] Starting xsp at bootup

2003-02-03 Thread Fawad Halim
That worked perfectly, thanks. I'm using a reverse http proxy in lieu of 
mod_mono to server up aspx contents. So

/svn/repos/.* comes from subversion httpd
/mono/.* comes from xsp server.exe
Everything else comes from my stock httpd.

-fawad


Miguel de Icaza wrote:
Hello,



If I run the same script as the ${RUNAS} user, the site loads up perfectly.

Any suggestions about what I'm doing wrong?



Try passing a -l flag to su (login shell), that way the whole
environment will be correctly setup to the one of the user.

Miguel
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list




___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list



[Mono-list] Starting xsp at bootup

2003-02-02 Thread Fawad Halim
Hi,
 I am trying start the XSP server.exe at system startup. To do that, 
I've written a small sysv init script. I've got a line like:

su ${RUNAS} -c cd ${XSPHOME};${MONO} server.exe server.log 21 

in it, where ${XSPHOME} is the xsp/test directory and ${MONO} is 
/usr/local/bin/mono. ${RUNAS} is the user I'm trying to run the app as. 
When I run xsp with the script above, I get the error:

Error

System.Web.HttpException:  --- System.IO.FileNotFoundException: File 
'tmp1323315300.dll' not found.
in (unmanaged) /usr/local/bin/mono(mono_raise_exception+0x20) [0x80bbc56]
in (unmanaged) 
/usr/local/bin/mono(ves_icall_System_Reflection_Assembly_LoadFrom+0xca) 
[0x80d75ea]
in 0x00101 00 System.Web.Compilation.GlobalAsaxCompiler:GetCompiledType ()
in 0x000e6 00 
System.Web.Compilation.GlobalAsaxCompiler:CompileApplicationType 
(string,System.Web.HttpContext)
in 0x0002c 00 System.Web.HttpApplicationFactory:CompileApp 
(System.Web.HttpContext)
in 0x00048 00 System.Web.HttpApplicationFactory:InitializeFactory 
(System.Web.HttpContext)
in 0x00070 00 System.Web.HttpApplicationFactory:GetInstance 
(System.Web.HttpContext)
in 0x00154 00 System.Web.HttpRuntime:InternalExecuteRequest 
(System.Web.HttpWorkerRequest)
--- End of inner exception stack trace ---

If I run the same script as the ${RUNAS} user, the site loads up perfectly.

Any suggestions about what I'm doing wrong?

Regards
-fawad

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list