I'm having trouble understanding when the site is considered "pre-compiled". As I understand what I've read, if I use the Publish or Build Deployment Package options from within Visual Studio then it is pre-compiling, but if I just use something like xcopy, then it is not pre-compiled. Is that correct?
Is the Publish option in Visual Studio considered pre-compilation for ASP.net Web applications?
2k Views Asked by AudioBubble At
2
There are 2 best solutions below
0
Tim P.
On
It is "compiled" in the sense that you will have a MSIL DLL of your web code. However, you will still have to have the JIT compilation. You should use the NGEN utility if you are using .NET 2.0 or greater to prevent this warm-up time. Please note, NGEN is only useful to eliminating the first "startup" time of the application. It does make it harder to maintain because JIT'ed code can get out of sync with NGEN'd code. In my enterprise environment, we chose not to use NGEN because of those potential pitfalls.
See the links below:
Does it help to use NGEN for ASP.NET Applications?
Related Questions in ASP.NET
- Create an IIS web request activity light
- Writing/Overwriting to specific XML file from ASP.NET code behind
- What is the point of definnig Asp.net Intrinsic Objects In different places and what is the different betwen them?
- Deleting Orphans with Fluent NHibernate
- IOrderedEnumerable to vb.net IOrderedEnumerable Conversion
- Entity Framework Code First with Fluent API Concurrency `DbUpdateConcurrencyException` Not Raising
- Getting deeply embedded XML element values
- What is best way to check if any of the property of object is null or empty?
- NuGet - Given a type name or a DLL, how can I find the NuGet package?
- ASP-MVC Code-first migrations checkbox not active
- How do i add onclient click to my jquery button
- Jquery: Change contents of <select> tag dynamically
- Retrieving data from Oracle database
- ASP.NET: Fill Textbox field upon dropdownlist selection by user
- Why web API return 404 when deploy to IIS
Related Questions in COMPILATION
- gcc static library compilation
- AngularJS directive within ng-if won't run
- How do I compile QScintilla and Eric6 on Linux?
- Troubleshoot slow compilation
- C ignoring incrementation
- Compiling or using RtMidi on Windows 7
- within a project can I compile a module and interactively load the compiled module within ghci?
- C++ / compilation of a program fatal error: QtGui/qwidget.h: No such file or directory
- What do I have to consider when putting all code in the header?
- how do i compile a file with plugin stuff?
- Error when compiling simple LLVM example with Mingw
- Ant debug and ant release failed
- Compilation failure in JNativeHook
- error: C1083: Cannot open include file: 'ui_MainWindow.h': No such file or directory, Qt Creator
- Netbeans not using available memory during compilation
Related Questions in PUBLISH
- Incomplete sitecore publish ( presentation details missing )
- Publishing a website under IIS 7 and getting ��Y�o�8�}���x��� (odd characters)
- Publishing Excel as Webpage
- error of updating an C# web service application by accessing a URL from MS installer command "msiexec" in C# VS 2010
- Cordova + iOs Publishing Error ITMS90035 - Invalid Signature. Code object not signed at all
- How to deploy ASP.Net web application to IIS
- Azure : HOWTO/BEST-Practice : Publish WebApp with Webjob using blobs Q's to multiple destinations?
- Excel - publishing pivot charts to mhtml
- publish dll of single page visual studio
- Publishing Lightswitch localy
- Meteor publication and subscription not working
- Publish project for all users
- Microsoft Visual Studio fails to publish
- Visual Studio - Publish vs Publish Wizard
- Deploy incremental database using entity framework
Related Questions in PRECOMPILED
- Check if ascx control exist in precompiled asp.net website
- Pre Compiled Views in ASP.NET MVC & JS files
- Ruby on Rails: Ran rake assets:precompile and now both local and heroku deployment don't include bootstrap
- Adding library code to your project, or use precompiled binaries?
- IBM DB2 Obscure Error Code
- Advantage of C++20 modules over precompiled headers for compiling speed?
- Creating a program that will run before and after compilation in Eclipse
- Rails assets precompile mysterious error
- Preventing Heroku from using precompiled assets in development mode
- Modifying Source File Linked to by OBJ Files Crashes Application?
- Making changes to a precompiled website
- Precompiled CSS not found in Rails 3.1 production mode
- Import library to a precompiled ASP.NET website
- How to add extra functionality to a compiled and hosted website in ASP.NET?
- 'WebForm_PostBackOptions' is undefined Error on ASP.Net website
Related Questions in PRE-COMPILATION
- Maximum value for IIS .NET Compilation Batch Time-out
- sprockets - precompiling a standalone asset
- How do I get a TFS build to precompile a web application using a saved publish profile?
- How to set ISPP defines based on default Inno Setup variables?
- Are include guards considered defined after the #define directive or after the #endif directive
- Complexity of IDE error detection and auto-completion dependent upon language syntax?
- What do I specify as the "target folder" parameter to ClientBuildManager constructor?
- How to properly hardcode compiler's define flag (-D) with #define in c (arduino)
- Static files are served up in development but not in production
- Precompiling Handlebars.js templates in Windows
- calling precompiled module from another file
- Could not load type 'ASP.xxx' when referencing a precompiled master page
- HP Fortify scans get ASP Pre-Compilation error
- Rails only precompiles *some* files on production
- Rails assets precompilation removes functions from global scope (TypeError: object is not a function). How to get them back?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
ASP.NET WebSite projects have an option of xcopy deployment in which all files including the aspx, aspx.cs, ascx, ascx.cs etc are copied to the production web server as is. The ASP.NET runtime compiles the site when it receives the first request. If you check the folder C:\Windows\Microsoft.NET\Framework\v\Temporary ASP.NET Files, you could see the output. This obviously is very easy for deployment as all we have to do is to copy the files over to the web server. However, the first visitor pays the price in terms of when the site gets compiled for the first time. The publish option does this work before the deployment. It compiles the website project and produces assemblies that are ready to run. There is an option in the publish to leave the aspx files as is so that those can be modified. In both cases there are no .cs files as those have been compiled to the assemblies. Check Walkthrough: Publishing a Web Site for more details.
HTH