Hi Chaz,
Let's deal with the error first.
One possible cause is you didn't have VJ# redist package installed. The
type "Microsoft.VJSh arp.VJSharpCode Provider" should be located at
%windir%\Micros oft.NET\Framewo rk\v2.0.50727\V JSharpCodeProvi der.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 (wa****@online. microsoft.com, remove 'online.')
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.