Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / April 2006

Tip: Looking for answers? Try searching our database.

Precompile ASP.NET Web services problems

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bragadiru - 06 Apr 2006 09:52 GMT
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
Steven Cheng[MSFT] - 07 Apr 2006 03:56 GMT
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/reference/infrastructure/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.

Signature

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

Bragadiru - 13 Apr 2006 09:05 GMT
Thanks a lot Steven.
Now it is clear for me, too :)

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

> Hi Bragadiru,
>
[quoted text clipped - 45 lines]
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
Steven Cheng[MSFT] - 14 Apr 2006 02:34 GMT
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.

Signature

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


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.