473,406 Members | 2,356 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,406 software developers and data experts.

Precompile ASP.NET Web services problems

Hi,

I have 2 pbs :

1. When I'm using VS2005->Publish Web site => everything is pre-compiled
fine (App_global.asax.dll is generated, too), except that I don't find
Global.asax file in my destination folder and I need to copy it there
manually. What is strange : Global.asax.resx file is copied.
Use fixed naming and single page assemblies - checked
Enable strong naming on precompiled assemblies - unchecked
Allow this precompiled site to be updatable - checked or unchecked.
2. App_global.asax.dll and App_WebReferences.dll have always version =
0.0.0.0 . How can I increment it ?

Thanks for any advice
Apr 6 '06 #1
3 6067
Hi Bragadiru,

Welcome to the MSDN newsgroup.

As for the first question about the global.asax file not get copied when we
precompile the website with "non-updatable" option, it is because the whole
global.asax file's class has been compiled into the App_global.asax.dll
assembly you mentioned. And since global.asax file is a internal used
component (only be request and loaded by ASP.NET runtime rather than
client-side users), so there is no need to put it in the application's
actual directory. When we choose the "updatable" option when
precompiling, since it dosn't generate the complete global class, so it
will still copy the global.asax file in the target directory so that the
global class can get compiled dynamically at runtime.

As for the second question, this is due to the new dynamic compilation
model of the ASP.NET 2.0 application. Since all the final assemblies are
the dynamic compiled one(which sources from both aspx file and our code
behind), so the assembly version info can not be simply put in codebehind
or other assembly file like 1.1. Regarding on this, the ASP.NET dev team
is developing a new deployment project which help provide more functions
for customizing the dynamic compiled assemblies of ASP.NET 2.0 web
application. And it include specifying version number for the application's
assembly. You can have a look to see whether it helps:

#Visual Studio 2005 Web Deployment Projects
http://msdn.microsoft.com/asp.net/re...structure/wdp/

Regards,

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

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Apr 7 '06 #2
Thanks a lot Steven.
Now it is clear for me, too :)

I'll look forward for the release version of VS2005 Web Deployment Projects.

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:yR*************@TK2MSFTNGXA01.phx.gbl...
Hi Bragadiru,

Welcome to the MSDN newsgroup.

As for the first question about the global.asax file not get copied when
we
precompile the website with "non-updatable" option, it is because the
whole
global.asax file's class has been compiled into the App_global.asax.dll
assembly you mentioned. And since global.asax file is a internal used
component (only be request and loaded by ASP.NET runtime rather than
client-side users), so there is no need to put it in the application's
actual directory. When we choose the "updatable" option when
precompiling, since it dosn't generate the complete global class, so it
will still copy the global.asax file in the target directory so that the
global class can get compiled dynamically at runtime.

As for the second question, this is due to the new dynamic compilation
model of the ASP.NET 2.0 application. Since all the final assemblies are
the dynamic compiled one(which sources from both aspx file and our code
behind), so the assembly version info can not be simply put in codebehind
or other assembly file like 1.1. Regarding on this, the ASP.NET dev team
is developing a new deployment project which help provide more functions
for customizing the dynamic compiled assemblies of ASP.NET 2.0 web
application. And it include specifying version number for the
application's
assembly. You can have a look to see whether it helps:

#Visual Studio 2005 Web Deployment Projects
http://msdn.microsoft.com/asp.net/re...structure/wdp/

Regards,

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

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



Apr 13 '06 #3
You're welcome Bragadiru,

Regards,

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

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Apr 14 '06 #4

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:...
2
by: Geoff | last post by:
Hi. I'm very confused about what gets compiled to what, and what gets cached where, and what gets persisted, and what is shared between users. Could someone possibly check my understanding of the...
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...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.