Net web application. Net applications to avoid the initial wait time. Instructions provided describe how to use the tool with respect to web applications created using the Web Manager. The following procedure is for the first case since when using the manager the applications are typically deployed in the web server. Technical Support. Esri Support app 4.
Take advantage of our 8 new features with this new version. Learn more. Close and Don't Remind. Back to results.
Print Share. Content feedback is currently offline for maintenance. To precompile an ASP. Right-click the project and select Publish. Enter a profile name and click OK. In the Connection page, from the Publish method dropdown menu, select File System.
In shared hosting environments this level of access is not permitted. NET 2. Instead of compiling the pages in the website to the Temporary ASP. NET Files folder, precompilation for deployment compiles the pages to a directory of your choosing and in a format that can be deployed to the production environment. There are two flavors of precompilation for deployment that we explore in this tutorial: precompilation with an updatable user interface, and precompilation with a non-updatable user interface.
Precompilation with an updatable user interface leaves the declarative markup in the. Precompilation with a non-updatable user interface generates. The best way to understand precompilation for deployment is to see an example in action. The ASP. This section examines using the tool from within Visual Studio; the "Precompiling from the Command Line" section looks at running the compiler tool from the command line.
This launches the Publish Web Site dialog box see Figure 1 , where you can specify the target location, whether or not the precompiled site's user interface is updatable, and other compiler tool options.
The target location can be a remote web server or FTP server, but for now choose a folder on your computer's hard drive. Because we want to precompile the site with an updatable user interface, leave the "Allow this precompiled site to be updatable" checkbox checked and click OK. Figure 1 : The ASP. After precompiling the website, navigate to the target location you entered in the Publish Web Site dialog box. Take a moment to compare the contents of this folder with the contents of your website.
Figure 2 shows the Book Reviews website folder. Note that it contains both. Also, note that the Bin directory includes only one file, Elmah. Figure 2 : The Project Directory Contains. Figure 3 shows the target location folder whose contents were created by the ASP. NET compilation tool. This folder does not contain any code-behind files. Moreover, this folder's Bin directory includes several assemblies and two.
Unlike explicit compilation in WAPs, the precompilation for deployment process does not create one assembly for the entire site. Instead, it batches together several pages into each assembly.
It also compiles the Global. The files that hold the declarative markup for ASP. NET web pages, User Controls, and master pages. Likewise, the Web. For a more formal description of how the compilation tool handles various file types, refer to File Handling During ASP. NET Precompilation. You can instruct the compilation tool to create one assembly per ASP. Having each ASP. NET page compiled into its own assembly allows for more fine-grained control over deployment.
For example, if you updated a single ASP. NET web page and needed to deploy that change, you need only deploy that page's. NET Compilation Tool for more information. The target location directory also contains a file that was not part of the precompiled web project, namely PrecompiledApp. This file informs the ASP. NET runtime that the application was precompiled and whether it was precompiled with an updatable or noon-updatable UI.
Finally, take a moment to open one of the. When precompiling for deployment with an updatable user interface, the ASP. NET pages in the target location directory contain the exact same markup as the corresponding files in the website. NET compiler tool can also be used to precompile a site for deployment with a non-updatable UI. Precompiling the site with a non-updatable UI works much like precompiling with an updatable UI, the key difference being that the ASP.
NET pages, User Controls, and master pages in the target directory are stripped of their markup. To precompile a website for deployment with a non-updatable UI, choose the Publish Web Site option from the Build menu, but uncheck the "Allow this precompiled site to be updatable" option see Figure 4.
Figure 5 shows the target location folder after precompiling with a non-updatable user interface. Compare Figure 3 to Figure 5. While the two folders may look identical, note that the non-updatable UI folder lacks the master page, Site. And while Figure 5 includes the various ASP.
NET pages, if you view the contents of these files you'll see that they've been stripped of their declarative markup and replaced with the placeholder text: "This is a marker file generated by the precompilation tool, and should not be deleted! The Bin folders in Figures 3 and 5 differ more substantially.
0コメント