473,396 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

asp.net source code?

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

Thanks.
Jay
Nov 18 '05 #1
6 1710
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
"Jay" <me@somewhere.com> wrote in message news:%2***************@TK2MSFTNGP11.phx.gbl...
Is it possible to view the source code for .NET classes?

Thanks.
Jay
Nov 18 '05 #2
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
"Jay" <me@somewhere.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Is it possible to view the source code for .NET classes?

Thanks.
Jay

Nov 18 '05 #3
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.

"Jay" <me@somewhere.com> wrote in message
news:#O*************@TK2MSFTNGP11.phx.gbl...
Is it possible to view the source code for .NET classes?

Thanks.
Jay
Nov 18 '05 #4
Check out Anikrino:

http://www.dotnetcoders.com/web/Arti...spx?article=40
It decompiles .NET assemblies to C# source code.

--
Hope this helps,
Bryant Hankins
Numinet Systems Inc.
http://www.numinet.com


"Jay" <me@somewhere.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Is it possible to view the source code for .NET classes?

Thanks.
Jay
Nov 18 '05 #5
> 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" <Ry*********@discussions.microsoft.com> wrote in message
news:35**********************************@microsof t.com...
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.
"Kevin Spencer" wrote:
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.

"Jay" <me@somewhere.com> wrote in message
news:#O*************@TK2MSFTNGP11.phx.gbl...
Is it possible to view the source code for .NET classes?

Thanks.
Jay

Nov 18 '05 #6
Jay
Thanks to all:

The Reflector browser is exactly what I need:

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

Thanks.
Jay
Nov 18 '05 #7

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

Similar topics

5
by: Tim Zhao | last post by:
I downloaded the PHP 5 source code from www.php.net web site. It is a tar compressed file. I used WinZip to unzip it. Now I got a whole bunch of files. But I do not know to read these files. Do...
9
by: FISH | last post by:
Ever have one of those days when you're not sure if it's you who's gone mad, or the rest of the world? I have an Open Source project on SourceForge for communication with YSMG - Yahoo's IM...
115
by: TheAd | last post by:
At this moment I use MsAccess and i can build about every databound application i want. Who knows about a serious open source alternative? Because Windows will be a client platform for some time, i...
4
by: kj | last post by:
I consider myself quite proficient in C and a few other programming languages, but I have never succeeded in understanding a largish program (such as zsh or ncurses) at the source level. ...
15
by: Fady Anwar | last post by:
Hi while browsing the net i noticed that there is sites publishing some software that claim that it can decompile .net applications i didn't bleave it in fact but after trying it i was surprised...
8
by: Alvo von Cossel I | last post by:
hey everybody, I have written a great browser but it is missing a feature (quite a lot actually, but forget about them for now). that feature just so happens to be the View > Source function....
7
by: Tina | last post by:
In 1.1 I used to use a WebControlLibrary to hold code I didn't want to expose when I distributed a component. The code would compile to a separate dll and could not be viewed when used in a vs.net...
66
by: Jon Skeet [C# MVP] | last post by:
I'm sure the net will be buzzing with this news fairly soon, but just in case anyone hasn't seen it yet: Microsoft are going to make the source code for the .NET framework (parts of it,...
4
by: Spizzat2 | last post by:
I'm trying to figure out a workaround to a minor annoyance that I'm coming up with while coding a site. I've got some keyboard shortcuts set up for the site via javascript, and when I press escape,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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,...

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.