473,407 Members | 2,306 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,407 software developers and data experts.

"Compiling" an ASP.NET 2.0 Web Site?

It seems like, the way ASP.NET 2.0 works, I should be able to build a
pre-compiled version of my site so that none of the code of the site would be
accessible by the people for whom I developed it.

If I've built a site in VS 2005 that has lots of ASPX files, a few ASCX
files, both with .CS code-behinds, and a bunch of class files in the APP_CODE
directory, is there a way to "build" the site and obscure it's files and
parts as much as possible?

My primary desire is to pre-compile all of the .CS code-behind files and
APP_CODE class files. But I'd even like it if the ASPX files themselves were
somehow pulled in. From what I've read, the objects that are JIT compiled in
ASP.NET do actually include the body of the ASPX HTML as well, right? So is
there a way to "deploy" the site without even including the ASPX text files?

Alex
Jun 30 '06 #1
2 1153
What tool are you using to develop? If it's VS.Net 2005 then you can use the
publish site feature and select only the items needed to run the site (ie:
maintain an editable version and keep the ASPX pages). You can also set it
to be non-editable, which means everything is compiled into a dll, including
the html though I have never used this facility.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Alex Maghen" <Al********@newsgroup.nospam> wrote in message
news:5C**********************************@microsof t.com...
It seems like, the way ASP.NET 2.0 works, I should be able to build a
pre-compiled version of my site so that none of the code of the site would
be
accessible by the people for whom I developed it.

If I've built a site in VS 2005 that has lots of ASPX files, a few ASCX
files, both with .CS code-behinds, and a bunch of class files in the
APP_CODE
directory, is there a way to "build" the site and obscure it's files and
parts as much as possible?

My primary desire is to pre-compile all of the .CS code-behind files and
APP_CODE class files. But I'd even like it if the ASPX files themselves
were
somehow pulled in. From what I've read, the objects that are JIT compiled
in
ASP.NET do actually include the body of the ASPX HTML as well, right? So
is
there a way to "deploy" the site without even including the ASPX text
files?

Alex

Jun 30 '06 #2
Hi Alex,

You want the Web Application Projects add-on:

http://msdn.microsoft.com/asp.net/re...p/default.aspx

"Web Application Projects provide a companion web project model that can be
used as an alternative to the built-in Web Site Project in Visual Studio
2005."

Also, use an obfuscator to deter reverse engineering of your code.

Ken
Microsoft MVP [ASP.NET]

"Alex Maghen" <Al********@newsgroup.nospam> wrote in message
news:5C**********************************@microsof t.com...
It seems like, the way ASP.NET 2.0 works, I should be able to build a
pre-compiled version of my site so that none of the code of the site would
be
accessible by the people for whom I developed it.

If I've built a site in VS 2005 that has lots of ASPX files, a few ASCX
files, both with .CS code-behinds, and a bunch of class files in the
APP_CODE
directory, is there a way to "build" the site and obscure it's files and
parts as much as possible?

My primary desire is to pre-compile all of the .CS code-behind files and
APP_CODE class files. But I'd even like it if the ASPX files themselves
were
somehow pulled in. From what I've read, the objects that are JIT compiled
in
ASP.NET do actually include the body of the ASPX HTML as well, right? So
is
there a way to "deploy" the site without even including the ASPX text
files?

Alex

Jun 30 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Luc Saffre | last post by:
Hello, I had a strange problem when freezing (using either py2exe or McMillan installer) a script that imports reportlab (which imports PIL (which imports FixTk))). - Python 2.3.3c (also with...
13
by: DarkSpy | last post by:
many c++ compilers including "gcc" have not implemented the "export" keyword, but the comeau compilers made it (just i knew). i want to know about: is it too difficult to implement "export"...
7
by: mescaline | last post by:
Hi, Suppose a_file.cpp contains a function a_function() Now to include it in main_file.cpp I just do #include "a_file.cpp" and I'm all set. i recently came across this seemingly roundabout...
3
by: H. S. | last post by:
Hi, I am trying to compile these set of C++ files and trying out class inheritence and function pointers. Can anybody shed some light why my compiler is not compiling them and where I am going...
15
by: BobTheDataBaseBoy | last post by:
just for grins, let's have a show of hands: all those who think it's silly to not have a switch for stored procedures written on 8.2 to compile through a C compiler. ^ we can't force all...
19
by: Martin Oddman | last post by:
Hi, I have a compiling problem. Please take a look at the code below. I have an application that is built upon three tiers: one data tier (Foo.DataManager), one business tier (Foo.Kernel) and...
3
by: Steve Franks | last post by:
I'm using Visual Studio 2005 RC and cannot figure out how to produce a "release" build. Am I doing something wrong? I'm wondering if perhaps MS locked out the ability to produce a release build...
2
by: fartknuckle | last post by:
When I try to build and install python from source It configures and makes fine but upon 'make install' I always get to this point: Listing /usr/local/lib/python2.5/xml/sax ... Compiling...
15
by: Kurda Yon | last post by:
Hi, I try to "build" and "install" pysqlite? After I type "python setup.py build" I get a lot of error messages? The first error is "src/ connection.h:33:21: error: sqlite3.h: No such file or...
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: 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:
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...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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...

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.