Re: [Mono-aspnet-list] How to: Razor and MVC4, mono 3.0.2?

2013-10-26 Thread Jesse Pasichnyk
Also, take a look at servicestack.razor if you're not locked in on your choice 
to use mvc. Moved to it a year ago and never looked back.

-
Jesse

From: Marco Ridonimailto:m.rid...@gmail.com
Sent: ‎10/‎26/‎2013 1:15 AM
To: patrykmouramailto:patryk.mo...@gmail.com
Cc: mono-aspnet-list@lists.ximian.commailto:mono-aspnet-list@lists.ximian.com
Subject: Re: [Mono-aspnet-list] How to: Razor and MVC4, mono 3.0.2?

You should use Mono 3.2.3. I had a lot of problems with MVC3 and/or previous 
versions of Mono (I'm using 3.0.7 for a WebForms project where it just 
works), so I switched to MVC4 and Mono 3.2.3 and it all worked flawlessly. I 
used the MVC4 packages from NuGet (beware: you have to install the legacy 
package, the current one is for MVC5).

m.


2013/10/21 patrykmoura patryk.mo...@gmail.commailto:patryk.mo...@gmail.com
Guys, sssuppp!!!
ive tried to copy the dll´s to my project, but when I go to the project
folder (via web), nothing happens...

http://www.vamola.net/net/TestMVC3Razor/

What can I do?

I installed the mono 3.0.2, with apache, via mod_mono... mod_mono latest,
xsp latest...
Any suggestions?

Thanks a lot!



--
View this message in context: 
http://mono.1490590.n4.nabble.com/How-to-Razor-and-MVC4-mono-3-0-2-tp4661160.html
Sent from the Mono - ASP.NEThttp://ASP.NET mailing list archive at Nabble.com.
___
Mono-aspnet-list mailing list
Mono-aspnet-list@lists.ximian.commailto:Mono-aspnet-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list

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


Re: [Mono-aspnet-list] XSP crash on config file with ASP.Net MVC 3 project

2013-10-09 Thread Jesse Pasichnyk
I seem to remember that issue, or something similar, with an early 3.0 tree 
build.

Why don't you give the latest release 
(3.2.3)http://www.mono-project.com/Release_Notes_Mono_3.2 a shot?  It is 
working for me (via custom build .deb install) on 4.5 without issue.

Cheers,
Jesse

From: mono-aspnet-list-boun...@lists.ximian.com 
[mailto:mono-aspnet-list-boun...@lists.ximian.com] On Behalf Of Arnaud M
Sent: Wednesday, October 09, 2013 3:20 PM
To: James Rhodes
Cc: mono-aspnet-list@lists.ximian.com
Subject: Re: [Mono-aspnet-list] XSP crash on config file with ASP.Net MVC 3 
project

I use the 4.0 framework.

2013/10/9 James Rhodes 
jrho...@redpointsoftware.com.aumailto:jrho...@redpointsoftware.com.au
As far as I can tell this is some sort of issue when it's running as the .NET 
4.5 framework.  I believe I encountered this issue and solved it by changing 
the application to use .NET 4.0 instead.

It's something to do with the System.Configuration.dll being the wrong version 
for the framework (wrong symlink or something), which causes XSP to die when 
trying to read configuration.

Regards, James Rhodes.
Redpoint Software

http://about.me/james.rhodes

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


Re: [Mono-aspnet-list] Mono + Nginx + Open BSD

2013-05-08 Thread Jesse Pasichnyk
Check your actual /tmp folder permissions.  I believe some other folder gets 
creates there that requires write access as well.

Sent from my Windows Phone

From: Geemailto:g.pl...@gmail.com
Sent: ‎5/‎8/‎2013 12:49 PM
To: Daniel Lo Nigromailto:li...@dan.cx
Cc: mono-aspnet-list@lists.ximian.commailto:mono-aspnet-list@lists.ximian.com
Subject: Re: [Mono-aspnet-list] Mono + Nginx + Open BSD

Hi all

So this is what I did...


For sanity's sake:
chown root /tmp/fastcgi-mono-socket
chmod 777 /tmp/fastcgi-mono-socket


To see permissions on the socket
ls -la /tmp/fastcgi-mono-socket:

Output:
srwxrwxrwx  1  root  wheel  0 May  8 16:01 fastcgi-mono-socket

grep wheel /etc/group


To see contents of group 'wheel':
cat /etc/group | grep --regex ^xxx:.* | awk -F: '{print $4}'

Output:
root


So I really have no idea what else I can do at this point.
Do anyone have any ideas?

Thanks!
G


On 8 May 2013 14:50, Daniel Lo Nigro li...@dan.cxmailto:li...@dan.cx wrote:
Hmm... I would have expected a Permission denied rather than a No such file 
or directory if it was a permissions issue. Maybe BSD handles this differently 
to Linux though.


On Wed, May 8, 2013 at 5:11 PM, Ovidiu D 
ovidiud...@gmail.commailto:ovidiud...@gmail.com wrote:
I'm not a BSD user so I don't know for sure but apparently the unix sockets 
permissions behave differently compared to Linux . See this: 
http://stackoverflow.com/questions/5977556/how-can-i-change-the-permissions-of-a-linux-socket-file

Anyway, having both the client and the server of the socket running with the 
same user should help here.




On Wed, May 8, 2013 at 9:58 AM, Ovidiu D 
ovidiud...@gmail.commailto:ovidiud...@gmail.com wrote:
Looking again at our upstart scripts I see that we start the fastcgi server 
using the same user as nginx. Can you do that?

If it doesn't work can you post the whole startup script for your fastcgi 
server?


On Wed, May 8, 2013 at 1:58 AM, Gee 
g.pl...@gmail.commailto:g.pl...@gmail.com wrote:
Hi Ovidiu

I tried TCP earlier to little avail.

*However*

I tried it again anyway (just to say that I did it again) and I got a 
YSOD/Exception (which is a start!).  After tweaking Web.config and restarting 
nginx - my hello world actually printed 'hello world'.  It's almost sad how 
much joy this brought me!  :-)

Now I know TCP does actually work (although I am not sure why it does now), I 
can set about solving why the unix socket is behaving so strangely.  I suspect 
that you (and the others earlier in this thread) are indeed all correct about 
the permissions issue.

I have set about resolving it, but I can't see to get past it.

I have chmod '777' (for now) - to no avail.
I ran chmod a+rwx as well - to no avail.
I even tried a different path - sadly, to no avail!

I am sure I am missing something obvious, although I have no idea what it could 
be... :-(

Any advice would be hugely appreciated!


Thanks
G


On 7 May 2013 20:57, Ovidiu D 
ovidiud...@gmail.commailto:ovidiud...@gmail.com wrote:
I'm pretty sure that you have a permission problem here. You should double 
check that both the users of the nginx and mono fastcgi server processes have 
rw access to that socket.

For debugging purposes you can also try to use a TCP socket instead of a unix 
socket and once your setup works you can move back to unix sockets.


On Tue, May 7, 2013 at 9:56 PM, Gee 
g.pl...@gmail.commailto:g.pl...@gmail.com wrote:
Hi

I am having trouble getting Mono to work with nginx.  I installed my OS 
(OpenBSD 5.3) and set up ports.  I built mono, mono-xsp and nginx - all without 
incident.  All three appear to be working OK, but not in conjunction.

I am trying to run a *very* simple MVC3 app - it is literally a hello world 
controller (no fancy code whatsoever) - but I keep getting a 502 (Bad gateway). 
 In the log, I see the following:

[crit] 31764#0: *1 connect() to unix:/tmp/fastcgi.socket failed (2: No such 
file or directory) while connecting to upstream,

