locked
How to create exe file? RRS feed

  • Question

  • User441081753 posted

     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!!

    Tuesday, August 25, 2009 12:09 AM

Answers

All replies

  • User-1659704165 posted

    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

    Tuesday, August 25, 2009 12:55 AM
  • User712543661 posted

    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.

    Tuesday, August 25, 2009 12:57 AM
  • User1320101480 posted

    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?

    Tuesday, August 25, 2009 1:05 AM
  • User1559903870 posted

    http://www.codeproject.com/KB/dotnet/Win_App_Setup_Project.aspx

    Check this out....

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, August 25, 2009 1:32 AM
  • User1287880341 posted

    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!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, August 25, 2009 2:18 AM
  • User-979828334 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, August 25, 2009 3:04 AM
  • User441081753 posted

    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!!

    Wednesday, August 26, 2009 4:20 AM
  • User1287880341 posted

    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.

    Wednesday, August 26, 2009 4:25 AM
  • User581622694 posted

    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 .

    Wednesday, August 26, 2009 4:40 AM