Question:
vb.net produced .exe file contain the source code in palin text ?!!!?
mohamed aty
2010-09-04 12:25:24 UTC
i was writing a simple vb.net program using visual studio 2005 and after i published my application i mistakenly opened the exe file in notepad and for my surprise i was able to see parts of the source code , a big chunk of my source code was in clear text after the "This program cannot be run in DOS mode." part


and i am talking about the normal Notepad , i did not try to Disassemble the file or any thing

is this normal?? how can i avoid it???

please i need help with that , i tried to use Clickonce to sign my release , but that did not help at all
Four answers:
Azayles
2010-09-04 12:33:13 UTC
This is perfectly normal, and depends a lot on the programming language used to write programs. There's no way of stopping it unless you use a third party compressing "code safe" tool, but it doesn't necessarily mean your application can be readily decompiled.

Try compiling with the small code optimisation checked, see if that makes a difference. Also bear in mind that text in resource files that are embedded in the EXE may also be visible.
?
2016-06-01 10:30:40 UTC
You cannot recover Source code from an .EXE file. .EXE is compiled code, not source code, so it will likely look like gibberish in a text editor. Source code exists only in the compiler of whatever language the program is written in. The compiler then creates compiled code in the form of an .EXE file. Software developers do not provide copies of source code to the general public (because if they did, they'd go out of business). There are some Decompilers out there, but I'm not sure how well they work. You could almost certainly get assembly code out of it, but the extra step of getting fully decompiled source code, especially if it's a complex application, is very difficult.
?
2010-09-06 02:42:29 UTC
Hi, mohamed aty



There are 3 step to repair produced .exe error



If you got produced .exe error then there is a 94% chance that your computer has registry problems. You should fix it immediately. The following software is a professional fix produced .exe error, in addition, you can fix many common computer errors. I think you should try it, I believe that it can help you:



* Step 1 - Download a produced .exe error repair tool,install this error repair tool.

* Step 2 - Open the produced .exe error repair tool and scan you computer for free

* Step 3 - Then click the Repair All Button again and your done!



Here are the url of produced .exe error repair tool:http://www.RepairErrorToady.com/ttfix-produced_.exe_error-zz0001
Gardner
2010-09-04 12:32:37 UTC
Some portions of your code will be readable as plain text if you store it as plain text in your source code (i.e. a prompt "Enter your user id and password") no matter what. However your actual code "a=a+1" or "if b < c then d" will not be readable as plain text.



If it is then you opened something other than the .exe file in notepad.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...