Deployment of a C# application

View: New views
2 Messages — Rating Filter:   Alert me  

Deployment of a C# application

by theallan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello all,

I wonder if anyone can offer a little advice to me for how I can deploy a C# application that I've put together? Basically what the program does is to take a file and parse it, and I would like to deploy it on an IIS web-server, or Apache with the Mono module. On Unix what I would do is to have the program as an interpreter, and at the top of the file I want parsed (marked as executable) I would have '#!/path/to/prog'. Is there any way I can do this with my Mono compiled exe file?

I know that it is possible to set up a CGI application to do this in IIS, but apparently you need to change the user that IIS is running under to access environment variable, which seems nuts.

Many thanks,
Allan

Re: Deployment of a C# application

by Chris Howie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Aug 4, 2008 at 3:32 AM, theallan <allan.jardine@...> wrote:
> Hello all,
>
> I wonder if anyone can offer a little advice to me for how I can deploy a C#
> application that I've put together? Basically what the program does is to
> take a file and parse it, and I would like to deploy it on an IIS
> web-server, or Apache with the Mono module. On Unix what I would do is to
> have the program as an interpreter, and at the top of the file I want parsed
> (marked as executable) I would have '#!/path/to/prog'. Is there any way I
> can do this with my Mono compiled exe file?

If your application is a proper CGI application (which means that you
can't use ASP.NET as far as I know, since it's not remotely close to
CGI at all) then you can do so by putting this at the top of your
scripts:

#!/usr/bin/mono /path/to/prog

Adjusting the path to Mono as necessary.  If your application uses
ASP.NET then there is no straightforward way to accomplish this.

--
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
_______________________________________________
Mono-list maillist  -  Mono-list@...
http://lists.ximian.com/mailman/listinfo/mono-list