The frustrating thing here is that /tmp/fastcgi.socket does actually exist.  I 
tried 'touch' and making sure 'www' and 'wheel' have the appropriate 
permissions (which they do).  The result of 'ls -la /tmp/fastcgi.socket' 
revealed nothing awry.  I tried using a different path (such as '/home/socket' 
and '/home/fastcgi.socket'), but all to no avail.

Does anyone have any ideas/hints?  Could this be a bug in the port?

To try and save time, here is my config:



worker_processes  1;

events {
worker_connections  1024;
}

http {
include   mime.types;
default_type  application/octet-stream;


server {
listen 80;
access_log   /home/www/nginx.log;
error_log/home/www/errors.log;

# root /home/www/test;
# index index.html index.htm index.aspx default.aspx;

location ^~ /Scripts/ { }
location ^~ /Content/ { }

location / {
root /home/www/test;
# fastcgi_index /Home/Index;


Re: [Mono-aspnet-list] Mono + Nginx + Open BSD

2013-05-08 Thread Jesse Pasichnyk
Hrm, in addition to the sockets I have a folder www-data-temp-aspnet-0 in 
/tmp, as well as some other random named folders (e.g., 7fff3bc1).  All my 
files are owned as www-data:, which is what my fastcgi runs as.

Not sure if that helps, but I'm on Linux as well, so not sure what else might 
be the issue.

-
Jesse

From: Gee [mailto:g.pl...@gmail.com]
Sent: Wednesday, May 08, 2013 1:12 PM
To: Jesse Pasichnyk
Cc: Daniel Lo Nigro; mono-aspnet-list@lists.ximian.com
Subject: Re: [Mono-aspnet-list] Mono + Nginx + Open BSD

Hi Jesse
Thanks for getting back to me so quickly  :-)
Sadly, /tmp is also owned by root and its permissions (and its children) match 
the socket's  :-(

On 8 May 2013 21:02, Jesse Pasichnyk 
je...@pasichnyk.netmailto:je...@pasichnyk.net wrote:
Check your actual /tmp folder permissions.  I believe some other folder gets 
creates there that requires write access as well.

Sent from my Windows Phone

From: Geemailto:g.pl...@gmail.com
Sent: 5/8/2013 12:49 PM
To: Daniel Lo Nigromailto:li...@dan.cx
Cc: mono-aspnet-list@lists.ximian.commailto:mono-aspnet-list@lists.ximian.com
Subject: Re: [Mono-aspnet-list] Mono + Nginx + Open BSD
Hi all

So this is what I did...


For sanity's sake:
chown root /tmp/fastcgi-mono-socket
chmod 777 /tmp/fastcgi-mono-socket


To see permissions on the socket
ls -la /tmp/fastcgi-mono-socket:

Output:
srwxrwxrwx  1  root  wheel  0 May  8 16:01 fastcgi-mono-socket

grep wheel /etc/group


To see contents of group 'wheel':
cat /etc/group | grep --regex ^xxx:.* | awk -F: '{print $4}'

Output:
root

So I really have no idea what else I can do at this point.
Do anyone have any ideas?

Thanks!
G

On 8 May 2013 14:50, Daniel Lo Nigro li...@dan.cxmailto:li...@dan.cx wrote:
Hmm... I would have expected a Permission denied rather than a No such file 
or directory if it was a permissions issue. Maybe BSD handles this differently 
to Linux though.

On Wed, May 8, 2013 at 5:11 PM, Ovidiu D 
ovidiud...@gmail.commailto:ovidiud...@gmail.com wrote:
I'm not a BSD user so I don't know for sure but apparently the unix sockets 
permissions behave differently compared to Linux . See this: 
http://stackoverflow.com/questions/5977556/how-can-i-change-the-permissions-of-a-linux-socket-file

Anyway, having both the client and the server of the socket running with the 
same user should help here.



On Wed, May 8, 2013 at 9:58 AM, Ovidiu D 
ovidiud...@gmail.commailto:ovidiud...@gmail.com wrote:
Looking again at our upstart scripts I see that we start the fastcgi server 
using the same user as nginx. Can you do that?

If it doesn't work can you post the whole startup script for your fastcgi 
server?

On Wed, May 8, 2013 at 1:58 AM, Gee 
g.pl...@gmail.commailto:g.pl...@gmail.com wrote:
Hi Ovidiu
I tried TCP earlier to little avail.
*However*

I tried it again anyway (just to say that I did it again) and I got a 
YSOD/Exception (which is a start!).  After tweaking Web.config and restarting 
nginx - my hello world actually printed 'hello world'.  It's almost sad how 
much joy this brought me!  :-)
Now I know TCP does actually work (although I am not sure why it does now), I 
can set about solving why the unix socket is behaving so strangely.  I suspect 
that you (and the others earlier in this thread) are indeed all correct about 
the permissions issue.

I have set about resolving it, but I can't see to get past it.

I have chmod '777' (for now) - to no avail.
I ran chmod a+rwx as well - to no avail.
I even tried a different path - sadly, to no avail!

I am sure I am missing something obvious, although I have no idea what it could 
be... :-(

Any advice would be hugely appreciated!


Thanks
G

On 7 May 2013 20:57, Ovidiu D 
ovidiud...@gmail.commailto:ovidiud...@gmail.com wrote:
I'm pretty sure that you have a permission problem here. You should double 
check that both the users of the nginx and mono fastcgi server processes have 
rw access to that socket.
For debugging purposes you can also try to use a TCP socket instead of a unix 
socket and once your setup works you can move back to unix sockets.

On Tue, May 7, 2013 at 9:56 PM, Gee 
g.pl...@gmail.commailto:g.pl...@gmail.com wrote:
Hi

I am having trouble getting Mono to work with nginx.  I installed my OS 
(OpenBSD 5.3) and set up ports.  I built mono, mono-xsp and nginx - all without 
incident.  All three appear to be working OK, but not in conjunction.

I am trying to run a *very* simple MVC3 app - it is literally a hello world 
controller (no fancy code whatsoever) - but I keep getting a 502 (Bad gateway). 
 In the log, I see the following:

[crit] 31764#0: *1 connect() to unix:/tmp/fastcgi.socket failed (2: No such 
file or directory) while connecting to upstream,

The frustrating thing here is that /tmp/fastcgi.socket does actually exist.  I 
tried 'touch' and making sure 'www' and 'wheel' have the appropriate 
permissions (which they do).  The result of 'ls -la /tmp/fastcgi.socket' 
revealed nothing awry

Re: [Mono-aspnet-list] Stopping fastcgi-mono-server gracefully andwebsite content updating with no need of restarting it.

2011-11-12 Thread Jesse Pasichnyk
The mod_mono created process will recycle once you update the files, which will 
cause the loading process to hang slightly he first time its hit to load the 
application back up.  Same process occurs on IIS hosted .net apps.

For stopping it, look at the mono control panel documentation for mod_mono.___
Mono-aspnet-list mailing list
Mono-aspnet-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list


Re: [Mono-aspnet-list] ASP.Net starts crashing after a number of days...

2011-03-08 Thread Jesse Pasichnyk
I believe I've had this happen when mono was upgrades.  Make sure machine 
.config updates are applies and restart apache.  Not 100% sure that will 
resolve your issue, but worked for me.

-
Jesse

-Original Message-
From: Tim Nelson
Sent: Tuesday, March 08, 2011 2:56 PM
To: Mono-aspnet-list@lists.ximian.com
Subject: [Mono-aspnet-list] ASP.Net starts crashing after a number of days...

I've got a (lightly used) ASP.Net service that is deployed under Mono
that runs fine. All of a sudden though beta testers report errors and
when I hit the service from a browser, I get the error (below).

Can someone get me some debugging steps to try and identify the problem?

- ERROR ---

The section authentication can't be defined in this configuration
file (the allowed definition context is 'MachineToApplication').
(/var/www/html/Services/Web.config line 38)

Description: HTTP 400. Error processing request.

Stack Trace:

System.Configuration.ConfigurationErrorsException: The section
authentication can't be defined in this configuration file (the
allowed definition context is 'MachineToApplication').
(/var/www/html/Services/Web.config line 38)
  at System.Configuration.SectionInfo.ReadData
