RE: precompile



Hi Walt,
The server doesn't have the re-distribution package installed. Where do I
get this ? Do you have a download link that works, the only one I found
wasn't available for download anymore ..

Thanks,
chaz

"Walter Wang [MSFT]" wrote:

Hi Chaz,

Let's deal with the error first.

One possible cause is you didn't have VJ# redist package installed. The
type "Microsoft.VJSharp.VJSharpCodeProvider" should be located at
%windir%\Microsoft.NET\Framework\v2.0.50727\VJSharpCodeProvider.DLL; also
there should have a subfolder named "Microsoft Visual J# 2.0
Redistributable Package."

Do you have installed both 32-bit and 64-bit CLR? Make sure the version
you're using have installed VJ# redist package correctly.

By design, aspnet_compiler.exe will try to load all CodeProvider specified
in machine.config (or machine.config.comments). If the webform is compiled
on the first time, only the specified code provider will be used. I think
this answers your first question Q1.

======

By default, each public resource of an ASP.NET site is compiled on the fly
only upon its first request. This introduces a first-hit delay as a result
of the compilation process. Site precompilation brings a double benefit: no
delay for requests because of compilation and no need of deploying source
code to the Web server. Precompilation comes in two forms, each targeting a
specific scenario: in-place and deploy precompilation. The former prepares
all the resources in a site to be served without delay. It generates all
needed dynamic assemblies for all pages and resources that need be
compiled. In-place precompilation occurs on an already deployed
application. It generates a site layout made only of assemblies that can be
packaged and deployed to a production machine. This form of precompilation
occurs on a development machine and is suited for out-of-box sites that,
like classic Windows executable files, are not subject to dynamic changes.

In-place precompilation is merely a form of performance improvement.
Precompilation ensures that each page is accessed and each required dynamic
assembly is created.

In-place precompilation is analogous to manually requesting all the pages
on the site to make sure all the code is compiled.



Sincerely,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


.



Relevant Pages

  • RE: precompile
    ... Site precompilation brings a double benefit: ... delay for requests because of compilation and no need of deploying source ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to maintain Webservices active on window 2003 server
    ... perform dynamic compilation. ... precompilation, there still may occur a delay when we first time request a ... your scenario, if your ASP.NET application's worker process restart, or the ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework)
  • Re: How to maintain Webservices active on window 2003 server
    ... perform dynamic compilation. ... precompilation, there still may occur a delay when we first time request a ... your scenario, if your ASP.NET application's worker process restart, or the ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework)
  • RE: Limiting folders that get published to the web server
    ... I think the publish website behavior is abit hard to ... customize(such as apply for only some certain folders or page). ... Move all the precompilation output and the original page stuffs to server ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.vsnet.general)
  • RE: Deploy VS 2005 / asp.net 2.0 application by hand copy / past over ftp
    ... application compilation model of ASP.NET 2.0/VS 2005 web application ... means we do not need to precompile any codebehind into assembly at ... Microsoft MSDN Online Support Lead ... response from the community or a Microsoft Support Engineer within 1 ...
    (microsoft.public.vsnet.general)