473,324 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

precompile

Hi,
I've a couple questions regarding in-place pre-compiling .
As I understand it from ms documentation - precompiling a site in place
effectively performs the same compilation that occurs when users request
pages from your site. Therefore, the primary performance improvement is that
pages do not have to be compiled for the first request.
On the server where the web site has freshly been installed I issue the
command
aspnet_compiler -v /MyWebsite
What I get back is an error :

error ASPCONFIG: The CodeDom provider type
"Microsoft.VJSharp.VJSharpCodeProvide
r, VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7
f11d50a3a" could not be located
And nothing gets precompiled .

Q1) How does the site get compiled normally by asp.net as pages are accessed
if this codedom provider is missing ?
Q2 ) what are (if any) the differences between precompile and what is
"effectively the same compilation when a user access a page" ?
Q3) what are the performance differences between the two if any?

Thanks
Chaz
Sep 13 '06 #1
5 2628
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\VJShar pCodeProvider.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.

Sep 14 '06 #2
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\VJShar pCodeProvider.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.

Sep 14 '06 #3
Hi chaz,

I may have made some mistake in my previous reply. The aspnet_compiler.exe
will not load all Code Provider on startup; it only loads specific Code
Provider when you specified according language in your WebForm.

The VJ# redist package is not included in .NET Framework; it's a separate
package which can be downloaded here:

#Download details: Microsoft Visual J# Version 2.0 Redistributable Package
http://www.microsoft.com/downloads/d...4B3-ED0E-4AF8-
AE63-2F0E42501BE1&displaylang=en

I've done some test: using a clean Win2003 setup, install .NET 2.0
Framework, then copy a website which only use C# languages. When I run
aspnet_compiler.exe to precompile it, it works correctly. If I create a new
webform which is using J# as its language, aspnet_compiler.exe reports the
error as you're seeing. So I think the J# Code Provider is only loaded when
you have WebForm which is using J# as its language.

Please reply here to let me know whether or not you need further
information. Thank you.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

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

Sep 15 '06 #4
Hi Walt,
I liked your first answer better ! We cannot determin where the dependancy
for visual J is coming in at . We use c# and vb.net , our web.config doesn't
specify it.
What tools are available to help us figure this out ?

thanks,
chaz

"Walter Wang [MSFT]" wrote:
Hi chaz,

I may have made some mistake in my previous reply. The aspnet_compiler.exe
will not load all Code Provider on startup; it only loads specific Code
Provider when you specified according language in your WebForm.

The VJ# redist package is not included in .NET Framework; it's a separate
package which can be downloaded here:

#Download details: Microsoft Visual J# Version 2.0 Redistributable Package
http://www.microsoft.com/downloads/d...4B3-ED0E-4AF8-
AE63-2F0E42501BE1&displaylang=en

I've done some test: using a clean Win2003 setup, install .NET 2.0
Framework, then copy a website which only use C# languages. When I run
aspnet_compiler.exe to precompile it, it works correctly. If I create a new
webform which is using J# as its language, aspnet_compiler.exe reports the
error as you're seeing. So I think the J# Code Provider is only loaded when
you have WebForm which is using J# as its language.

Please reply here to let me know whether or not you need further
information. Thank you.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

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

Sep 15 '06 #5
Hi chaz,

What I meant in my last reply is: based on my research, if the
aspnet_compiler.exe tries to load VJ# Code Provider, it must because your
website is using some webform that is authored using VJ# language.

However, since you claimed that your website is only using C# and VB.NET,
my findings may not 100% correct. Would you please help me do a simple test
to verify this:

1) Create a simple virtual directory in IIS and copy a simple WebForm which
is using C# or VB.NET as its language;
2) Try to precompile it using aspnet_compiler.exe and see if it reports the
error about VJ# Code Provider

If it reports the error, then aspnet_compiler.exe is using some other
configuration that I current not aware of. If it doesn't, then your
production web site might have some web form which is using VJ# language;
you may have to find it by search for "VJ#" in all your *.aspx files.

Please reply to let me know the result. If it proves the former case, I
will do more research on the internal works of aspnet_compiler.exe. Thank
you.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

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

Sep 18 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bernard Dhooghe | last post by:
DB2 UDB V8.1 Fixpak 4 AIX 5.1 CLASSPATH: /usr/opt/db2_08_01/java/db2jcc.jar:/usr/opt/db2_08_01/java/db2jcc_license_cu.jar:/usr/opt/db2_08_01/java/sqlj.zip:/usr/java131/jre/lib/rt.jar: Program:...
1
by: gladiator | last post by:
Hello EveryOne: I am in a ASP.NET team,developping web appplications.What does "precompile the web form" means ? we have a plenty of assemblys in the project,does the above method make sense to...
1
by: Steve Franks | last post by:
Hi - I'm using VS.NET 2005 and have read about this precompile.axd that supposedly can be hit with a browser to force a complete recompile on the production server. However I do not have this .axd...
8
by: Mike Owen | last post by:
Hi, I am trying to pre-compile a project prior using ASP.Net 2.0, VS 2005, to putting it onto a live server. The reason for doing this is that other people have access to the server, and I...
0
by: cjeschke | last post by:
Using PRO*C precompiler on windows, I precompile my c code with embedded Oracle 9.2 queries. When I link the program including all the Oracle 9.2 libraries I can find, i get an undefined _sqlcxt: ...
2
by: Shimon Sim | last post by:
I tried to use Precompile.axd to compile my site but got HTTP404 (The resource cannot be found) instead. I am running ASP.NET Version:2.0.50727.42 .. Any suggestions? Thank you, Shimon.
1
by: Tessa | last post by:
Hi, Is there a way to use aspnet_compiler to precompile an existing asp.net 2.0 web application that is on another server? I need to initiate the precompile programmatically from another .net...
7
by: bruce barker | last post by:
a previous long thread brought this up. I can find no way to precompile a web application from visual studio. by precompile I mean all the aspx code is converted to assemblies by visual studio,...
3
by: Scott M. | last post by:
Scenario: ASP .NET 2.0 Web "Site" All but one page is written using inline VB .NET code. One page is written using VB .NET code-behind. MSBuild options are set at the default (allow pages to be...
1
by: Gabriel Pineda | last post by:
hi everybody, i have an issue for you: i have an operative site wich i'm trying to precompile to protect the code that will be installed on client. the issue is: if i run the precompile...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.