(System.Configuration.Configuration config, System.Xml.XmlReader
reader, Boolean overrideAllowed) [0x0007d] in
/root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionInfo.cs:182
  at System.Configuration.SectionGroupInfo.ReadContent
(System.Xml.XmlReader reader, System.Configuration.Configuration
config, Boolean overrideAllowed, Boolean root) [0x0014b] in
/root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:324
  at System.Configuration.SectionGroupInfo.ReadData
(System.Configuration.Configuration config, System.Xml.XmlReader
reader, Boolean overrideAllowed) [0x00018] in
/root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:277
  at System.Configuration.SectionGroupInfo.ReadContent
(System.Xml.XmlReader reader, System.Configuration.Configuration
config, Boolean overrideAllowed, Boolean root) [0x0014b] in
/root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:324
  at System.Configuration.SectionGroupInfo.ReadRootData
(System.Xml.XmlReader reader, System.Configuration.Configuration
config, Boolean overrideAllowed) [0x7] in
/root/mono-142439/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:269
  at System.Configuration.Configuration.ReadConfigFile
(System.Xml.XmlReader reader, System.String fileName) [0x000ec] in
/root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:511
  at System.Configuration.Configuration.Load () [0x0004a] in
/root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:472
  at System.Configuration.Configuration.Init (IConfigSystem system,
System.String configPath, System.Configuration.Configuration parent)
[0x00065] in 
/root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:121
  at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem system,
System.String locationSubPath) [0x0005c] in
/root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:83
  at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem system,
System.String locationSubPath) [0x0003b] in
/root/mono-142439/mcs/class/System.Configuration/System.Configuration/Configuration.cs:78
  at System.Configuration.InternalConfigurationFactory.Create
(System.Type typeConfigHost, System.Object[]
hostInitConfigurationParams) [0xe] in
/root/mono-142439/mcs/class/System.Configuration/System.Configuration/InternalConfigurationFactory.cs:42
  at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration
(System.String path, System.String site, System.String
locationSubPath, System.String server, System.String userName,
System.String password, Boolean fweb) [0x0006b] in
/root/mono-142439/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:322


Version information: Mono Runtime Version: tarball Thu Dec 9 06:33:31
CST 2010; ASP.NET Version: 2.0.50727.1433
___
Mono-aspnet-list mailing list
Mono-aspnet-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list

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


Re: [Mono-aspnet-list] How to remove fake mod-mono-server2 processes

2011-02-27 Thread Jesse Pasichnyk
  

I recommend just upgrading to a newer version of mono. I had major
issues like this with 2.4, which have since been resolved. 

- Jesse


On Sun, 27 Feb 2011 16:45:20 +0200, Andrus wrote: 

 After some time
server stops responding.
 There are lot of fake mod-mono-server2
processes running taking lot of 
 memory.
 
 mod_mono.conf contains


 MonoAutoRestartMode Time
 MonoAutoRestartTime 00:03
 
 Restaring
mono and mono server from mono control panel does not terminate 

them.
 How to fix this so that fake processes are terminated
automatically ?
 How to kill them all ?
 
 Andrus.
 
 root@mono:~#
ps aux | grep /usr/local/bin/mono
 www-data 23571 0.0 1.8 145136 19604
? Ssl Feb03 0:09
 /usr/local/bin/mono
/usr/local/lib/mono/2.0/mod-mono-server2.exe --filename

/tmp/mod_mono_server_global --nonstop --master
 www-data 29661 0.0 6.6
260496 70048 ? Ssl Feb03 0:58
 /usr/local/bin/mono
/usr/local/lib/mono/2.0/mod-mono-server2.exe --filename

/tmp/mod_mono_server_global --nonstop --master
 www-data 9871 0.0 7.3
269908 77056 ? Ssl Feb03 0:52
 /usr/local/bin/mono
/usr/local/lib/mono/2.0/mod-mono-server2.exe --filename

/tmp/mod_mono_server_global --nonstop --master
 www-data 28201 0.0 8.4
285416 88656 ? Ssl Feb14 3:15
 /usr/local/bin/mono
/usr/local/lib/mono/2.0/mod-mono-server2.exe --filename

/tmp/mod_mono_server_global --nonstop --master
 www-data 2020 0.0 5.1
174248 54456 ? Ssl Feb15 0:07
 /usr/local/bin/mono
/usr/local/lib/mono/2.0/mod-mono-server2.exe --filename

/tmp/mod_mono_server_global --nonstop --master
 www-data 28265 0.0 4.9
141868 52288 ? Ssl Feb18 0:04
 /usr/local/bin/mono
/usr/local/lib/mono/2.0/mod-mono-server2.exe --filename

/tmp/mod_mono_server_global --nonstop --master
 www-data 9684 0.0 4.5
263432 48032 ? Ssl Feb19 1:24
 /usr/local/bin/mono
/usr/local/lib/mono/2.0/mod-mono-server2.exe --filename

/tmp/mod_mono_server_global --nonstop --master
 www-data 4726 0.0 0.0
208348 224 ? Ssl Feb19 0:08
 /usr/local/bin/mono
/usr/local/lib/mono/2.0/mod-mono-server2.exe --filename

/tmp/mod_mono_server_global --nonstop --master
 www-data 23231 0.0 9.4
205768 99044 ? Ssl Feb20 0:09
 /usr/local/bin/mono
/usr/local/lib/mono/2.0/mod-mono-server2.exe --filename

/tmp/mod_mono_server_global --nonstop --master
 www-data 1161 0.0 8.0
271268 84240 ? Ssl Feb20 0:27
 /usr/local/bin/mono
/usr/local/lib/mono/2.0/mod-mono-server2.exe --filename

/tmp/mod_mono_server_global --nonstop --master
 www-data 3676 0.0 5.0
140900 52960 ? Ssl Feb20 0:03
 /usr/local/bin/mono
/usr/local/lib/mono/2.0/mod-mono-server2.exe --filename

/tmp/mod_mono_server_global --nonstop --master
 www-data 26331 0.0 6.3
200848 67096 ? Ssl Feb21 0:08
 /usr/local/bin/mono
/usr/local/lib/mono/2.0/mod-mono-server2.exe --filename

/tmp/mod_mono_server_global --nonstop --master
 www-data 886 0.0 5.4
202484 56784 ? Ssl Feb21 0:03
 /usr/local/bin/mono
/usr/local/lib/mono/2.0/mod-mono-server2.exe --filename

/tmp/mod_mono_server_global --nonstop --master
 www-data 17905 0.0 5.5
