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

2005-05-21 Thread Dustin Aleksiuk

Hi Jesse,

I'm aware of that flag, but I'm talking
about the compilation of the aspx.cs file that mod_mono does when it gets
a page request. From what I read, it compiles the aspx.cs files at that
time (and that works fine if I remove the code that tries to use my DLL).
I don't know how to pass it command-line flags since mod_mono invokes the
compiler, not me.

Is there something fundamental I'm missing
about mod_mono?

Thanks,
Dustin







Jesse Pasichnyk
[EMAIL PROTECTED] 
21/05/2005 00:07




To
'Dustin Aleksiuk' [EMAIL PROTECTED],
mono-list@lists.ximian.com


cc



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








-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


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

2005-05-21 Thread Timothy Graupmann
The DLL has to be in the path MOD_MONO is expecting.

Here is the setup I used.
http://www.tagcma.com/article.php?story=20050422023642167

I load several DLLs.

I remember it had something to do with this:

LoadModule mono_module modules/mod_mono.so

Alias /TAGMLWS /var/www/mono/tagml/TAGMLWS
MonoApplications /TAGMLWS:/var/www/mono/tagml/TAGMLWS

Directory /var/www/mono/tagml/TAGMLWS
Order allow,deny
Allow from all
SetHandler mono
IfModule mod_dir.c
DirectoryIndex ClientManager.aspx
/IfModule
/Directory


~Tim


--- Dustin Aleksiuk [EMAIL PROTECTED] wrote:

 Hi Jesse,
 
 I'm aware of that flag, but I'm talking about the compilation of the 
 aspx.cs file that mod_mono does when it gets a page request. From what I 
 read, it compiles the aspx.cs files at that time (and that works fine if I 
 remove the code that tries to use my DLL). I don't know how to pass it 
 command-line flags since mod_mono invokes the compiler, not me.
 
 Is there something fundamental I'm missing about mod_mono?
 
 Thanks,
 Dustin
 
 
 
 
 
 Jesse Pasichnyk [EMAIL PROTECTED] 
 21/05/2005 00:07
 
 To
 'Dustin Aleksiuk' [EMAIL PROTECTED], 
 mono-list@lists.ximian.com
 cc
 
 Subject
 RE: [Mono-list] asp.net mod_mono reference question
 
 
 
 
 
 
 -r MyCustomAssembly.dll
  
  
 Mono C# compiler, (C) 2001 - 2003 Ximian, Inc.
 mcs [options] source-files
--aboutAbout 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[+|-], -gGenerate 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:classSpecified 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:LEVELSets 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
 




Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html

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


[Mono-list] asp.net mod_mono reference question

2005-05-20 Thread Dustin Aleksiuk

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


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


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

2005-05-20 Thread Joe Audette
Hi Dustin,

If I understand your question correctly it is a
ASP.NET question, nothing mono specific.

When using code behind rather than in-line code, you
have to compile your dll yourself and put it in the
bin folder in the root of your web app.

Your page will have a reference like this:
%@ Page language=c# Codebehind=YourPage.aspx.cs
AutoEventWireup=false
Inherits=YourNamepsace.YourCodeBehindClassName %

The .cs file for the code behind does not get compiled
by the JIT like inline code done inside Script
runat=server, you have to compile YourPage.aspx.cs
into YourNamespace.dll and put it in the bin folder at
the root of your web application.

Hope that helps,

Joe



--- Dustin Aleksiuk [EMAIL PROTECTED] wrote:

 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
 


joe_audette [at] yahoo dotcom
http://www.joeaudette.com
http://www.mojoportal.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list