473,785 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"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 1168
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********@new sgroup.nospam> wrote in message
news:5C******** *************** ***********@mic rosoft.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********@new sgroup.nospam> wrote in message
news:5C******** *************** ***********@mic rosoft.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
3949
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 Python 2.3) - PIL 1.1.4 - Installer or py2exe : latest versions.
13
29524
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" keyword? if it is, i know the history that is without "export" keyword of C++ compilers with five years (sorry about my poor english :-) ), in five years still have no some idea to implement it ? my project and many C++ programmers need this important...
7
3552
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 way to do this in 3 steps: 1. Add in main_file.cpp
3
2478
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 wrong? I am using g++ (GCC) 3.3.5 on a Debian Sarge system. The compiler complains: //**************************** //**************************** Compiler output starts *********** cd /home/red/tmp/testprogs/
15
1317
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 the clients to move at once to 8.2. nor can any other VAR. it can't be all that difficult, can it?
19
3581
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 one web presentation tier (Foo.WebFiles). The data tier shall only be accessible thru the business tier so I do NOT want a reference to the data tier in the presentation tier. In the business tier I have a class with the name CategoryItem that...
3
2896
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 when using the RC since it does not have a go-live license? Or maybe I'm just doing something wrong. I do not want to go live with a release build. Rather I just want to test locally to see if there is a performance difference and also to...
2
17915
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 /usr/local/lib/python2.5/xml/sax/__init__.py ... Compiling /usr/local/lib/python2.5/xml/sax/_exceptions.py ... Compiling /usr/local/lib/python2.5/xml/sax/expatreader.py ...
15
14785
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 directory". So, I assume that the absence of the "sqlite3.h" is the origin of the problem. I found on the web, that this file should be either in "/usr/local/ include" or in "/usr/local/lib". I check this directories and I really
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10324
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10090
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6739
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5380
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4050
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 we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.