144108 58652 ? Ssl Feb22 0:04
 /usr/local/bin/mono
/usr/local/lib/mono/2.0/mod-mono-server2.exe --filename

/tmp/mod_mono_server_global --nonstop --master
 www-data 16984 1.2 0.8
50776 9032 ? Ssl 16:41 0:00
 /usr/local/bin/mono
/usr/local/lib/mono/2.0/mod-mono-server2.exe --filename

/tmp/mod_mono_server_global --nonstop --master
 root 16995 0.0 0.0 3872
592 ttyp0 R+ 16:41 0:00 grep
 /usr/local/bin/mono
 
 Using mono 2.4
in Debian.
 
 ___

Mono-aspnet-list mailing list
 Mono-aspnet-list@lists.ximian.com [1]

http://lists.ximian.com/mailman/listinfo/mono-aspnet-list [2]

 


Links:
--
[1] mailto:Mono-aspnet-list@lists.ximian.com
[2]
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
___
Mono-aspnet-list mailing list
Mono-aspnet-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list


Re: [Mono-aspnet-list] `System.Web.Mvc.AuthorizationContext' does not contain a definition for `ActionDescriptor'

2011-02-17 Thread Jesse Pasichnyk
  

Did you Copy Local the MVC related assemblies? I had some
problems when moving to asp.net 4.0 under mono, and had to remove all
those assemblies from my bin. I think this was one of the errors, but I
don't recall for sure. 

- 

Jesse 

On Thu, 17 Feb 2011 03:18:17 -0800
(PST), orhanveli wrote: 

 any idea?

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


Re: [Mono-aspnet-list] Mono on Nginx

2011-02-15 Thread Jesse Pasichnyk


In my mind, the current fastcgi implemetation in mono is too buggy to
rely on, and you should stick with mod_mono on the backend. I've tried
this via lighttpd as well as nginx, with varying luck and many issues
found. Save yourself some trouble and stick with mod_mono until the
fastcgi implmentation has been rewritten (2.10?). 

- 

Jesse 

On Tue,
15 Feb 2011 04:39:00 +, Daniel J. Summers  wrote:  
On Mon, Feb
14, 2011 at 4:43 PM, JZ  wrote:

 Is anyone hosting Mono on
XSP/FastCGI/Nginx?

http://florent.clairambault.fr/lighttpd-mono-asp-net-the-right-configuration
[2]

 Anyone else run in to this (ScriptMethod returns 405/500 can't
POST to
 Page.aspx/MethodName) issue?

Yep - and it's why I, at the
suggestion of someone else, am looking at migrating back to Apache2,
using the worker MPM and mod_fcgi to have Apache spawn the Mono
processes. I'm still in the working-it-out phase. The problem with nginx
is that, in the URL /my_service.asmx/GetCoolStuff, it's assuming that
/GetCoolStuff is either a file with no extension or a directory. Since
some RFC doesn't allow for this, nginx intercepts it and just returns a
405. There was a patch posted to forums, but the repository version
(Ubuntu) was well past the version the patch should have been in, and
the behavior still remained. 

I tried lots of different things, but the
lack of a case-insensitive switch (in nginx natively - MONO_IOMAP=all
works great for the Mono piece), along with its viewing of the entire
URL (including query string) making URLs like
image.axd?file=/App_Data/files/10/09/28/pic.jpg fail because they
match .jpg instead of .axd, I'm pursuing the Apache solution.


Certainly post back (pardon the pun) here if you figure it out;
however, the Apache manages the process thing will also fix a nagging
PHP-hang problem I've had with nginx (which PHP-FPM hasn't), so unless I
hit an insurmountable roadblock, that's the route I'm heading towards.
I'm planning on writing up how I made it work (once I have made it
work), and posting the URL to that to this list. 
  -- 

DANIEL J.
SUMMERS 
OWNER, DJS CONSULTING 
E-mail [3] * Website [4] * Support [5] *
Tech Blog [6] 

GEEKCODE 3.12 GCS/IT d s-:+ a C++ P--- L++ E--- W++ N++
o? K- w !O M-- 
V PS+ PE++ Y? PGP- t+ 5? X+ R* tv b+ DI++ D+ G-
e

Links:
--
[1] mailto:j...@odyl.net
[2]
http://florent.clairambault.fr/lighttpd-mono-asp-net-the-right-configuration
[3]
mailto:daniel.summers.2...@gmail.com
[4] http://djs-consulting.com
[5]
http://support.djs-consulting.com
[6]
http://techblog.djs-consulting.com
___
Mono-aspnet-list mailing list
Mono-aspnet-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list


[Mono-aspnet-list] Error parsing Request Headers in FastCGI

2010-07-23 Thread Jesse Pasichnyk


Hi, 

I am running a mono based service (single .ashx) and from time to
time the request errors when it try to read the request headers. The error
seems to be a string manipulation error at the fastcgi level (lighttpd +
fastcgi). 

System.ArgumentOutOfRangeException: startIndex + length 
this.lengthParameter name: length at System.String.Substring (Int32
startIndex, Int32 length) [0x0] in :0 at
Mono.WebServer.FastCgi.WorkerRequest.ReformatHttpHeader (System.String
header) [0x0] in :0 at
Mono.WebServer.FastCgi.WorkerRequest.GetUnknownRequestHeaders () [0x0]
in :0 at Mono.WebServer.FastCgi.WorkerRequest.GetKnownRequestHeader (Int32
index) [0x0] in :0 at System.Web.HeadersCollection.InsertInfo ()
[0x0] in :0 at System.Web.BaseParamsCollection.LoadInfo () [0x0] in
:0 at System.Web.BaseParamsCollection.GetEnumerator  

Is there a known bug
there? 99.x% of the requests come through just fine, it must just be
clients with malformed headers (broken clients, or clients trying to cause
issues...) that are erroring. I'd think that the fastcgi layer in this case
would still return what headers are valid, and disregard anything else.


I'm using Mono 2.6.4. 

Thanks, 

Jesse___
Mono-aspnet-list mailing list
Mono-aspnet-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list


****SPAM(3)**** RE: [Mono-list] Re: Running mod-mono-server in a chroot jail

2005-12-01 Thread Jesse Pasichnyk
Christopher,

Thanks for the heads up, I will definitely test out my chroot environment
for security.
Is it possible to create a safe chroot if it has mono installed in it?
(inlcuding the compiler)


I have a quick question about mounting my /proc filesystem into my jail
environment.  I have a common jail environment at /home/jail, this gets
mounted into each persons home directory at /home/username/.jail, using
mount --bind.  I then symlink each of the required folders usr,lib,proc,var
and such into the root of the users directory so I only need to mount one
single folder into their home directory.

I'm seeing a few weird things though (running redhat el4).  When I mount my
proc filesystem into /home/jail/proc I can do a ls -la /home/jail/proc and
see all the files, however it doesn't show up in a df|grep proc.  Also
when I mount my /home/jail onto a /home/username/.jail, I get nothing in a
ls -la /home/username/.jail/proc.  Do you know any reasoning for this?  Is
this because I have to explicitly mount the proc filesystme into the users
homedirectory as the proc type?  If so any ways around this?

This is causing my execution of a chrooted mod-mono-server to fail due to
inability to get the number of processors on the machine, same as described
in past emails. 


Any ideas/comments would be much appreciated.

Thanks,

Jesse 
  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Christopher
Bergström
Sent: Tuesday, November 29, 2005 3:21 AM
Cc: Mono-list@lists.ximian.com
Subject: [Mono-list] Re: Running mod-mono-server in a chroot jail

Robert Jordan wrote:

 Jesse,

 You are correct, I do not have the real proc filesystem mounted into 
 the jail.  I was thinking I could go ahead and mount this using 
 something
 like:

 mount --bind /proc -o ro,nosuid /home/jail/proc


 mount -n -t proc proc /home/jail/proc

 Does this open up and security issues etc?  I'm not very familiar 
 with the proc filesystem.


 There were some security issues (chroot escapes) with chroot and 
 procfs, but I cannot remember which linux kernel version was affected 
 (2.2 or 2.4?).

Since security is being brought up here...  Find paxtest.. Test your system
and then check to see if you have make tools installed.. It takes about 2
minutes to pivot and or simply escape out of a chroot jail if you know a few
key things.. chroot isn't a panacea..

Also.. For those that plan to run a reverse proxy to allow multiple xsp..
(Take a look at how many vulnerabilities squid has had over the last year.)

I'm by no means an expert, but these are my basic thoughts..

C.
___
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


[Mono-list] .wapi description

2005-12-01 Thread Jesse Pasichnyk








Is there any documentation out there to exactly what the
.wapi directory is and how it is used? Also is there a way to specify where
this directory should be located when starting a mod-mono-server/xsp instance
by hand?



Thanks,



Jesse






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


[Mono-list] mono-service

2005-12-01 Thread Jesse Pasichnyk








Hey guys,



I just was browsing through some of the mono code/assemblies
and ran across mono-service. It appears that this is a windows service like
implementation that could now be used under linux or whatever other mono
supported platform. I was just curious about the status of this and supporting
assemblies; whether they are still being worked on, stable, etc.



Also is there any available documentation on this aside from
the man page for mono-service?



Thanks,



Jesse






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


RE: [Mono-list] mod_mono in a shared hosting envionment

2005-11-28 Thread Jesse Pasichnyk
David,

I made a post this last weekend when I was trying to get mod-mono-server
running in a chroot jail.  See I am trying to do the same thing and exec my
mod-mono-server instances as each user that owns the site, but since these
users are chrooted, initializing the mod-mono-server fails.

How are you actually starting the process as the user?  Just with a:

su - username -c [command to start mod-mono-server on the application]

or programmatically via setuid/setgid ?

I believe we are trying to do the same thing here.  I however didn't get
back a reply yet on my chroot issues.

If I hear anything I'll keep you posted,

Jesse

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of 'David Darville'
Sent: Monday, November 28, 2005 3:00 AM
To: mono-list@lists.ximian.com
Subject: Re: [Mono-list] mod_mono in a shared hosting envionment

On Wed, Nov 23, 2005 at 12:32:16PM -0800, Jesse Pasichnyk wrote:
 Hi David,
 
 There have been several posts about this sort of thing in the past (from
me
 and others), and I think the consensus is its probably better to run
 standalone xsp servers per site.  That way you can chroot the xsp
(optional
 of course) as well as run it as the user who owns the site.  This would
 limit the problem of bad users or exploited sites doing too much damage.
I
 believe people also argue against mod_mono because that would tie the GC
 instance to the apache server in some sorts (I'm not aware of how that
works
 though, someone else may be able to provide more reasoning behind it).  If
 you do choose to run separate xsp instances you could use mod_proxy to
setup
 forward and reverse proxies to the xsp instance.  This could be initially
 just setup running xsp instances on ports of 127.0.0.1, but could be in
the
 future scaled out to multiple application servers.

Currently I am working on a proxy to put between mod_mono and
mod-mono-server.exe, which executes the mod-mono-server.exe instances for
each customer, using seperate uid's for each domain, which does limit how
much
one customer can access the files all other customers, but we still have
alot of customers who does not set proper permissions on their files, and
therefore there are still plenty of files beloging to other files which are
accessible.
And to eliminate that problem we need to be able to limit which files a
mono/mod-mono-server.exe instance can access, before we can implement it in
our production environment. And therefore I am now asking about the
possibility of souch a functionality getting implementes in
mono/mod-mono-server.exe.

---

David Darville
___
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


****SPAM(1)**** RE: [Mono-list] Re: Running mod-mono-server in a chroot jail

2005-11-28 Thread Jesse Pasichnyk
Robert,

You are correct, I do not have the real proc filesystem mounted into the
jail.  I was thinking I could go ahead and mount this using something like:

mount --bind /proc -o ro,nosuid /home/jail/proc

Does this open up and security issues etc?  I'm not very familiar with the
proc filesystem.

Thanks in advance,

Jesse

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert Jordan
Sent: Monday, November 28, 2005 11:03 AM
To: Mono-list@lists.ximian.com
Subject: [Mono-list] Re: Running mod-mono-server in a chroot jail

Jesse,

Your jail probably doesn't have the /proc filesystem mounted.

Robert

 I'm working on getting all of my asp.net sites running under separate 
 standalone instances of mod-mono-server running as the owner of each site.
 All my site users are however locked into their own chroot environment.
 
  
 
 I'm trying to start up each mod-mono-server instance as follows:
 
  
 
 su -  jailuser -c mono /usr/lib/xsp/1.0/mod-mono-server.exe  --root 
 /home/jailuser/htdocs/domains/domain.com/www/html --master 
 --filename /usr/local/aspnet/domain.com/www/socket --nonstop
 
  
 
 When I try to execute the above command to start the server I get:
 
  
 
 GC Warning: Couldn't read /proc/stat
 
 GC Warning: GC_get_nprocs() returned -1
 
 Couldn't read /proc/self/stat
 
  
 
 If anyone has gotten this working or has any information that could 
 help me please let me know.

___
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


[Mono-list] Running mod-mono-server in a chroot jail

2005-11-25 Thread Jesse Pasichnyk








Im working on getting all of my asp.net sites running
under separate standalone instances of mod-mono-server running as the owner of
each site. All my site users are however locked into their own chroot environment.



Im trying to start up each mod-mono-server instance
as follows:



su - jailuser -c mono
/usr/lib/xsp/1.0/mod-mono-server.exe --root /home/jailuser/htdocs/domains/domain.com/www/html
--master --filename /usr/local/aspnet/domain.com/www/socket --nonstop



When I try to execute the above command to start the server I
get:



GC Warning: Couldn't read /proc/stat

GC Warning: GC_get_nprocs() returned -1

Couldn't read /proc/self/stat



If anyone has gotten this working or has any information
that could help me please let me know.




Thanks,



Jesse Pasichnyk






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


RE: [Mono-list] mod_mono in a shared hosting envionment

2005-11-23 Thread Jesse Pasichnyk
Hi David,

There have been several posts about this sort of thing in the past (from me
and others), and I think the consensus is its probably better to run
standalone xsp servers per site.  That way you can chroot the xsp (optional
of course) as well as run it as the user who owns the site.  This would
limit the problem of bad users or exploited sites doing too much damage.  I
believe people also argue against mod_mono because that would tie the GC
instance to the apache server in some sorts (I'm not aware of how that works
though, someone else may be able to provide more reasoning behind it).  If
you do choose to run separate xsp instances you could use mod_proxy to setup
forward and reverse proxies to the xsp instance.  This could be initially
just setup running xsp instances on ports of 127.0.0.1, but could be in the
future scaled out to multiple application servers.

