Re: [Mono-list] mscorlib.dll was not found or could not be located

2013-07-03 Thread markcoburnwa
I found that if I copy lib/mono/2.0/mscorlib in addition to
lib/mono/4.0/mscorlib then I am able to avoid the complaints about not
finding mscorlib and am able to use C# 4.0 features.  Unfortunately, this
workaround does not function on the one system where I am using mkbundle
because it only bundles lib/mono/4.0/mscorlib.



--
View this message in context: 
http://mono.1490590.n4.nabble.com/mscorlib-dll-was-not-found-or-could-not-be-located-tp4660087p4660096.html
Sent from the Mono - General mailing list archive at Nabble.com.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] mscorlib.dll was not found or could not be located

2013-07-03 Thread markcoburnwa
So if I have a build server which compiles mono from source using the prefix
/test/dir then when I deploy my application and mono as a tarzip file with
the following contents:

myapp.exe
bin/mono
lib/mono/4.0/mscorlib.dll
lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
etc/mono/config
etc/mono/4.0/machine.config
etc/mono/4.0/settings.map
etc/mono/4.0/web.config
etc/mono/browscap.ini
etc/mono/config
etc/mono/mconfig
etc/mono/mconfig/config.xml

Then after extracting my tarzip on a separate machine, I will need to copy
the bin, lib, and etc folders to /test/dir because mono remembers that it
was built on the build server with the prefix /test/dir?  Is there no way to
tell mono how to find mscorlib, the GAC, and configs like machine.config at
some arbitrary path during runtime?



--
View this message in context: 
http://mono.1490590.n4.nabble.com/mscorlib-dll-was-not-found-or-could-not-be-located-tp4660087p4660098.html
Sent from the Mono - General mailing list archive at Nabble.com.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Using mod-mono from source

2013-07-03 Thread Martin Thwaites
Is this message not getting through? is it just that no one knows the
answer, can someone just send a simple No idea so I know this is getting
through.  It's the first time I've used the list.


On Mon, Jul 1, 2013 at 9:49 PM, Martin Thwaites monofo...@my2cents.co.ukwrote:

 I'm trying to get mono working from source so i can try and get some .net
 4.5 website stuff working.  I'm using Ubuntu Server 13.04, and I followed
 this:

 http://stackoverflow.com/questions/13365158/installing-mono-3-0

 Apart from the libgdiplus, I can get everything to compile, however, when
 I've installed mod_mono, I keep getting the following in the log...

 [Mon Jul 01 21:20:57 2013] [error] Failed to connect to mod-mono-server
 after several attempts to spawn the process.

 I enable debug on the compile and got this in the logs..

 [Mon Jul 01 21:20:55 2013] [warn] getting unix socket path
 [Mon Jul 01 21:20:55 2013] [warn] Socket file name
 /tmp/mod_mono_server_GalleryLive
 [Mon Jul 01 21:20:55 2013] [warn] try_connect: -1
 [Mon Jul 01 21:20:55 2013] [warn] After setup_socket
 [Mon Jul 01 21:20:55 2013] [warn] No backend found, will start a new copy.
 [Mon Jul 01 21:20:55 2013] [warn] Acquiring the
 /tmp/mod_mono_dashboard_GalleryLive_2.lock lock for backend start
 [Mon Jul 01 21:20:55 2013] [warn] config-servers [0]-dashboard == 0x0
 [Mon Jul 01 21:20:55 2013] [warn] config-servers [1]-dashboard ==
 0x7F2F61407000
 [Mon Jul 01 21:20:55 2013] [warn] xsp address 0x7f2f6599c6c8, dashboard
 0x7f2f61407000
 [Mon Jul 01 21:20:55 2013] [warn] getting unix socket path
 [Mon Jul 01 21:20:55 2013] [warn] Socket file name
 /tmp/mod_mono_server_GalleryLive
 [Mon Jul 01 21:20:55 2013] [warn] try_connect: -1
 [Mon Jul 01 21:20:55 2013] [warn] backend cannot be connected to.
 [Mon Jul 01 21:20:55 2013] [warn] Starting backend for alias GalleryLive
 [Mon Jul 01 21:20:55 2013] [warn] Applications: /:/var/www/gallery/
 [Mon Jul 01 21:20:55 2013] [warn] Config file: (null)
 [Mon Jul 01 21:20:55 2013] [warn] Config dir.: (null)
 [Mon Jul 01 21:20:55 2013] [warn] Listen port: (null)
 [Mon Jul 01 21:20:55 2013] [warn] Listen address: (null)
 [Mon Jul 01 21:20:55 2013] [warn] Started new backend, sleeping 2s to let
 it configure
 [Mon Jul 01 21:20:55 2013] [warn] child started
 [Mon Jul 01 21:20:55 2013] [warn] PATH: /usr/local/bin:/usr/bin:/bin
 [Mon Jul 01 21:20:55 2013] [warn] serverdir: /usr/bin
 [Mon Jul 01 21:20:55 2013] [warn] PATH after:
 /usr/bin:/usr/local/bin:/usr/bin:/bin
 [Mon Jul 01 21:20:55 2013] [warn] getting unix socket path
 [Mon Jul 01 21:20:55 2013] [warn] Backend socket path:
 /tmp/mod_mono_server_GalleryLive
 Warning: unparsed command line arguments: /tmp/mod_mono_server_GalleryLive
 /:/var/www/gallery/


 It seems there there is no /tmp/mod_mono_server_GalleryLive socket for
 it to connect to, so the error makes sense, but I can't see why this is the
 case.

 I can run mod-mono-server4 from the desired directory, and it seems to run
 fine.

 I've run sites using mod-mono from the repos before, but this is the first
 time I've compiled from source.

 vhost config is (this is also copied some a server using the repos and is
 working):

 VirtualHost *:80
 ServerAdmin webmaster@localhost
 ServerName gallery.internal.com

 DocumentRoot /var/www/gallery/
 MonoServerPath GalleryLive /usr/bin/mod-mono-server4

 MonoApplications GalleryLive /:/var/www/gallery/
 Location /
 Allow from all
 Order allow,deny
 MonoSetServerAlias GalleryLive
 SetHandler mono
 /Location

 ErrorLog /var/log/apache2/error.log

 # Possible values include: debug, info, notice, warn, error, crit,
 # alert, emerg.
 LogLevel debug

 CustomLog /var/log/apache2/access.log combined

 /VirtualHost

 I'm thinking that this could be a permissions error somewhere, but I've
 run out of places to look.

 Any ideas?

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Using mod-mono from source

