473,503 Members | 3,308 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

COM DLL caching problem

33 New Member
Hi guys hope you all are fine :)

I have built a com visible dll in .Net 3.5. As i wanted to call it from classic asp & I registered it in the following way.

Expand|Select|Wrap|Line Numbers
  1. gacutil /i COMCallFromASP.dll
  2.  
  3. regasm /tlb COMCallFromASP.dll
  4.  
and my asp code is like

Expand|Select|Wrap|Line Numbers
  1. <%
  2.     Dim obj
  3.     Set obj = Server.CreateObject("COMCallFromASP.HelloWorld")
  4.     Dim str
  5.     obj.SayHello "San", str 
  6.     response.write str 
  7. %>
  8.  
My output is simply "Hello San"

Now I made a change in the function body (not in the parameter or return type) to return like "Hi there San" & the I re-registered the dll by Uninstalling & installing the dll again...
Expand|Select|Wrap|Line Numbers
  1. regasm /u COMCallFromASP.dll
  2. gacutil /f /u COMCallFromASP
  3.  
  4. gacutil /i COMCallFromASP.dll
  5. regasm /tlb COMCallFromASP.dll
  6.  
The surprisingly when i browse the asp page I still get the same old "Hello San" instead of "Hi There San".
When I restart the machine & then only I get the desired result. Guess there's a problem in dll caching.

Pls help how to do it without restarting the machine. I also checked the folder %SystemRoot%\System32\DllCache but theres no sign of my dll there at any time.

Also after the first call to the page i find dllhost.exe is running in the taskmanager & though I unregister the dll I can't delete the .tlb file as its locked by dllhost. Why dllhost is not unloading after the call?
May 20 '11 #1
0 914

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2131
by: CJM | last post by:
I'm working on an ASP application on my XP m/c. I've uploaded a copy of the ASP code and accompanying DB onto another server that is running both IIS5 & SQL Server. This is so that the...
0
1215
by: CJM | last post by:
I'm working on an ASP application on my XP m/c. I've uploaded a copy of the ASP code and accompanying DB onto another server that is running both IIS5 & SQL Server. This is so that the...
0
1092
by: Jill | last post by:
I found out that one of my other windows with asp enabled hosting companies does not have this problem. I talked with the tech and they said they do have the asp pages caching enabled. I walked...
2
6941
by: Mike Sobeiski | last post by:
Hi There! I'm developing a web project that requires to produce charts off the database and output it as image and presented to the user in a HTML document. (NOTE: Image is not directly...
1
1076
by: big DWK | last post by:
Hi- We're having a strange caching problem with an ASP.Net app written in VB.Net on Windows 2003 with all the updates. We have two websevers that use a common sql backend and a session server to...
1
3675
by: rory | last post by:
Have the following setting in my app.config: <setting name="Scenes" serializeAs="Xml"> <value> <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
1
2818
by: Michael Bray | last post by:
Ok guys here's a tough one... I have a client/server application that uses remoting for communication. I am using Activator.GetObject to create a remoting instance with an URL that specifies the...
0
804
by: Vikram | last post by:
I m working on a example using whidbey virtual image. Example is about using post cache substitution. I am facing a sporadic issue. SOme time caching works and some time it doesnt , is this may be...
3
1328
by: jlotmar | last post by:
I am currently experiencing a problem whereby browser caching seems to be causing my page to be invalid. I am using a standard DataGrid WebControl which is bound to a DataView object. I use a...
1
1370
by: Aryan | last post by:
Hi, I have problem related to Caching of data. I am reading large xml file and putting this xml in dataset, since this dataset will contain many datatable's inside. And each datatable might be big...
0
7192
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7064
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
7261
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
7315
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
7445
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
5559
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,...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
721
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.