How to precompile a web application (not a web site) in a 2005 deployment project

I have a vs2005 vb.net based web application with some 300 aspx pages, one asmx page, and 6 standalone executables, one of which is a service. I already have a deployment project created and working. This is a proper vs2005 web application project, and not just opening a website.

I want to be able to deliver precompiled web pages as the system is very slow after installation/reboot.

I recently downloaded the "web deployment projects" thing as recommended by scottgu, but when I add this to my solution it always fails with

      "aspnet_compiler.exe" exited with code 1

Now I've googled all over for this and tried the command line version of aspnet_compiler with verbose error listings - and no errors reported.

Can anyone tell me what is the best and most established way of precompiling a web application and including the compiled output in a deployment project ?

thanks

0
plq
9/20/2007 3:14:28 PM
asp.net.installation-setup 5668 articles. 1 followers. Follow

3 Replies
675 Views

Similar Articles

[PageSpeed] 52

You have to successfully run aspnet_compiler to produce “compilation for deployment” to a different target output directory. You then must create your web deployment project against the compiled target directory.  

Keep in mind that this will install a completely non-updatable web application, meaning that the only thing that will run at that site is your application. If your client tries to create or upload any other asp.net page to this site, it will fail. That may be exactly what you’re looking for.  However, if you need your application to be updateable after it is installed, you might want to try ASPNitro http://www.aspnitro.net/.

 You would run ASPNitro on your existing site before generating your deployment package, this will cause your project pages to be completely compiled, while also allowing just-in-time compilation for any other page your client may wish to install to the site. This method will also allow you to distribute incremental updates, assuming your client also has a copy of ASPNitro, cost $49. Your customer would need to run “Re-Optimize Site” within ASPNitro after applying your incremental update. Hope this helps…

 

0
eSeller_Feller
10/2/2007 1:14:28 AM

Shouldnt the slow running be experienced first time only and subsequent request will be faster, but if precompiled is what you want with the updateable option then you can seperate the webpages including asmx to go as one updateable publish, which will allow you to update this pages to put fixes and have the ability of precompilation as well.


Please Mark Post that helped you as answer, also include a summary of what solved the problem as it helps others in similar situations
0
naturehermit
10/2/2007 8:33:16 AM

If you run aspnet_compiler with the updatable (-u) option, then asp.net will still "just-in-time" compile all of your front-end pages. The only thing that will be pre-compiled is your application code and "code-behind" files. As a result, first-time delays will still be present, and so will subsequent delays.

Most developers, which I communicate with, pre-compile their classes into assemblies to begin with, and then have their front-end pages inherit the pre-compiled classes. However, this still doesn’t solve the first-time delay problem, or the subsequent delay problems. This is because of the same issue I described above; Asp.net continues to "just-in-time" compile the front-end pages (entirely, html and all) and therefore continues to incur the associated overhead of deciding whether or not to re-compile each subsequently requested page.

The only approach that I’ve discovered, which completely eliminates these all too familiar delays, is the product I recommended in my previous post, ASPNitro. It is evident when you run it; you’ll see the improvement for yourself, not just the first time, but on subsequent requests too. If there’s another way to achieve this, it has eluded me, and for $49 I’m not going to spend further time finding out.

0
eSeller_Feller
10/2/2007 12:28:40 PM
Reply:

Similar Artilces:

Using Web Setup project to deploy precompiled web site
Hello:I am trying to deploy a precompiled web site using a web setup project. I only wish to include the precompiled dlls, not any content files. I create a Web Setup Project. I do not include the content files for the website. I COULD manually add files to the file system editor by browsing to the folder that contains the precompiled dlls and add each dll. This would not be an ideal solution for two reasons:- Each time a new page gets created, one would have to manually go back and add its precomiled dll to the web setup project if the project isn't set to batch compile. If it is set to bat...

Migrating from VS 2005 Web Site Projects to VS 2005 Web Application Projects witn vb and c# code
I've tring to migrate Web Site to Web Aplication in VS 2005. In my Web Site I have pages written using VB and C#. During converting to WA i choose VB and only pages with VB code i can migrate. If I choose C# as language for WA only pages with C# I can migrate. Is a way to migrate Web Site with mix of VB and C# code? Wieslaw Hi, As far as I know, The ASP.NET Web application doesn't support that C# application project contains VB page or VB application project contains C# page. But it can compile the different language class file in project. In your case, you can tr...

