Click here to Skip to main content
15,851,319 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi . i saw a website (http://www.torrent2exe.com[^])that converts torrent file to an Executable file to download without bitTorrent client App. how does it work & how can i do that in ASP.NET ?

i want to upload an XML file then process that file and generate an executable file base on that xml file in ASP . what should i do?

please help me

Thanks in Advanced

mohammad
Posted

1 solution

You can build the .NET source code dynamically and compile it on server side without problems
For that you can use one of CodeDomProvider classes example CSharpCodeProvider or VBCodeProvider fill the CompilerParameters structure and call CompileAssemblyFromSource
C#
_codeProvider.CompileAssemblyFromSource(compilerParams, sCode);

This may helps:
http://stackoverflow.com/questions/14338738/slow-dynamic-compilation-with-csharpcodeprovider[^]

Another way you can have signature in a exe file append that signature to exe and after append additional data (example torrent info) and once exe starting you open that exe for reading find the signature and after read you private information for your exe and use that inside your program.

Maxim.
 
Share this answer
 
Comments
MB Seifollahi 25-Mar-13 7:00am    
thanks ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900