Hide ASP . NET CODE

  • Thread starter Thread starter Nicholas Paldino [.NET/C# MVP]
  • Start date Start date
N

Nicholas Paldino [.NET/C# MVP]

Sharon,

Who are you trying to hide the ASP.NET code from? By default, the code
in the ASP pages is not served up by IIS (nor are the dlls that are compiled
by ASP.NET).

If you want to keep someone in particular from accessing the code on the
server (someone who has access to the box), then you can use NTFS
permissions to deny certain people to the areas of the server that are
sentitive.

Hope this helps.
 
hi
i'm installing ASP app on my client server ,
is there any option i can hide the ASP.Net code from him ?

one way is using library (dll) and minimize the server code
any other idea ?

thank you

Sharon
 
Sharon,

I think I understand what you mean now. The best way I think would be
to obfuscate the code. However, you are going to have to have some code in
your page to reference any DLL's that you distribute to your client, so I
don't know how much you will be able to hide.

Also, if you have code-behind pages, you have to distribute those as
well (AFAIK).

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Sharon said:
Hi Nicholas

I have a bit of info regarding Asp pages (I’m programming asp for the past
2 years)



ntfs is not helpful because the server box belongs to my client

And the core application (ASP.NET) will be exposed to my client.



I have 2 options

1 not selling the software to this client (or force him to use my web
server) – not an option ….

2 find elegant solution to hide the code from him.



Thank you

Sharon



Nicholas Paldino said:
Sharon,

Who are you trying to hide the ASP.NET code from? By default, the
code in the ASP pages is not served up by IIS (nor are the dlls that are
compiled by ASP.NET).

If you want to keep someone in particular from accessing the code on
the server (someone who has access to the box), then you can use NTFS
permissions to deny certain people to the areas of the server that are
sentitive.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Sharon said:
hi
i'm installing ASP app on my client server ,
is there any option i can hide the ASP.Net code from him ?

one way is using library (dll) and minimize the server code
any other idea ?

thank you

Sharon
 
Hi Nicholas

I have a bit of info regarding Asp pages (I’m programming asp for the past 2
years)



ntfs is not helpful because the server box belongs to my client

And the core application (ASP.NET) will be exposed to my client.



I have 2 options

1 not selling the software to this client (or force him to use my web
server) – not an option ….

2 find elegant solution to hide the code from him.



Thank you

Sharon



Nicholas Paldino said:
Sharon,

Who are you trying to hide the ASP.NET code from? By default, the code
in the ASP pages is not served up by IIS (nor are the dlls that are
compiled by ASP.NET).

If you want to keep someone in particular from accessing the code on
the server (someone who has access to the box), then you can use NTFS
permissions to deny certain people to the areas of the server that are
sentitive.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Sharon said:
hi
i'm installing ASP app on my client server ,
is there any option i can hide the ASP.Net code from him ?

one way is using library (dll) and minimize the server code
any other idea ?

thank you

Sharon
 
hi,

If you include a setup project and select the "primary output" from the
asp.net project the code behind files ( .aspx.cs ) will not be included.
hence if you put all the code in these files the client will not have any
source code.

of course he should also obfuscate the dll :)

what I'm not clear with in the OP is that he speak of an ASP app ( the above
is not applicable ) and later an ASP.NET ,

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


Nicholas Paldino said:
Sharon,

I think I understand what you mean now. The best way I think would be
to obfuscate the code. However, you are going to have to have some code
in your page to reference any DLL's that you distribute to your client, so
I don't know how much you will be able to hide.

Also, if you have code-behind pages, you have to distribute those as
well (AFAIK).

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Sharon said:
Hi Nicholas

I have a bit of info regarding Asp pages (I'm programming asp for the
past 2 years)



ntfs is not helpful because the server box belongs to my client

And the core application (ASP.NET) will be exposed to my client.



I have 2 options

1 not selling the software to this client (or force him to use my web
server) - not an option ..

2 find elegant solution to hide the code from him.



Thank you

Sharon



Nicholas Paldino said:
Sharon,

Who are you trying to hide the ASP.NET code from? By default, the
code in the ASP pages is not served up by IIS (nor are the dlls that are
compiled by ASP.NET).

If you want to keep someone in particular from accessing the code on
the server (someone who has access to the box), then you can use NTFS
permissions to deny certain people to the areas of the server that are
sentitive.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

hi
i'm installing ASP app on my client server ,
is there any option i can hide the ASP.Net code from him ?

one way is using library (dll) and minimize the server code
any other idea ?

thank you

Sharon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top