I also modified the mod_mono itself a while back to call an external
assembly (passing some extra parameters) instead of the mod-mono-server.exe.
That assembly was setuid root and did a ton of validation before doing
anything.  It then spawned off a mod-mono-server as the appropriate user,
this would also be an option.

I personally have leaned towards the way of running XSP standalone and just
proxying however.  This leads to greater scalability... You could have an
array or application servers behind a scalable number of web boxes, the
webboxes would then just forward the requests on.  It also makes for easier
upgrades to newer versions of the software.  Coupled with mod_security this
could also lead to an extra firewall'ish layer between your web and
application servers, blocking potential security breaches before they even
get to the xsp instance.

Just some ideas, hope that helps.  Feed back from anyone would be much
appreciated.

Jesse 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Darville
Sent: Wednesday, November 23, 2005 4:58 AM
To: mono-list@lists.ximian.com
Subject: [Mono-list] mod_mono in a shared hosting envionment


I am working on integrating mod_mono in our shared hosting environment, but
I have noticed that it is possible for a script to access and modify the
files of all other users, which sounds like a security nightmare to me.

So I wonder if there is any way to limit which files mod-mono-server.exe can
access, mabye something similar to php's open_basedir configuration option.

---

David Darville
___
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


RE: [Mono-list] mod_mono in a shared hosting envionment

2005-11-23 Thread Jesse Pasichnyk
Joshua,

Thanks for providing clarification on this.

I believe I remember someone promoting the use of mod_proxy over mod_mono in
a shared environment because they said with mod_mono all requests will be
passed onto the mod-mono-server even html page, images, etc.  I'm not sure
if this is the case or not but I'm just going off what I was told.  They
argued that using mod_proxy you could choose what to proxy to the xsp
instance and what not to proxy, letting apache serve up all the content
aside from specific ASP.NET pages.  

I'm am in the same boat as David here, looking for the best possible setup
for a scalable/secure shared hosting environment, so once again any comments
are appreciated.

Thanks,

Jesse

-Original Message-
From: Joshua Tauberer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 23, 2005 6:38 PM
To: Jesse Pasichnyk
Cc: 'David Darville'; mono-list@lists.ximian.com
Subject: Re: [Mono-list] mod_mono in a shared hosting envionment

Jesse Pasichnyk wrote:
 There have been several posts about this sort of thing in the past (from
me
 and others), and I think the consensus is its probably better to run
 standalone xsp servers per site.

You can run XSPs and then proxy them with Apache, as you say, but 
alternatively you can run mod-mono-server's and not have to configure 
proxying.  Remember that mod_mono is just a light-weight thing that 
spawns mod-mono-server.exe to run the mono environment.  Normally 
mod_mono starts the mod-mono-server, but you can turn that off to start 
it yourself under a different user, or on another machine.  (See the man 
page for mod-mono-server.exe, I think.)

Also, mod-mono-server runs as the same user as apache (if it is started 
automatically by mod_mono), which at least on Fedora systems is the 
apache user, who has no access to do anything malicious.

 believe people also argue against mod_mono because that would tie the GC
 instance to the apache server in some sorts 

Since the mono runtime is in a separate process, there's no interaction 
like that.

-- 
- Joshua Tauberer

http://taubz.for.net

** Nothing Unreal Exists **



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


[Mono-list] Problem with prj2make

2005-08-09 Thread Jesse Pasichnyk








Hi,



Im trying to convert a Visual Studio.NET 2003 project
file to a Makefile.



Im getting the following error.



[EMAIL PROTECTED] ~/site/ASPX]# prj2make RMA.csproj

Error running pkg-config. Check the above output.





Any help would be appreciated. Currently Ive been running
prj2make# GTK on my development machine (XP) to get around this.



Thanks,



Jesse






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


[Mono-list] Problem with FormsAuthentication

2005-07-10 Thread Jesse Pasichnyk








Hi,



I just upgraded to the stable version of mono on my RHEL4
box.



I have an ASP.NET (v1.1) application that Im working
on that has a login section for administration. This works fine on IIS/MS
Framework. However when I run it on the linux box under mono it has
unexpected behavior. 





The Web.config section to setup the
forms based authentication is as follows:



system.web

  

  authentication mode=Forms

   forms name=.MONOAUTH loginUrl=Administration/Login.aspx protection=All timeout=60 path=/Administration//

  /authentication

  authorization 

   deny users=? / 

  /authorization

/system.web





On my MS box I when I try to go to
localhost/Administration it forwards me to:

http://localhost/Administration/Login.aspx?ReturnUrl=%2fAdministration%2fdefault.aspx

however on my MONO/linux box when I go
to the same url I get forwarded to the same url:

http://localhost/Administration/Login.aspx?ReturnUrl=%2fAdministration%2fDefault.aspx



The problem starts here. When it
forwards me to this login page, now I dont see the forms login like I do
under MS .NET; I instead get a server error as follows:



Server error in '/' application







Unauthorized

Description: Error
processing request. 

Error Message: HTTP 401. Unauthorized 











If
anyone has any insight as to why this is happening and how I can fix it, please
let me know. I need to get this site to production ASAP.



Thanks,

Jesse






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


RE: [Mono-list] Problem with FormsAuthentication - Request failed: URI too long (longer than 8190) ??

2005-07-10 Thread Jesse Pasichnyk








I looked in my apache log and Im
seeing the following error:



[Sat Jul 09 19:59:43 2005] [error]
[client IP ADDRESS HERE] request failed: URI too long (longer than
8190)





Any ideas?







Sorry I send an outdated clip from my
web.config. It now is as follows:



configuration

system.web


 authentication mode=Forms


  forms name=.MONOAUTH loginUrl=Administration/Login.aspx protection=All timeout=60 path=/Administration//


 /authentication


 

 


 compilation debug=true defaultLanguage=c# /




 customErrors mode=RemoteOnly/





 trace


  enabled=false


  requestLimit=10


  pageOutput=false


  traceMode=SortByTime


  localOnly=true/




 sessionState mode=InProc stateConnectionString=tcpip=127.0.0.1:42424 sqlConnectionString=data source=127.0.0.1;Trusted_Connection=yes cookieless=false timeout=20/


 


 globalization requestEncoding=utf-8 responseEncoding=utf-8/


 

 /system.web

 

 location path=Administration


 system.web


  authorization 


 
 deny users=?/


  /authorization 


 /system.web

 /location

/configuration












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


RE: [Mono-list] asp.net mod_mono reference question

2005-05-20 Thread Jesse Pasichnyk








-r MyCustomAssembly.dll





Mono C# compiler, (C) 2001 - 2003 Ximian,
Inc.

mcs [options] source-files


--about About
the Mono C# compiler

 -addmodule:MODULE Adds
the module to the generated assembly


-checked[+|-] Set default context to checked


-codepage:ID Sets code page to the one in
ID (number, utf8, reset)


-clscheck[+|-] Disables CLS Compliance verifications


-define:S1[;S2] Defines one or more symbols (short: /d:)

 -debug[+|-],
-g Generate debugging information


-delaysign[+|-] Only insert the public key into the assembly
(no signing)


-doc:FILE XML
Documentation file to generate

 -keycontainer:NAME The key
pair container used to strongname the assembly


-keyfile:FILE The strongname key file used to
strongname the assembly

 -langversion:TEXT
Specifies language version modes: ISO-1 or Default

 -lib:PATH1,PATH2
Adds the paths to the assembly link path


-main:class Specified the class that
contains the entry point


-noconfig[+|-] Disables implicit references to
assemblies


