473,396 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1286
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.