467,915 Members | 1,779 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

Help Needed on ASP.Net Deployment

Hi Friends...

I have a simple query on building the Web Setup project.
When i build my setup, i see that the code behind the .aspx pages (.cs
code pages) are also included. And when i deploy the project i can see
that even those code files are also deployed on the machine and the
code with in those .cs files can be seen ( read-only format). But i
want the code to be hidden, either those code files should not be
deployed ot they should atleast be encrypted so that my code is safe
and no one can see the code.

Can anyone please help me in achieving this.

Steps i followed in building the Web Project Setup :

1. Add new project from the file menu to my existing project.
2. Selected the Setup and Deployment - Web Setup Project
3. On file system Editor -right click on web application folder ->
Add Project Output ->
ContentFiles selected.
4. In Properties Window of File System Editor i set the read only
properties
5. Build the Project.

These are the steps i followed.

Can anyone please help me, and let me know what are the changes i need
to do to protect my code from being included in the web set or
atleast be encrypted sp that no one can view the code of my .cs files.

My mail id ap****@gmail.com

Waiting for response

Thanks

Regards,
Govardhan

Aug 8 '07 #1
  • viewed: 1115
Share:
1 Reply
Hi,

to get rid of source files *.cs during deployment you have to precompile
your site. With this action you will achieve two goals, on your server you
will have just dll and *.aspx files (depends on options) and you will
increase performances of site while pages don't need to be compiled at
runtime now.
So, use from .NET command line aspnet_compiler command utility
(aspnet_compiler -? command will list you all options).

rgds,
dlm,
www.bypsoft.com
cross-database comparison and synchronisation tools
DBTYP.NET - see differences, for free.

"apondu" <ap****@gmail.comescribió en el mensaje
news:11*********************@x35g2000prf.googlegro ups.com...
Hi Friends...

I have a simple query on building the Web Setup project.
When i build my setup, i see that the code behind the .aspx pages (.cs
code pages) are also included. And when i deploy the project i can see
that even those code files are also deployed on the machine and the
code with in those .cs files can be seen ( read-only format). But i
want the code to be hidden, either those code files should not be
deployed ot they should atleast be encrypted so that my code is safe
and no one can see the code.

Can anyone please help me in achieving this.

Steps i followed in building the Web Project Setup :

1. Add new project from the file menu to my existing project.
2. Selected the Setup and Deployment - Web Setup Project
3. On file system Editor -right click on web application folder ->
Add Project Output ->
ContentFiles selected.
4. In Properties Window of File System Editor i set the read only
properties
5. Build the Project.

These are the steps i followed.

Can anyone please help me, and let me know what are the changes i need
to do to protect my code from being included in the web set or
atleast be encrypted sp that no one can view the code of my .cs files.

My mail id ap****@gmail.com

Waiting for response

Thanks

Regards,
Govardhan

Aug 16 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Andrew S. Giles | last post: by
2 posts views Thread by msnews.microsoft.com | last post: by
14 posts views Thread by Adrian Parker | last post: by
3 posts views Thread by Kathy A. Hertzog | last post: by
reply views Thread by cashdeskmac | last post: by
7 posts views Thread by Altemir | last post: by
3 posts views Thread by Patrick | last post: by
14 posts views Thread by Jeff | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.