Solved

With Vb.Net 2005 how can I determine which process System.IO.IOException: The process cannot access the file

Posted on 2010-09-12
3
299 Views
Last Modified: 2012-05-10
I'm getting the following error.

System.IO.IOException: The process cannot access the file

I can't determine which process is accessing the file.

Is there some vb.net 2005 code which I can use to determine which it is  and more details ?
0
Comment
Question by:mindwarpltd
  • 2
3 Comments
 
LVL 65

Expert Comment

by:rockiroads
ID: 33657757
Assuming you have access to the code -

Have you anything in your code that accesses a file? maybe look for a variable defined as FileStream or something. Maybe even a streamreader or streamwriter or binaryreader etc

Maybe check for System.IO namespace in your code i.e. look for   Imports System.IO
0
 

Author Comment

by:mindwarpltd
ID: 33657776
Plenty, however, it code also be my virus scanner as my program searches through a lot of urls which can be suspect.
0
 
LVL 65

Accepted Solution

by:
rockiroads earned 500 total points
ID: 33657832
can u always reproduce this error in a certain scenario? maybe step thru the code (debugging) to find out where exactly the problem is.

Perhaps put try/catch around the code in order to catch these exceptions and display a message unique to that method. Maybe dump the stack trace to help out - something like

Catch ex As Exception
    MsgBox(ex.StackTrace)
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now