By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,562 Members | 1,223 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,562 IT Pros & Developers. It's quick & easy.

Compiling on the fly or on a non Win platform

P: n/a
Hi All,

I am trying to deploy .aspx (asp.net) web pages to a web server
without having to compile them beforehand. Using the CodeBehind
approach this does not seem possible as the CodeBehind (.vb file in
this case) must be compiled into a class which is then inherited from
the .aspx. The reason for this is simple, the designers use Mac OSX
and we have set up a number of templates to make it easy for them to
create .net sites with functionality.

If we are unable to publish the CodeBehind pages and have them
compiled on the server when required, then it looks like we will have
to embed all code into the one page (.aspx), which I am not keen on.

An alternative would be to create the class files and bin directory
contents on the Mac and upload them, but that does not seem possible.
Mono is not yet complete as far as I know and it does not support OSX
anyway.

Any hints? I appreciate that a job could be scheduled on the server to
compile the pages as required, but this also is abit shoddy as we will
not be able to catch compile errors.

Thanks in advance

Ryan
Jul 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I didn't think it was possible to deploy an ASP.NET app
without compiling it since all of the code behind
the .aspx forms is compiled into an application dll.
-----Original Message-----
Hi All,

I am trying to deploy .aspx (asp.net) web pages to a web serverwithout having to compile them beforehand. Using the CodeBehindapproach this does not seem possible as the CodeBehind (.vb file inthis case) must be compiled into a class which is then inherited fromthe .aspx. The reason for this is simple, the designers use Mac OSXand we have set up a number of templates to make it easy for them tocreate .net sites with functionality.

If we are unable to publish the CodeBehind pages and have themcompiled on the server when required, then it looks like we will haveto embed all code into the one page (.aspx), which I am not keen on.
An alternative would be to create the class files and bin directorycontents on the Mac and upload them, but that does not seem possible.Mono is not yet complete as far as I know and it does not support OSXanyway.

Any hints? I appreciate that a job could be scheduled on the server tocompile the pages as required, but this also is abit shoddy as we willnot be able to catch compile errors.

Thanks in advance

Ryan
.

Jul 21 '05 #2

P: n/a
On 29 Oct 2003 03:15:32 -0800, Ryan O'Neill wrote:
I am trying to deploy .aspx (asp.net) web pages to a web server
without having to compile them beforehand. Using the CodeBehind


Look at the Page directive. There is an attribute called src that, I
believe, will cause the .vb (.cs, etc) to be compiled when the page is
first loaded (if not already current). But I don't think it gets compiled
every time.

Try asking the aspnet group for more information.
--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.
Jul 21 '05 #3

P: n/a
Thanks everybody,

SRC kind of works, but you also have to add an Inherits clause that
identifies the class in the code behind, without which the events do
not fire. It now works just as required, any new uploads are compiled
on the fly into the DLL and the existing ones are used as DLLs as
well.

Ryan

Chris Dunaway <dunawayc@_lunchmeat_sbcglobal.net> wrote in message news:<gr******************************@40tude.net> ...
On 29 Oct 2003 03:15:32 -0800, Ryan O'Neill wrote:
I am trying to deploy .aspx (asp.net) web pages to a web server
without having to compile them beforehand. Using the CodeBehind


Look at the Page directive. There is an attribute called src that, I
believe, will cause the .vb (.cs, etc) to be compiled when the page is
first loaded (if not already current). But I don't think it gets compiled
every time.

Try asking the aspnet group for more information.

Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.