473,651 Members | 2,790 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%\Sy stem32\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 919

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

Similar topics

1
2136
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 development can be demonstrated to key users at particular points. However, when I access the application from my machine, I'm getting to odd caching behaviour that I dont understand. All the pages are being cached and I need to refresh each page to get...
0
1223
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 development can be demonstrated to key users at particular points. However, when I access the application from my machine, I'm getting to odd caching behaviour that I dont understand. All the pages are being cached and I need to refresh each page to get...
0
1100
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 him through finding it and it is checked!! Yet no problems on the server, ftping files is a breeze with changes made instantaenously!! THey are running IIS 5 and windows 2000 server. So I assume when they upgrade very soon they will have this...
2
6952
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 streamed, but just linked in HTML output). The problem is, when user want to see the graph by changing parameters, they always have to click refresh to see the updated graph image. Although this problem doesn't occur on the local server.
1
1089
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 preserve state. Everything is working on one server, on the second one we have one page that is giving us problems. Basically we changed the ip of our mail server and updated the pages that use it accordingly. One page, however isn't reading...
1
3681
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" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <string>State Img;c:\scenes\Scene1\;5000;1;0;0;0;3</string> <string>Local
1
2826
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 client machine by name. The *application* server in this case is the *remoting* client. In other words, the "application server" needs to talk to the "application client" to tell it that there is a new configuration available for it, and that...
0
807
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 the problem as i m using image. Also same sporadic issue is faced when i use sql dependency pull method for caching. Polling works for say 1 min but after that whenever i refresh my page everytime databse hit is made irrespective of any change is...
3
1334
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 link in the DataGrid control to go to a details page for the record to edit a number of different fields for the record. After updating the dataset and database, I use a response.redirect (I’ve also tried Server.Transfer) to return to the first...
1
1381
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 in data. Each user will contain its seperate xml file, so when I create xml file for each user, I am putting this xml DataSet in Cache object, but when I try to populate my controls using Cache object, I am faching weired problem. As some times...
0
8803
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8700
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8465
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6158
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5612
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4285
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2701
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 we have to send another system
2
1588
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.