-nostdlib[+|-] Does not load core libraries


-nowarn:W1[,W2] Disables one or more warnings


-optimize[+|-] Enables code optimalizations


-out:FNAME Specifies output
file


-pkg:P1[,Pn] References packages P1..Pn


-recurse:SPEC Recursively compiles the files in
SPEC ([dir]/file)


-reference:ASS References the specified assembly
(-r:ASS)


-target:KIND Specifies the target (KIND is
one of: exe, winexe,


library, module), (short: /t:)


-unsafe[+|-] Allows unsafe code

 -warnaserror[+|-] Treat
warnings as errors


-warn:LEVEL Sets warning level (the
highest is 4, the default is 2)


-help2
Show other help flags



Resources:

 -linkresource:FILE[,ID] Links
FILE as a resource


-resource:FILE[,ID] Embed FILE as a resource


-win32res:FILE Specifies
Win32 resource file (.res)


-win32icon:FILE Use this icon
for the output

 @file
Read response file for more options



Options can be of the form -option or
/option











From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Dustin Aleksiuk
Sent: Friday, May 20, 2005 3:50 PM
To: mono-list@lists.ximian.com
Subject: [Mono-list] asp.net
mod_mono reference question






Hello, 

I'm
sure there's an easy answer to this, but I can't find it. I'm running mod_mono
on apache, on Linux. I want to reference my own DLL in my codebehind. When the
compiler tries to compile my codebehind when the page is run, it can't find my
classes. It can find all the system classes. 

Is
there a config parameter where I can tell it which DLLs to reference?


Thanks
muchly,
Dustin 








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


[Mono-list] Problem with mod_mono

2005-03-23 Thread Jesse Pasichnyk








Im experience a problem with mod_mono (1.0.6), and Im
running the 1.1.4 framework.



The issue is that Ill start up apache with: MonoRunXSP
True



First of all, with this release I actually get a
mod-mono-server.exe spooled up for each virtual host I have setup as a
MonoApplication, which was not happening before off the bat. Now the
issue is that if I rebuild/update a site, I have to actually restart apache for
this to go into effect, otherwise it keeps pulling up my previous copy of the
site. 



Do I need to turn off MonoRunXSP? Or is there
something else going on here. If I need to turn it off, when should this
be used.



Im pretty pressed to get this issue figured out, as I
have several people working on this server that I do not want to give that kind
of access to.



Thanks,



Jesse








RE: [Mono-list] Deamonize. Running a Mono app. in the background

2005-03-15 Thread Jesse Pasichnyk
Are the execv, setuid and setgid methods working?

I wrote some stuff using those, and it did the execv fine, but didn't seem
to want to change the identity the application was running under.

The exe had permissions 6755.

Is this not possible since the application is run by the mono executable?

Thanks,

Jesse

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jörg Rosenkranz
Sent: Tuesday, March 15, 2005 7:24 AM
To: Michael Rasmussen; mono-list@lists.ximian.com
Subject: RE: [Mono-list] Deamonize. Running a Mono app. in the background

Hello Michael,

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Michael Rasmussen
 
 Hi List,
 
 How does one run a Mono app. as a deamon?
 
 In C/C++ I would do it this way:
 
 ...
 /* Fork off the parent process */
 pid = fork();

The standard Unix functions are implemented in namespace
Mono.Unix in assembly Mono.Posix, but the fork calls aren't 
working from managed code.

I have done a C daemon using Embedded Mono to run a
Windows Service implemented in .NET on Linux. I have 
sent a first proposal to Mono-Devel list some days ago:
http://article.gmane.org/gmane.comp.gnome.mono.devel/10777

You can take the attached daemon as starting point for 
your own implementation or help promoting the inclusion 
of something like that in Mono ;-)

Joerg.
___
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


[Mono-list] Npgsql varchar as a parameter

2005-03-14 Thread Jesse Pasichnyk








Im working on a project with mono/postgres and it
looks like it is not possible to pass a parameter to a function as a varchar.



Does anyone have a good work around for this, or know when
if/when it will be functional?



Thanks,


Jesse








RE: [Mono-list] Current state of FormsAuthentication

2005-03-07 Thread Jesse Pasichnyk