How to deploy web project in VS 2005 using web setup project
I have developed a new .NET Web application in C#. It is working find in localhost, i want to deploy the application to the production server. Please let me know what are the steps i need to follow to create an MSI file with VS.NET Installer in VS 2005. When i am trying to create a websetup project with a new solution option, it is not giving me the primary output file selection, i mean to say i am not at all getting the list of resources to select in the drop down list and also my project in the projects drop down list. Please some boyd help me and tell me is there any thing need to be done...

Problem when deploying Web Application project over VS2005 Web Site project
Hi,  we ran into this issue yesterday evening when we were trying to deploy new code on production box. It was running previous version of our app that was VS 2005 Web Site project, but the new version was migrated into Web App project. New build was tested on sandbox and even on the same production machine (but under different, non public web site configured there) and was working fine. However, when we deployed on production web site, we got this error:Compiler Error Message: CS0246: The type or namespace name 'ProfileCommon' could not be found (are you missing a using directi...

How to deploy a setup project to a web site instead under default web site?
Hi, I like to illustrate my point of confusion. In my case, I can not see any web site defined as virtual directory under Default Web Site over the internet. I like to know how to configure my web setup project, so that I can deploy my new project under the WEB Site instead of under the Ddfault Web Site. I have tried a long time to find out the answer and no luck so far. IIS WebServerName WEB SITE --------------------You can create new web site right click here .........DEFAULT Web Site----You can create new virtual directory right click here ....................FTP ...

VS 2005 Web Application project >> Web Site project
Hello,I am trying to do the uncommon, change a VS 2005 Web Application project (originally a converted 2003 Web Application project) to a VS 2005 Web Site project. There are many tutorials on how to either take a 2003 Web Application project, or 2005 Web Site project and turn them into into a VS 2005 Web Application project. (Not what I'm looking for)Also, is it possible to convert a 2003 Web Application project to a 2005 Web Site project. (too late for my current projects.... but for future refernce) Many thanx     There may very well be a reason why the road o...

How to setup Windows authentication mode for a web application deployed using a web setup project ?
 Hi,I would like to know if it is possible to set up the authentication mode to "Windows Authentication" for a web application deployed on IIS using a web setup project from Visual Studio 2005 and also how to do that. I know that after deploying the web application using the MSI file I can manually edit the security settings from the IIS and set the authentication mode to "Integrate Windows authentication", but I would like to do this at deploy time. Since I was not able to do that, I tried an open-source project, Windows Installer XML v3.0 - this project ev...

Migrating 2005 AJAX-Enabled Web Site to 2005 SP1 Web Application Project
Maybe I had a poor subject line in my last post.  Maybe I am too impatient, but this stuff shouldn't be that difficult...Has anyone else had difficulties converting a 2005 AJAX-Enabled web site to 2005 SP1 Web App Project?  Specifically with UserControls or Server Controls and User Controls inside AJAX Update Panels? I have been trying to upgrade my existing VS 2005 Web Site to a Web Application (that comes with SP1).  I followed Scott's migration tutorial [ http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx ] but I have many problems regarding ...

Benefits of creating a Web Deployment project for a Setup project for a website vs a Web Setup project
I'm creating an installer for a website.The only thing I require as input from the user (in Custom Actions) is settings for the web.config. My initial approach was to create a Deployment project from my web project ans use this as input to the Setup project.Couldn't I use a Web Setup project instead of a Web Deployment + Setup project to do the same thing?Issues I have found with the Web Deployment is that I cannot edit it's contents at installation time, I'm taking user input at installation time to write to the web.config that the Installer uses but of course this file is embedded in the W...

Error when Deploying and Signing Web Application project with Web Deployment project
I have a Web Application project that needs to be deployed and signed using Web Deployment projects. When I delete the global.ascx file I'm able to do the deployment and sign the output assembly. The error I'm getting without signing the assemblies is "An error occurred when merging assemblies: ILMerge.Merge: The target assembly 'HelloWorld' lists itself as an external reference.” .  Global.ascx or .asax? The usual cause of a signing error is when a reference is not signed.  Is the global.asax.cs or .vb marked as conte...

Web Deployment Project deploying files not included by Web Application Project
Recently my boss asked me to find a way to share a web site project between 2 separate projects which will only share a subset of the files in the folder.  I created 2 web applications projects in the folder and eliminated the web site project.  I discovered when I publish the web application projects, that it wasn't compiling the .as*x pages, so I looked into web deployment projects.  The problem I'm having with web deployment projects is that when I build them from the solution configuration, it copies all the files in the web project to the deployment folder and I c...

Can I open a Web Project application after I install Web Applications Projects?
I have installed the Web Application Projects addin to my VS 2005.  I have used it to convert a web application that was written in VS 2003 to VS 2005. Now I want to open a Web Project application written by another developer on our team.  The Web Project is save in SourceSafe.  When I try to open the Web Project from SourceSafe I get an error "There are no solition or project files in the this location.  Please select a different location".  Am I geting this error because I have the Web Applications Projects installed?  Do I have to uninstall it to work o...

Web Site to Web Application 2005 and Web References
I'm trying to convert a VS 2005 Web Site  Project to a VS 2005 Web Application Project, I have followed http://webproject.scottgu.com/CSharp/Migration/Migration.aspx, which works fine for most objects but it does not convert the Web References.I can add them manually, however I need to ensure that the Web Reference Name is the same for all my Web Services, this is to ensure that I can used Shared Types.  The problem is on VS 2005 Web Application it renames the Web Reference Name to Localhost1, localhost2 etc. Any ideas how I can get over this?Regards <<<Bryan...

Web Application Projects with Web Deployment Projects...
Hi there,  Does anyone have any experience in using the Web Deployment Project pieces to deploy Web Application style projects (rather than the web site projects model)? We have a rather larger eCommerce site that uses WAP model (it was originally a website model, but we ran into so many problems with compile times, temp .dll file lockups at compile etc that we moved it to WAP a long time ago). What's strange is that the project compiles fine normally when we're not using the Web Deployment Project and everything is fine. However, the second we hook the WDP stuff up, we'r...

Web resources about - How to precompile a web application (not a web site) in a 2005 deployment project - asp.net.installation-setup

Application - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

Pre-Christmas job application rush hits Australian public service
Speed required for pre-Christmas job window opening for public servants. Check out who is hiring.

Second visa application 'likely' to be approved
The family of a terminally ill Pakistani student can 'hopefully come to Australia sooner rather than later' says Immigration Minister Peter Dutton. ...

Cloud application adoption increases 71 percent in 2015
The adoption of cloud applications is soaring, up by 71 percent in the last year according to the results of a new survey. The latest Cloud ...

Tashfeen Malik's visa application under scrutiny - Business Insider Deutschland
The US government has released the visa application for Tashfeen Malik, who along with her husband killed 14 people in an attack in San Bernardino, ...

MBA: Mortgage Applications Increase in Latest MBA Weekly Survey, Purchase Applications up 37% YoY
From the MBA: Refinance, Purchase Applications Both Up in Latest MBA Weekly Survey Mortgage applications increased 7.3 percent from one week ...

Lawmaker: Immigration Officials Didn’t Fully Vet Tashfeen Malik’s Visa Application
"It’s unacceptable that U.S. Citizenship and Immigration Services did not fully vet Malik’s application and instead sloppily approved her visa," ...

German-Based Spirea Promotes Decentralized PV Applications In Uruguay
... Its technical operations specialist, Laurie Lawrence, pointed out that Uruguay [&hellip German-Based Spirea Promotes Decentralized PV Applications ...

Visa application of San Bernardino shooter released
CNN Visa application of San Bernardino shooter released CNN (CNN) The visa application of one of the San Bernardino shooters was released ...

NTU research team discovers optoelectronic application for molybdenum disulfide
A research team under the National Taiwan University (NTU) has discovered an optoelectronic application for molybdenum disulfide (MoS2), a 2-dimensional ...

Resources last updated: 12/25/2015 12:05:37 PM