asp.net source code?

  • Thread starter Thread starter Jay
  • Start date Start date
after compilation I'm assuming you mean?
You may be able to view some process info but the exact code isn't easily retreived.
Are you trying to or trying to avoid someone else doing it to you?

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com


Is it possible to view the source code for .NET classes?

Thanks.
Jay
 
Hi Jay,

To a certain extent, yes.

Get a copy of Reflector, open the DLL and use the Disassembler.

http://www.aisto.com/roeder/dotnet/


"Reflector is a class browser for .NET components. It supports assembly and
namespace views, type and member search, XML documentation, call and callee
graphs, IL, Visual Basic, Delphi and C# disassembler, dependency trees, base
type and derived type hierarchies and resource viewers. "

Ken


Is it possible to view the source code for .NET classes?

Thanks.
Jay
 
You couldn't program with .Net if you couldn't view/edit the source code.
;-) If you're asking if you can view the source code inside a compiled DLL,
well, that depends. First, one would have to gain access to the file, which,
unless one has permission, is highly unlikely. Assuming that some hacker did
gain access to the DLL, well, they could view the MSIL code that is in the
DLL, yes. Of course, if you use an obfuscator when building your DLLs, that
isn't going to happen either. Finally, if you haven't compiled a DLL, and
are using scripted CodeBehind, again, someone would have to gain access to
these files in order to view the source code. And we're back to the same
issue we started with again. If you're concerned about Security, the bottom
line is this: How good would your server's security be if people could gain
access to the file system? Because that is the only way anyone could
possibly view the source code for any .Net class on the server.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

Is it possible to view the source code for .NET classes?

Thanks.
Jay
 
Isn't it better not to have the code behind files on the server, just the
..aspx and .dll files? In which case even if the hacker did gain access to
the file system they would still need to decompile the .dll files since
source files do not exist on the server.

If anyone could gain access to my server's file system, I would consider
that a MUCH bigger (read "EMERGENCY") security hole.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

Ryan Riddell said:
Isn't it better not to have the code behind files on the server, just the
..aspx and .dll files? In which case even if the hacker did gain access to
the file system they would still need to decompile the .dll files since
source files do not exist on the server.
 

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