2013-07-03 Thread Danny

No idea.

On 07/03/2013 05:30 PM, Martin Thwaites wrote:

Is this message not getting through? is it just that no one knows the
answer, can someone just send a simple No idea so I know this is
getting through.  It's the first time I've used the list.


On Mon, Jul 1, 2013 at 9:49 PM, Martin Thwaites
monofo...@my2cents.co.uk mailto:monofo...@my2cents.co.uk wrote:

I'm trying to get mono working from source so i can try and get some
.net 4.5 website stuff working.  I'm using Ubuntu Server 13.04, and
I followed this:

http://stackoverflow.com/questions/13365158/installing-mono-3-0

Apart from the libgdiplus, I can get everything to compile, however,
when I've installed mod_mono, I keep getting the following in the log...

[Mon Jul 01 21:20:57 2013] [error] Failed to connect to
mod-mono-server after several attempts to spawn the process.

I enable debug on the compile and got this in the logs..

[Mon Jul 01 21:20:55 2013] [warn] getting unix socket path
[Mon Jul 01 21:20:55 2013] [warn] Socket file name
/tmp/mod_mono_server_GalleryLive
[Mon Jul 01 21:20:55 2013] [warn] try_connect: -1
[Mon Jul 01 21:20:55 2013] [warn] After setup_socket
[Mon Jul 01 21:20:55 2013] [warn] No backend found, will start a new
copy.
[Mon Jul 01 21:20:55 2013] [warn] Acquiring the
/tmp/mod_mono_dashboard_GalleryLive_2.lock lock for backend start
[Mon Jul 01 21:20:55 2013] [warn] config-servers [0]-dashboard == 0x0
[Mon Jul 01 21:20:55 2013] [warn] config-servers [1]-dashboard ==
0x7F2F61407000
[Mon Jul 01 21:20:55 2013] [warn] xsp address 0x7f2f6599c6c8,
dashboard 0x7f2f61407000
[Mon Jul 01 21:20:55 2013] [warn] getting unix socket path
[Mon Jul 01 21:20:55 2013] [warn] Socket file name
/tmp/mod_mono_server_GalleryLive
[Mon Jul 01 21:20:55 2013] [warn] try_connect: -1
[Mon Jul 01 21:20:55 2013] [warn] backend cannot be connected to.
[Mon Jul 01 21:20:55 2013] [warn] Starting backend for alias GalleryLive
[Mon Jul 01 21:20:55 2013] [warn] Applications: /:/var/www/gallery/
[Mon Jul 01 21:20:55 2013] [warn] Config file: (null)
[Mon Jul 01 21:20:55 2013] [warn] Config dir.: (null)
[Mon Jul 01 21:20:55 2013] [warn] Listen port: (null)
[Mon Jul 01 21:20:55 2013] [warn] Listen address: (null)
[Mon Jul 01 21:20:55 2013] [warn] Started new backend, sleeping 2s
to let it configure
[Mon Jul 01 21:20:55 2013] [warn] child started
[Mon Jul 01 21:20:55 2013] [warn] PATH: /usr/local/bin:/usr/bin:/bin
[Mon Jul 01 21:20:55 2013] [warn] serverdir: /usr/bin
[Mon Jul 01 21:20:55 2013] [warn] PATH after:
/usr/bin:/usr/local/bin:/usr/bin:/bin
[Mon Jul 01 21:20:55 2013] [warn] getting unix socket path
[Mon Jul 01 21:20:55 2013] [warn] Backend socket path:
/tmp/mod_mono_server_GalleryLive
Warning: unparsed command line arguments:
/tmp/mod_mono_server_GalleryLive /:/var/www/gallery/


It seems there there is no /tmp/mod_mono_server_GalleryLive socket
for it to connect to, so the error makes sense, but I can't see why
this is the case.

I can run mod-mono-server4 from the desired directory, and it seems
to run fine.

I've run sites using mod-mono from the repos before, but this is the
first time I've compiled from source.

vhost config is (this is also copied some a server using the repos
and is working):

VirtualHost *:80
 ServerAdmin webmaster@localhost
 ServerName gallery.internal.com http://gallery.internal.com

 DocumentRoot /var/www/gallery/
 MonoServerPath GalleryLive /usr/bin/mod-mono-server4

 MonoApplications GalleryLive /:/var/www/gallery/
 Location /
 Allow from all
 Order allow,deny
 MonoSetServerAlias GalleryLive
 SetHandler mono
 /Location

 ErrorLog /var/log/apache2/error.log

 # Possible values include: debug, info, notice, warn,
error, crit,
 # alert, emerg.
 LogLevel debug

 CustomLog /var/log/apache2/access.log combined

/VirtualHost

I'm thinking that this could be a permissions error somewhere, but
I've run out of places to look.

Any ideas?




___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list