473,465 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Compiling on the fly or on a non Win platform

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
3 1287
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
0
by: Martin Bless | last post by:
I need to access a MSSQL database (MS-Sql, not MySQL!)and would very much like to use mssql-0.09.tar.gz which is available from http://www.object-craft.com.au/projects/mssql/download.html ...
9
by: cppaddict | last post by:
Let's say you want to implement a Dictionary class, which contains a vector of DictionaryEntry. Assume each DictionaryEntry has two members, a word and a definition. Now assume your program...
9
by: Martin Petzold | last post by:
Hello, i have got a small problem while compiling my helloworld.c where i include a driver class (comm.c). i compile under winXP with minGW and have got this error: ...
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
5
by: skumar434 | last post by:
Hi everybody, I am faceing problem with strings. The code is given bellow .In this program i am tring to copy data from a file into structure . I am able to copy the data ,but the dat is...
2
by: metaperl | last post by:
I've tried both Python 2.4.4 and Python 2.5. I'm trying to build from source and install under a local directory Swarm since OpenSwarm requires builds of Postgres and Python under it's control. ...
2
by: Jan Althaus | last post by:
Mostly for testing reasons I'd like to see if it makes sense to chose the following approach for just-in-time compilation of shaders for a renderer: Seeing as the shaders themsefs consist mostly...
8
by: rays | last post by:
Hi, I am trying to port a C++ program which is supposed to be standards compliant. It works fine on Linux with GCC (4.x). But as I try to compile it on Windows, all hell breaks loose. I have been...
10
by: Tomás Ó hÉilidhe | last post by:
I'd post this on a gcc newsgroup but I'd be more productive talking to the wall. Anyway, let's say someone throws some source code at you for a particular program and says, "Just compile it, it...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.