Precompile ASP.Net web application: ESRI Tech Article


Compiling takes a long time the first time when using ArcGIS Server Manager or the ArcIMS Web Manager if you have created ASP.Net web application.Microsoft .NET Framework provides a command line tool to precompile ASP.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.


There are two options to precompile:a. Provide the virtual directory, assuming that the application has already been deployed in IIS.b. In the case that the web application is not yet deployed or if not using IIS as web server, provide the physical path to the web application.

The following procedure is for the first case since when using the manager the applications are typically deployed in the web server.

  1. Start a command prompt and navigate to the .NET Framework directory. For example:
    cd "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727"
  2. Run the following command:
    aspnet_compiler -v /USABaseMap

 There are several useful switches that can be specified. See the links in the Related Information section below for further reference.The above example precompiles for a web application called ‘USABaseMap’ which is created using ArcGIS Server Manager at the IIS Webserver root directory, typically located at ‘c:\inetpub\wwwroot’.

Related Information


Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: