473,394 Members | 1,841 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,394 software developers and data experts.

Cache a dll in Application_Start?

As long as my code is reentrant, can I cache a dll with assembly.load in
my application_start and then access it from the application cache, then
invoke one of the methods inside it from multiple web service calls?

Thanks in advance.

Adam Smith

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #1
3 2722

"Adam Smith" <ad*********@hotmail.com> wrote in message
news:eT**************@TK2MSFTNGP10.phx.gbl...
As long as my code is reentrant, can I cache a dll with assembly.load in
my application_start and then access it from the application cache, then
invoke one of the methods inside it from multiple web service calls?


Well, yes. But this is what happens if you just set a reference to the
assembly, and start using it in your code.

David
Nov 15 '05 #2

The reason I want to do an assembly.load at runtime is that I want to
pick up the dll name and location from a database setting entry at
startup, rather than hard coding the name.

Adam Smith
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #3

"Adam Smith" <ad*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...

The reason I want to do an assembly.load at runtime is that I want to
pick up the dll name and location from a database setting entry at
startup, rather than hard coding the name.


That's fine. The same thing will happen. The assembly, once loaded, will
stay loaded, and you can use the assembly reference to create types defined
in that assembly.

David
Nov 15 '05 #4

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

Similar topics

1
by: Alvin Bruney | last post by:
application_start onRemove = new CacheItemRemovedCallback(this.onRemoveReload); HttpContext.Current.Cache.Insert("CUSTOMERLIST", ds, null, DateTime.Now.AddSeconds(5), Cache.NoSlidingExpiration,...
1
by: Glenn | last post by:
Hi, I have a config XML file that I am using from the application cache. I have configured the entry with a remove callback to re-populate cache automatically when the XML file changes. All is...
2
by: Dicky Cheng | last post by:
Hi, I am using absolute expiration to expire my cache object in Cache API. And I set it to expire after 60min. Then I test it, it cache, and everything fine. Then I stop working and lock...
0
by: Chris Snyder | last post by:
I have a page that displays real-time data (road sensors updated every 5 minutes), but the query to display the data takes 15-20 seconds (big table in a DB w/o indexes, not my fault). This is...
3
by: Jon | last post by:
I have a couple of tables I want to load into a dataset and keep around pretty much forever, although they will need to be refreshed every so often. I can either put the dataset into an...
5
by: Weston Weems | last post by:
I attempted to post this yesterday however I dont see that it ever made it up. If this is an error on my part, I apologize in advance. I've got a webapp with somewhat trivial amount of data,...
2
by: Random | last post by:
I am running some threaded operations within my ASP.NET app, in order to add some data to the Cache. I know enough to use the HttpRuntime.Cache instead of the HttpContext.Cache, but my operations...
4
by: Beren | last post by:
Hello I'm trying to use Cache expiration and its callback feature to easily add automated tasks programmatically. The task should be run when the Cache object expired The problem I'm facing...
1
by: William Sullivan | last post by:
I'm trying to nail down some issues with the cache in my application. Currently, I have an object that stands between my business logic and database logic called CacheLogic (cute, no?). ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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:
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
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...
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...

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.