CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 9/1/2007 11:18:45 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 60 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
klaus1111
Asp.Net User
App_Code folder compile time9/1/2007 11:18:45 PM

0/0

I'm also one of those who would like to use classes on several web pages.

There is the the convenient way to put those clases into the App_Code folder. Was fine at the beginning, but as my web site get larger and larger it is not nice any more as every little change in the class recompile the whole application.

So what possibilites do I have if I would like that when I change something to my class only the really depended files are recompiled?

Before posting I did my best to search here in the forums about what to do - and I found several hints which says that I could put my classes also in a seperate class librarie with their proper dll. The problem is only that I do not have the faintest idea how to do that :-(

Also - does that really solve my problem? How does my the compiler know which 2 files he has to recompile (The class which would like to share is used by two webpages) ?.

Isn't there an simple way a little bit like in c++ with the header files? I tried to use the #using directive to tell the compiler that he should look for my self made class - but I'm not able to make him find the file.

Any help would be fantastic.

Klaus

Prashant Kumar
Asp.Net User
Re: App_Code folder compile time9/2/2007 4:40:01 AM

0/0

 

klaus1111:
and I found several hints which says that I could put my classes also in a seperate class librarie with their proper dll.

 When you put your classes into separate class libraries, those class libraries will be separate projects which when compiled will give you a dll

You would then put this dll into the bin folder of your web app.

Thus you would decouple the recompilation of your class library and the web application. Whenever you recompile your class library, you will just have to replace the existing dll in the bin folder of your web app provided the changes do not break your existing code in the web app. If the changes are major then you will have to reompile the web app.


Regards,
Prashant


Dont forget to click "Mark as Answer" on the post that helped you.
csnake24
Asp.Net User
Re: App_Code folder compile time1/30/2008 10:05:07 PM

0/0

Even using precompiled DLLs in place of source_code will cause you headaches.  I'm currently in a similar predicament right now.  We tried using precompiled DLLs, and the site still hung on startup because the system makes shadow copies of all the binaries before fully loading.  In our situation we have 30+ megs of compiled DLLs, and 50 sites running off the same source code.  When a change is made, those DLLs get shadow copied 50 times causing some major slow down.

We're looking for a solution to this.  So far I haven't had much luck.  Anyone out there have any ideas for a solution?  I've been toying with the idea of moiving the classes/app_code outside the application into web services, but I don't know for certain if it'll help.

Does anyone know for certain if, when the content in app_code changes, is the entire site recompiled, or just the content associated with the pages which are hit?  This is significant for us because we have a front page which takes most of the hits, and has several webuser controls and classes associated with it.

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Maximizing ASP.NET: Real World, Object-oriented Development Authors: Jeffrey Putz, Pages: 309, Published: 2005
Pro C# 2008 and the .NET 3.5 Platform Authors: Andrew Troelsen, Pages: 1370, Published: 2007
Essential ASP.Net 2.0 Authors: Fritz Onion, Keith Brown, Pages: 345, Published: 2006
Beginning ASP.NET 2.0 Authors: Chris Hart, John Kauffman, Chris Ullman, David Sussman, Pages: 759, Published: 2005
Practical .NET2 and C#2: Harness the Platform, the Language, the Framework Authors: Patrick Smacchia, Pages: 896, Published: 2006
ASP.NET 2.0 Instant Results Authors: Imar Spaanjaars, Paul Wilton, Shawn Livermore, Pages: 456, Published: 2006
Programming ASP.NET: Building Web Applications and Services with ASP.NET 2.0 Authors: Jesse Liberty, Dan Hurwitz, Pages: 930, Published: 2005
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006

Web:
App_Code folder compile time - ASP.NET Forums App_Code folder compile time. Last post 01-30-2008 5:05 PM by csnake24. 2 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Shared Code Folders in ASP.NET Web Sites At run time, the access levels of an assembly are established by the trust level ... NET can compile these files into assemblies. The App_Code folder can ...
Using Multiple Programming Languages in the “App_Code” folder « de ... At compile time, ASP.NET infers the right compiler to use in each sub-folder .... I have made two different folders CSCode and VBCode in App_Code folder of ...
App_Code folder issues - Stack Overflow So I'm having a really weird issue with my App_Code folder on a new website ... whenever a compile-time error occurs in a referenced assembly or code file. ...
Accessing Web User Control from class in App_code Folder that´s under the App_code folder. As with ASP.NET 1.x, I tried to ... I need it at compile time. Here´s some code ...
asp.net app_code folder sharing between web service and web ... Technically speaking its kinda sharing the app_code folder between ... I don’t want to re-compile the code every time I make change or for a ...
Cannot create App_Code folder : Microsoft, Visual Studio Team ... Apr 1, 2008 ... App_Code, which explains why I have to compile every time I make a .... I created a normal folder called App_Code and it automatically ...
ASP.NET 2.0: Use VB.NET and C# within the App_Code folder I had a problem with the App_Code folder because I had some code in VB. .... or all of you classes in the App_Code and compile them into a DLL in the Bin folder . ... cuocthiseo wrote: Most of time I just surf web with FireFox, I forgo… ...
Speed Up VS 2005 Web Development - Kick your App_Code Habit ... I'd been using the App_Code folder as an easy way to get a globally accessible ... When we migrated to 2.0 (and VS 2005) compile times grew significantly ...
CoDe Magazine - Article: Compilation and Deployment in ASP.NET 2.0 always parse and compile at run time. ASP.NET dynamically creates this .... The App_Code folder in ASP.NET 2.0 is an important location for stock projects. ...




Search This Site:










can you amend the autoformat schemes ?

extract code from a dll

can we add these forum to our visual studio help.

how to eliminate validation errors from the error list in visualstudio 2005

asp.net tries to use firefox

make what is typed in the textbox to remain on page load

assigning shortcut keys

installing another web site project inside my existing vs2005 website project

iis hangs when running a web project

vs2005 bug with memory...

autopostback bug

solution explorer - how to view solution file name

extending the "add asp.net folder" options

web deployment projects in team system?

why nothing is shown in new dialog box when i want to create new website or project?

cant rename id of controls

i can not add a watch when debuging !!!

is it possible to add new regular expressions to existing list?

accessing a folder for image file types

problem for debugging with ie7

using web deployment project to combine library of user controls

asked for username and password

how does vs.net 2005 perform remote debugging?

how to turn off text wrap

northwind in sql server 2005 beta2

asp.net configuration menu option missing

swedish characters with fileupload component.

compilation very slow after a few hours of work

running a word vsto project - what steps must be taken???

working with datasets and datarows in vs 2005

  Privacy | Contact Us
All Times Are GMT