473,651 Members | 2,551 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.VJSh arp.VJSharpCode Provide
r, VJSharpCodeProv ider, 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
"effectivel y 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 2649
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.

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.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.

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&di splaylang=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&di splaylang=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
1518
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: tmp0.sqlj import java.sql.*; import sqlj.runtime.*; import sqlj.runtime.ref.*;
1
1164
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 save time?If i want turn off just-in-time compilation after deploying the web application.how to do it?i do not want recompile everything before debugging. Additional advice or resource is more helpful. Thanks in advance...
1
1714
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 file. Where can I get it and how is it installed? Also what is to prevent an outside users from hitting this a bunch of times on purpose? Steve
8
1524
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 thereofre want to keep the code secure. If I use the 'Build/Publish Web Site' option, it asks me to tell it the 'Target location' which in this case is 'C:\Temp\PrecompiledWeb\Project1'
0
3339
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: >make gcc -oreplaceCard.exe -lm -LC:\oracle\ora92\precomp\lib -LC:\oracle\ora92\oci\lib\msvc -IC:\oracle\ora92\oci\include -IC:\oracle\ora92\precomp\public replaceCard.c c:/djgpp/tmp/ccsIViCl.o(.text+0x58a):replaceCard.c: undefined reference to...
2
1796
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
1739
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 windows program running on a different machine. thanks for any info
7
3116
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, not at runtime by asp.net. if you view the compiled aspx page it should only contain the line: This is a marker file generated by the precompilation tool, and should not be deleted!
3
2008
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 updateable) When I "publish" the site and take a look at the precompiled folder that is generated by this process, I see a /bin folder has been created with one file in it "App_Web_pccpykfu.dll".
1
171
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 (aspnet_compiler) it throw me some errors: ex: Name 'CN' is not declared. this is because the variable es declared in another page, that includes the one which throw the error. how can i bypass these "errors" ? how can i precompile the site? is it...
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8695
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8460
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7296
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6157
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.