Click here to Skip to main content
15,905,232 members
Home / Discussions / C#
   

C#

 
AnswerRe: Consume a webservice in a WebApplicationnew Pin
enginço18-Jul-08 0:35
enginço18-Jul-08 0:35 
QuestionRe: Consume a webservice in a WebApplicationnew Pin
AS@1318-Jul-08 0:56
AS@1318-Jul-08 0:56 
QuestionUse NGEN with WebDeployment Pin
Merlin Tintin17-Jul-08 23:06
Merlin Tintin17-Jul-08 23:06 
AnswerRe: Use NGEN with WebDeployment Pin
Scott Dorman18-Jul-08 1:09
professionalScott Dorman18-Jul-08 1:09 
AnswerRe: Use NGEN with WebDeployment Pin
Simon P Stevens18-Jul-08 2:00
Simon P Stevens18-Jul-08 2:00 
GeneralRe: Use NGEN with WebDeployment Pin
Merlin Tintin18-Jul-08 4:17
Merlin Tintin18-Jul-08 4:17 
GeneralRe: Use NGEN with WebDeployment Pin
Daniel Grunwald18-Jul-08 6:06
Daniel Grunwald18-Jul-08 6:06 
GeneralRe: Use NGEN with WebDeployment Pin
Simon P Stevens18-Jul-08 7:59
Simon P Stevens18-Jul-08 7:59 
Ahh, I see. Interesting Idea, but unfortunately that won't work.

NGEN takes your IL assembly and compiles it to processor specific machine code, and places this machine code in a native image cache on the PC that NGEN was run on. You can't then copy this machine code onto another PC. You also can't delete the original IL assembly as that will also delete the machine code from the native image cache.

What happens when you run your app then is the CLR first checks the native image cache to see if it's already been compiles, if it finds stuff in the cache it uses that.

running NGEN on an assembly gives you no extra protection from disassembly. It can still be disassembled and reflected on. All the meta data included with a normal assembly is still present.

If you are concerned with clients seeing your code your only real option is an obfuscater.

(Signing the assembly does not prevent it being viewed, it only means other people can identify it as your work. Other people can even still change it, but if they change 1 assembly, they have to recompile them all as signing with a strong name ensures other assemblies will only call the original one they were referenced to.)

Ultimately, C# (even with an obfuscater) is not 100% foolproof at hiding code. If you have critical proprietary algorithms that must be hidden, most people would recommend implementing the critical bits in unmanaged code.

Simon

QuestionAbout Event Handlig - KeyDown Pin
selcuks17-Jul-08 23:00
selcuks17-Jul-08 23:00 
AnswerRe: About Event Handlig - KeyDown Pin
enginço17-Jul-08 23:50
enginço17-Jul-08 23:50 
AnswerRe: About Event Handlig - KeyDown Pin
Mbah Dhaim18-Jul-08 0:11
Mbah Dhaim18-Jul-08 0:11 
GeneralRe: About Event Handlig - KeyDown Pin
selcuks18-Jul-08 0:23
selcuks18-Jul-08 0:23 
GeneralRe: About Event Handlig - KeyDown Pin
enginço18-Jul-08 0:50
enginço18-Jul-08 0:50 
GeneralRe: About Event Handlig - KeyDown Pin
selcuks18-Jul-08 1:04
selcuks18-Jul-08 1:04 
GeneralRe: About Event Handlig - KeyDown Pin
enginço18-Jul-08 1:22
enginço18-Jul-08 1:22 
GeneralRe: About Event Handlig - KeyDown Pin
selcuks18-Jul-08 2:00
selcuks18-Jul-08 2:00 
GeneralRe: About Event Handlig - KeyDown Pin
enginço18-Jul-08 2:26
enginço18-Jul-08 2:26 
QuestionHttp 502 and 503 errors Pin
George_George17-Jul-08 21:38
George_George17-Jul-08 21:38 
AnswerRe: Http 502 and 503 errors Pin
N a v a n e e t h17-Jul-08 22:29
N a v a n e e t h17-Jul-08 22:29 
GeneralRe: Http 502 and 503 errors Pin
George_George17-Jul-08 22:36
George_George17-Jul-08 22:36 
GeneralRe: Http 502 and 503 errors Pin
N a v a n e e t h17-Jul-08 23:41
N a v a n e e t h17-Jul-08 23:41 
GeneralRe: Http 502 and 503 errors Pin
George_George17-Jul-08 23:45
George_George17-Jul-08 23:45 
GeneralRe: Http 502 and 503 errors Pin
led mike18-Jul-08 8:59
led mike18-Jul-08 8:59 
GeneralRe: Http 502 and 503 errors Pin
George_George20-Jul-08 16:09
George_George20-Jul-08 16:09 
GeneralRe: Http 502 and 503 errors Pin
N a v a n e e t h18-Jul-08 17:10
N a v a n e e t h18-Jul-08 17:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.