[My asp.net learning process] is confused about the. dll file

Source: Internet
Author: User
asp.net just in writing a program when encountered a problem, originally just want to all the. cs files compiled into. dll. (because since development, have not tried to compile it, just know that there is one thing.) Maybe the company didn't make the request! (Frankly speaking, lazy people!) ^o^).

Well, back to the point, at first really do not know how to compile the law, only know CSC this command. Oh! When the first-> move line->cmd in the CSC/?, the system prompts what error! This is a strange thing! Then find, search C: csc.exe, finally found! Oh, ^o^! OK, now it's ready to compile!
Csc/target:library *.cs
OK, all have been compiled! Gao Xingzhen ing ...........

Then try to delete all the. cs files and see if you can run!
Oh! I can do that! Still in Gao Xingzhen ing ..........

Another whim, look at the newly compiled. dll file name to change, the system will appear what kind of error.
?? Here's the problem! The program is still operating normally! In the confusion of ing ...
This reminds me of whether IIS. So restart it. Run the program again.
?? Strange thing, still can run normally!
Then turn the program all to another directory to see!
Ha ha! Finally made a mistake! But look at the mistake! It's a little dizzy! The error message is this sentence:
<authentication mode= "Windows"/>
Well! That change it to: <authentication mode= "None"/> Try!
Or a mistake! Calm down and think! ..............................
Suddenly understand! No virtual directory was set up! (Oneself also pour!) )
OK, the virtual directory is complete, look can run no!
?? Strange things still! The program is still operating normally!
In confusion, simply delete the. dll file just compiled to see!
?? Strange things are still the same! The program is still running very normal!
What the hell is going on here? Is the system reading the generated temporary DLL? OK, then delete the temporary files under the. NET Framework and see! Enter: D:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary asp.net files deleted all. Then run the program to see! ^o^ think and should have no problem with it!
?? Comatose The program is still running normally!
Is confused, suddenly thought of vs.net this thing! So immediately went to the bin directory to find in the Vs.net compiled the. dll file! Okay, cut it out! Run again!
Ok! It's finally gone wrong!
That's when you come to understand! Originally vs.net in the program debugging to compile, it has all the backstage program all encapsulated! (Please don't fall down!) ^o^)
Try again to see what this file encapsulates! So I left all except. aspx for another delete run!
Ok! No problem at all! Happy ing ...........

All of a sudden, another whim! Remember that in Java and C + +, there are many decompile tools! Google search a search for C # decompile. Oh, wow! Got a pretty good tool. NET Reflector (written by foreigners). Download Address: http://www.aisto.com/roeder/dotnet
Play this tool! That's really bull! In addition to the entry methods, functions, variables, etc. can be read out, but also the source code back to compile!

Here we are! Wow, get a cry! Go and look for the shell tool! ^o^
========================
Finally attached:
To automatically load the CSC command in CMD, you can add this sentence to the Autoexec.bat file in the System packing directory:
@echo off
path=d:\winnt\microsoft.net\framework\v1.1.4322\;





Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.