Even
with the new System.Web.dll (http://www.go-mono.com/archive/updates/1.1.4/System.Web.dll)



Im still not getting forwarded to my login page on my
one site. And on the other I still receive a 401 when it redirects me to the
login page.



Is that previously sent patch (by Ilya) something that will
fix this? 



The issue that I am seeing is before any ticket is created,
ie. On the first page view of the site.



Thanks,


Jesse











From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Ilya Kharmatsky
Sent: Sunday, March 06, 2005 9:49
AM
To: mono-list@lists.ximian.com;
Gonzalo Paniagua Javier
Subject: Re: [Mono-list] Current
state of FormsAuthentication





Hi!

We found regression in latest version of Forms Authentication - in case
when the FormsAuthenticationTicket is not persistent (created with 
FormsAuthentication.SetAuthCookie(userName, false)) 
the HttpRequest.IsAuthenticated will return false.

Attached possible patch (in FormsAuthenticationModule.cs) and test case. 

Thanks,
Ilya Kharmatsky.

Gonzalo Paniagua Javier wrote: 

On Wed, 2005-03-02 at 11:45 -0700, Jesse Pasichnyk wrote: 

I am working on developing an ecommerce site with mono/postgres and amhaving some issues with the a Forms based security login area. 

Last mono release shipped with a regression that might makeFormsAuthentication fail.You can get a new System.Web.dll fromhttp://www.go-mono.com/archive/1.0.6/System.Web.dll orhttp://www.go-mono.com/archive/1.1.4/System.Web.dll-Gonzalo___Mono-list maillist - Mono-list@lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/mono-list 






RE: [Mono-list] Current state of FormsAuthentication

2005-03-05 Thread Jesse Pasichnyk
That 1.1.4 link didn't work.  Is the 1.1.4 zip updated?  Or should I just
build from svn?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gonzalo Paniagua
Javier
Sent: Saturday, March 05, 2005 5:48 PM
To: mono-list@lists.ximian.com
Subject: Re: [Mono-list] Current state of FormsAuthentication

On Wed, 2005-03-02 at 11:45 -0700, Jesse Pasichnyk wrote:
 I am working on developing an ecommerce site with mono/postgres and am
 having some issues with the a Forms based security login area. 


Last mono release shipped with a regression that might make
FormsAuthentication fail.

You can get a new System.Web.dll from
http://www.go-mono.com/archive/1.0.6/System.Web.dll or
http://www.go-mono.com/archive/1.1.4/System.Web.dll

-Gonzalo


___
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


RE: [Mono-list] Current state of FormsAuthentication

2005-03-03 Thread Jesse Pasichnyk
Jim,

I'm running on RHEL4.

My mono version is 1.1.4 from the FC3 RPM.

Mod-mono version is 1.0.5 from source.  (had to go back to this because of
the virtual host issue in 1.0.6)

XSP version is 1.0.6 from source.



From httpd.conf  (replaced actual domain with [domain], and ip address with
11.11.11.11)

VirtualHost 11.11.11.11:80
   ServerName rma.[domain].com
   DocumentRoot /home/rma/htdocs/domains/rma.[domain].com/html
   MonoApplications /:/home/rma/htdocs/domains/rma.[domain].com/html
   MonoUnixSocket /usr/local/aspnet/rma.[domain].com/mono_socket
   MonoWapiDir /usr/local/aspnet/rma.[domain].com
   DirectoryIndex Default.aspx
   Directory /
  AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .dll
   /Directory
   ErrorLog /home/rma/htdocs/domains/rma.[domain].com/logs/error_log
   CustomLog /home/rma/htdocs/domains/rma.[domain].com/logs/access_log
combined
/VirtualHost


Here is the applicable stuff from my Web.config:

system.web
  sessionState
mode=InProc
stateConnectionString=tcpip=127.0.0.1:42424
sqlConnectionString=data
source=127.0.0.1;Trusted_Connection=yes
cookieless=false
timeout=20
  /

  authentication mode=Forms
 forms name=RMA.Administration
loginUrl=Administration/Login.aspx protection=All
path=/Administration//
  /authentication

   /system.web

   location path=Administration
  system.web
 authorization
!-- Order and case are important below --
allow roles=Administrator/
deny users=*/
 /authorization
  /system.web
   /location



Another question that I have, is my state server run automatically by XSP or
something? Or is this something I have to configure separately?

Thanks,

Jesse

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Erwin
Sent: Wednesday, March 02, 2005 12:18 PM
To: mono-list@lists.ximian.com
Subject: Re: [Mono-list] Current state of FormsAuthentication

Jesse,

Some additional information might be helpful, such as OS (linux distro if 
applicable) and version, what version of mono you're using, how it was 
installed, are you using Apache with mod_mono or xsp, maybe your site 
configuration and web.config.

There are quite a bit of variables involved here, and a clearer picture of
the 
issue might help someone to help you resolve it.

regards,

JE

On Wednesday 02 March 2005 12:45, Jesse Pasichnyk wrote:
 I am working on developing an ecommerce site with mono/postgres and am
 having some issues with the a Forms based security login area.



 I have the directory of /Administration/ protected and a login page of
 /Administration/Login.aspx set as the login page.  When you try to go to
 /Administration/ it tries to direct to the login page, but I get the
 following:




 Server error in '/' application



   _



 Unauthorized


 Description: Error processing request.

 Error Message: HTTP 401. Unauthorized







 I'm guessing this is because I explicitly need to disable protection of
the
 Login.aspx page, but under the MS framework, this worked fine.  I just
 wanted to bring up this issue, and see if this decision was made for a
 reason, or if it was an accident.



 Also, is there anything I should be aware of, as in non-functional parts
of
 the FormsAuthentication functionality in Mono 1.1.4?



 Thanks in advance,



 Jesse Pasichnyk
___
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


[Mono-list] Current state of FormsAuthentication

2005-03-02 Thread Jesse Pasichnyk








I am working on developing an ecommerce site with
mono/postgres and am having some issues with the a Forms based security login
area. 



I have the directory of /Administration/ protected and a
login page of /Administration/Login.aspx set as the login page. When you try
to go to /Administration/ it tries to direct to the login page, but I get the
following:



Server
error in '/' application







Unauthorized

Description: Error
processing request. 

Error Message: HTTP 401. Unauthorized 







Im guessing this is because I explicitly need to
disable protection of the Login.aspx page, but under the MS framework, this
worked fine. I just wanted to bring up this issue, and see if this decision
was made for a reason, or if it was an accident. 



Also, is there anything I should be aware of, as in
non-functional parts of the FormsAuthentication functionality in Mono 1.1.4?



Thanks in advance,



Jesse Pasichnyk










RE: [Mono-list] ASP.NET on Linux: apache, mono, xsp, mod_mono

2005-01-26 Thread Jesse Pasichnyk
Checkout the documentation at
http://www.gotmono.net/documentation/mod-mono-howto.html

It is a great walk through on setting up apache+mod_mono from start to
finish.

I think everything your looking for will be explained there.

-
Jesse Pasichnyk

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Neil Zanella
Sent: Monday, January 24, 2005 7:50 PM
To: Mono-list@lists.ximian.com
Subject: Re: [Mono-list] ASP.NET on Linux: apache, mono, xsp, mod_mono

Thank you for your reply, but how do I make it load into apache?

Thanks,

Neil

On Mon, 24 Jan 2005 15:44:33 -0700, Jesse Pasichnyk [EMAIL PROTECTED]
wrote:
 Looks as if your mod_mono isn't being loaded into apache.
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Neil Zanella
 Sent: Monday, January 24, 2005 3:36 PM
 To: Mono List
 Subject: [Mono-list] ASP.NET on Linux: apache, mono, xsp, mod_mono
 
 Hello,
 
 I am trying to deploy ASP.NET applications from Fedora Core 3 Linux.
 I have installed mono, xsp, and mod_mono on top of Fedora Core 3 Linux
with
 apache 2.0.52. I follow all the instructions, and then add the following
 lines:
 
Alias /demo /usr/share/doc/xsp/test
MonoApplications /demo:/usr/share/doc/xsp/test
 
Location /demo
  SetHandler mono
/Location
 
 to the file /etc/httpd/conf/httpd.conf. The problem is that when I
 restart Apache it
 complains about the MonoApplications line (which in fact my vim text
 editor never
 recognized as an Apache directive and hence never syntax highlighted it):
 
 # /etc/init.d/httpd start
 Starting httpd: Syntax error on line 1025 of /etc/httpd/conf/httpd.conf:
 Invalid command 'MonoApplications', perhaps mis-spelled or defined by
 a module not included in the server configuration
   [FAILED]
 
 Anyone know how I can fix this problem? I am simply trying to run
 ASP.NET applications
 from within Linux a I prefer developing from Linux than from Win XP
 Pro (it feels faster).
 
 Thanks!!
 
 Neil
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
 
 


-- 
Neil Zanella
[EMAIL PROTECTED]
(780)-437-9326
___
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


[Mono-list] XSP server in a VirtualHost environment (suexec?)

2004-12-13 Thread Jesse Pasichnyk
I am in the process of implementing a large scale PHP4/PHP5/ASP.NET (mono)
hosting environment on Apache2.  I currently have my PHP4 and PHP5 cgi’s
compiled and have the running suexec.  I recently setup the XSP server and
mod_mono in attempt to get name based virtualhosting up and running for
asp.net as well.  Right now I’m at a point where I have the name based
virtual hosts up and running with ASP.NET using unique mono_socket’s and
.wapi directories per application (located in the users home directory). 
However these files are created/owned by apache right now, meaning that
wherever they are located needs to have write permissions by apache (kinda
iffy).  My ultimate goal however, is to get this system up and running
with all user code running as its corresponding user as to minimize
administration issues (directory permissions etc) and to limit the scope
of their application to their home directory  (chroot).  My currently
setup for user accounts is using the JailChroot project so all users are
chrooted to their home directories upon login of any sort.  I have done
the same with the suexec/cgi  for php4 and php5.  I would like to
ultimately produce the same result with ASP.NET.

I spoke with someone lastnight in #mono that suggested running separate
instances of the XSP server for each application I want to host, then
proxying the requests for asp.net files with apache and mod_proxy to the
appropriate XSP server (each would also have to be running on a different
port).  I realize that in this case, there would have to be a huge number
of xsp servers running and I’d be curious about the resources needed by
this.  This just doesn’t seem very scalable to me.  I realize I could
break off my XSP servers to a privately accessible cluster but it seems
like this would still make it hard to get some solid redundancy for this
platform, seeing that the mod_proxy would be forwarding to a specific
private IP.

Anyone have any ideas on how to implement this sort of application server
environment?

Input of any sort would be much appreciated,

--
Jesse

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