How to create exe file?

Last post 08-26-2009 4:40 AM by setahamid. 9 replies.

Sort Posts:

  • How to create exe file?

    08-25-2009, 12:09 AM
    • Member
      1 point Member
    • Airborne
    • Member since 07-29-2009, 3:33 PM
    • Posts 4

     Hi All!!

    I want to create exe file of Asp.Net C# web project so that i can deploy and run it on any other computer. Please guide me how can i do that?

    Please guide me!!

  • Re: How to create exe file?

    08-25-2009, 12:55 AM
    • All-Star
      27,319 point All-Star
    • qwe123kids
    • Member since 03-27-2008, 5:49 AM
    • Mumbai
    • Posts 4,615

    Hi,

    They may have used window or Conole .. u use web..

    Chk for C#Complier
    http://www.codeproject.com/KB/cs/cscompiler.aspx

    http://support.microsoft.com/kb/304655

    Chk the above link

    Thanks
    Avinash Tiwari

    Remember to click “Mark as Answer” on the post, if it helps you.

    MY Blog

    Hacking Inside .net exe
  • Re: How to create exe file?

    08-25-2009, 12:57 AM
    • Participant
      1,784 point Participant
    • vdogra77
    • Member since 05-14-2009, 6:32 AM
    • INDIA
    • Posts 253

    The pre-compilation tool of ASP.Net 2.0 does this and also improves upon the start-up time of the application. With pre-compilation you will observe that there are no files with visible source code. Among the source code only .aspx pages exist physically, which are also without any sort of code (including html). If you happen to open anyone of them in notepad, you will see this text, "This is a marker file generated by the pre-compilation tool, and should not be deleted!” In the following information this has been explained:

    1. Open the command prompt and type following command.

    aspnet_compiler -p "C:\MyApplication\WebSite1"  -fixednames -u -f C:\MyStaging

     

    In this command there are few important switches which need explanation:

    i)        Aspnet_compiler : This is .net framework utility to pre-compile the application.

    ii)       -p : This switch specifies the physical path of the application. In our case this is specified as, C:\MyApplication\WebSite1

    iii)     – fixednames: Pre-compilation generates unique filename for certain assemblies  in the bin folder, and this may change on every pre-compilation. This could mean that there may be extra files on server if you keep copying the pre-compiled set of files from the development environment. To avoid this, use switch –fixednames to generate same assemble names on every pre-compilation.

    iv)     –u: At times you want that the presentation files (such as aspx,ascx,ashx,MASTER), which contains the html code, remains modifiable so that necessary cosmetic changes may be carried out whenever needed. –u switch helps achieve the same. You can deploy these files to the server and modify them without causing an error, because the ASP.NET runtime will dynamically parse and compile these files.

    On the contrary, in absence of this switch, these files will not contain any content, and if anyone happens to open them, following text will be found "This is a marker file generated by the pre-compilation tool, and should not be deleted!”

    v)      -f: This switch will force the compile to overwrite the target directory.

    A few other features of the aspnet_compiler include the –d switch, which tells the compiler to generate debugging symbols for the application. Debugging symbols are required if you need line numbers in the stack traces of exceptions. There are also options to give compiled assemblies a strong name, and allow partially trusted callers.

    In addition, you can pre-compile an application directly from Visual Studio 2005 using the Build -> Publish menu item. The Publish Web Site dialog will let you select an http, ftp, or local file system destination as the target. However, the variety of switches are not available here, and recommendation is to go for this utility.

    ---------------------------------------------------------------------------------------------------------------
    If this helps, 'Mark' this as answer so that post appears as closed.
  • Re: How to create exe file?

    08-25-2009, 1:05 AM

    Hi,

    I didn't get you, why would you have an exe for a web project?

    Is it that , you want to run that exe and get that website running under the system's IIS?

    Saurabh Nijhawan(B.Tech. CSE,GGSIPU,New Delhi)
    Application Architect, Eminent Solutions, New Delhi.
    Freelancer | Teacher
    Remember to click "Mark as Answer" on the post, if it helped you.
    ASP.NET Weblog
    http://www.saurabhnijhawan.com
    Learning Made Easy


  • Re: How to create exe file?

    08-25-2009, 1:32 AM
    Answer
    • Member
      742 point Member
    • Anandkbs
    • Member since 11-13-2008, 2:36 PM
    • Bangalore
    • Posts 150
    If you mark as "Answer" then others can use this answer as a reference.

    Any suggestions,
  • Re: How to create exe file?

    08-25-2009, 2:18 AM
    Answer
    • Contributor
      2,136 point Contributor
    • oidldb
    • Member since 05-27-2009, 9:46 AM
    • Romania
    • Posts 400

    Hi,

    I think you need to create a setup project for your web application.

    Here's how: http://www.dotnetforce.com/Content.aspx?t=a&n=214

    Hope this helps!

    Thank you and regards,
    Dani

    P.S. Please mark as answer if this helps.
  • Re: How to create exe file?

    08-25-2009, 3:04 AM
    Answer
    • Member
      89 point Member
    • RaoYasir
    • Member since 07-15-2009, 5:41 AM
    • Posts 34

    Hi

    If you want to create a just simple installer package for web setup then just follow the instruction given at 

    Easy Web Deployement

    if you want to use some advance changes then follow the following link

    Advance Setting for Deployements


    Please Mark as Answer if you found this post helpfull

    Regards,

    Yasir

    tossdown.com
  • Re: How to create exe file?

    08-26-2009, 4:20 AM
    • Member
      1 point Member
    • Airborne
    • Member since 07-29-2009, 3:33 PM
    • Posts 4

    1. I have created a C# web application.

    2. I want to create exe file of ceated web project.

    3. Then write that exe file on cd and hand over to my customer.

    4. Now wat will be the requirements to run that exe file on other computer if asp.net is not installed on other computer?

    Please guide me!!

  • Re: How to create exe file?

    08-26-2009, 4:25 AM
    • Contributor
      2,136 point Contributor
    • oidldb
    • Member since 05-27-2009, 9:46 AM
    • Romania
    • Posts 400

    Hi,

    Create the web application setup project and make sure to include all the libraries that might not exist on your client's machine.

    You have some links that will help you create the web application setup project posted.

    Thank you and regards,
    Dani

    P.S. Please mark as answer if this helps.
  • Re: How to create exe file?

    08-26-2009, 4:40 AM
    • Member
      256 point Member
    • setahamid
    • Member since 07-13-2007, 6:18 PM
    • Ahmedabad
    • Posts 44

    Go through following url .

    http://www.15seconds.com/Issue/030806.htm
    http://www.beansoftware.com/ASP.NET-Tutorials/Deploy-ASP.NET.aspx

    May this will help u .

    Regards
    Hamid.

    Remember to click “Mark as Answer” on the post, if it helps you.
Page 1 of 1 (10 items)