473,657 Members | 2,579 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Precompiling or Securing Code

Hello,

I have an ASP.Net 1.1 application that I need to move to a production server
on a customer's network. I do not want the customer to have access to any
code.

It looks like VS2003 does not allow for precompiling code like you can do
with VS2005 and 2.0. Is this correct? If so, is there any way to encrypt or
hide the code so that my customer cannot access it?

Thanks in advance for your reply.

--
ArchSG
Sep 28 '06 #1
3 1490
ASP.NET 1.1 is compiled, ASP.NET 2.0 is not, unless you precompile.

The code is byte code, however, which means you have to obfuscate the DLL to
have protection. THe more code you pull into libraries, the better off you
are.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"archsg" <ar****@communi ty.nospamwrote in message
news:F9******** *************** ***********@mic rosoft.com...
Hello,

I have an ASP.Net 1.1 application that I need to move to a production
server
on a customer's network. I do not want the customer to have access to any
code.

It looks like VS2003 does not allow for precompiling code like you can do
with VS2005 and 2.0. Is this correct? If so, is there any way to encrypt
or
hide the code so that my customer cannot access it?

Thanks in advance for your reply.

--
ArchSG

Sep 28 '06 #2
Thanks for Gregory's input.

Hi ArchSG,

Yes, you are right. As for ASP.NET 1.1/VS 2003, it does not support
complete precompilation (compile both aspx and code-behind into assembly).
For ASP.NET 1.1/VS 2003 application, we can only precompile all the
codebehind classes or other separate classes in the same project into a
main assembly. However, those .aspx and .ascx template will still need to
be dynamically compiled at runtime.

Therefore, the recommendation for ASP.NET 1.1 web applications which do not
want to expose code logic or Intelligent Property, is try best to avoid
putting any server-side code in ASPX template file. Only control markup and
databinding expression should be existing in aspx/ascx template.

Please feel free to post here if you have any further questions for
anything else we can help.
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Sep 29 '06 #3
Thanks to both of you for your responses. You've answered my question!

--
ArchSG
"Steven Cheng[MSFT]" wrote:
Thanks for Gregory's input.

Hi ArchSG,

Yes, you are right. As for ASP.NET 1.1/VS 2003, it does not support
complete precompilation (compile both aspx and code-behind into assembly).
For ASP.NET 1.1/VS 2003 application, we can only precompile all the
codebehind classes or other separate classes in the same project into a
main assembly. However, those .aspx and .ascx template will still need to
be dynamically compiled at runtime.

Therefore, the recommendation for ASP.NET 1.1 web applications which do not
want to expose code logic or Intelligent Property, is try best to avoid
putting any server-side code in ASPX template file. Only control markup and
databinding expression should be existing in aspx/ascx template.

Please feel free to post here if you have any further questions for
anything else we can help.
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Sep 29 '06 #4

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

Similar topics

17
4756
by: David McNab | last post by:
Hi, I'm writing a web app framework which stores pickles in client cookies. The obvious security risk is that some 5cr1p7 X1ddi35 will inevitably try tampering with the cookie and malforming it in an attempt to get the server-side python code to run arbitrary code, or something similarly undesirable. To protect against this, I've subclassed pickle.Unpickler, and added
1
2777
by: amit | last post by:
I am trying to compile the sample program genwin.sqc, using nsqlprep which is used to precompile embedded sql in C. I am getting weird errors and that is because windows.h is included in the genwin.sqc file. I am using Setting the lib and include path: set INCLUDE=C:\Program Files\Microsoft SQL Server\80\Tools\DevTools\include;C:\Program Files\Microsoft SQL Server\80\Tools\DevTools\Samples\esqlc;%include%
2
1604
by: James | last post by:
What's the best way of securing online databases and web services? At present I am using a database password, which of course is not hard-coded into the web service, but this means re-submitting it with every function call from my windows client. Any alternatives?
11
3424
by: Wm. Scott Miller | last post by:
Hello all! We are building applications here and have hashing algorithms to secure secrets (e.g passwords) by producing one way hashes. Now, I've read alot and I've followed most of the advice that made sense. One comment I've seen alot about is "securing the hashing routine" but no-one explains how to accomplish this. So how do I secure my hashing routine? Do I use code access security, role based security, ACLs, etc or combination?...
1
1282
by: romy | last post by:
Hi I'm about to turn a public website into a secure members only website (after paying registration fee). I assume all I need for that purpose is to save users' information in an XML file and use form authentication method in web.config to prevent from anonymous users to enter. Programmatically speaking, I assume I'll need:
1
3390
by: Mark Goosen | last post by:
Hi ive installed wse 2.0 SP3 and was running throught the demo downlaoded on the Securing the Username Token with WSE 2.0 page the Securing the Username Token with WSE 2.0. Im spose to change the access type for "SYSTEM and "ASPNET" to "READ" for the certificate in the certificate tool by clicking on the "view private key file properties.." button however i only have a general and summary tab. NO security tab. Is there a alternative way...
3
1423
by: Marty | last post by:
Hi, My main application is calling a couple of dll assembly that we made. I want to secure those dll assembly so they can't be used by a third party. I did a couple of test with on both side, caller and dll assembly, but does not succeed to secure the assembly. (myKey.snk is gnerated with 'sn -k myKey.snk')
4
1382
by: KJ | last post by:
Hello All, I have to secure my first real B2B web service. Could you please provide some guidance as to which method of security I should use. One caveat is that we will not be using SSL on the server side as per the networking department. Windows authentication is also probably not an option, as this web service will be interacting between two separately located companies. I have read a little bit about passing credentials in SOAP...
10
3356
by: Les Desser | last post by:
In article <fcebdacd-2bd8-4d07-93a8-8b69d3452f3e@s50g2000hsb.googlegroups.com>, The Frog <Mr.Frog.to.you@googlemail.comMon, 14 Apr 2008 00:45:10 writes Not sure if I quite follow that. 1. Data encrypted by AES key 2. AES key encrypted with Asymmetric public key (?)
0
8823
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...
0
8730
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7321
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6163
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4151
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...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1607
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.