473,473 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

sharing violation file may be in use

After a ASP page call a DLL I cant't delete the DLL anymore.
"There has been a sharing violation file may be in use"
please help

Jul 19 '05 #1
2 4115
Are you destroying the object after you have created it?

e.g.

Set objSomething = Server.CreateObject("Whatever")

'// rest of your script

Set objSomething = Nothing

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Carlos Azevedo" <Carlos Az*****@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
After a ASP page call a DLL I cant't delete the DLL anymore.
"There has been a sharing violation file may be in use"
please help

Jul 19 '05 #2
If you are not using COM+, the DLL is loaded into IIS process space. If you
have registered the DLL with COM+, the DLL is loaded into a COM+ process
until it releases it (3 mins default).

So, depending on how you have registered the DLL, you can either

1. Stop IIS process, which releases the DLL. (use iisreset.exe)
2. Shutdown the COM+ package

After this, you should be able to delete the DLL. But before you do,
unregister it to avoid missing references.

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Carlos Azevedo" <Carlos Az*****@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
After a ASP page call a DLL I cant't delete the DLL anymore.
"There has been a sharing violation file may be in use"
please help

Jul 19 '05 #3

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

Similar topics

6
by: varlagas | last post by:
We disabled the antivirus software but the problem persists. Any clues? Many thanks in advance! Panagiotis Varlagas ======================================================================= ...
1
by: Baseman | last post by:
Hi There, I'm running a System.Xml.Xsl.XslTransform and outputting an HTML file as the result. Immediately after the transform, I try to open the resulting file using either one of these three...
0
by: Raed Sawalha | last post by:
Dear: I have windows application that running multiple threads( using ThreadPool.QueueUserWorkItem) , all threads designed to write the same XML file, and update same SQL Server Table , the...
0
by: CPragash | last post by:
Hello All, I'm developing a FileSystemWatcher Service using VB.NET to monitor a network shared folder. The folder actually resides on the same server where the service is running and I'm...
3
by: frustrated | last post by:
I am trying to share a file stream between two threads, but havent got a clue as to how to do it. The first thread will be reading the file, and the second thread will(/might) be writing to the...
2
by: James | last post by:
Hi all, I am new to ASP.NET. I am currently working on a project with VB, .NET 1.1 on a Windows 2000 server. I have two files C:\Inetpub\wwwroot\test\test.aspx...
36
by: pearl146 | last post by:
Hi, I have some database files (.MDF, .LDF,...) on the server. When I try to delete them, the warning "Cannot delete file: There has been a sharing violation. The source or destination file may...
4
by: Jerry Spence1 | last post by:
I'm doing: Dim Contents() As String = System.IO.File.ReadAllLines("C:\MyFile.txt") with upwards of 100,000 lines. This is a brilliantly simple and fast way of creating an array from a text...
0
by: john garvey | last post by:
I have a small web site running on Windows 7 with IIS7 it is written in classic ASP with an ActiveX dll that connects to and extracts/ writes/ deletes data from the database. The database is an accdb...
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
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
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,...
1
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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
muto222
php
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.