473,396 Members | 2,011 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,396 software developers and data experts.

cannot access file

Hi,

I am trying to write text data to an xml file via an
XMLTextWriter object. When I try to initialize the
XmlTextReader object, I get an IOException: The process
cannot access the file "path/filename here" because it is
being used by another process. Any idea what could be
causing this? Is it because the file is on IIS? Just to
note, I don't think it is IIS because I have already run
IISRESET and it did not help. I am using Visual
Studio .NET 2003 on a Windows 2000 Pro machine.

Thanks for any feedback you can give.

Nov 11 '05 #1
2 3223
Did you try to to save this file outside of the website... ie.
c:/filename.txt?

"Brian Smith" <sm****@mantech-wva.com> wrote in message
news:00****************************@phx.gbl...
Hi,

I am trying to write text data to an xml file via an
XMLTextWriter object. When I try to initialize the
XmlTextReader object, I get an IOException: The process
cannot access the file "path/filename here" because it is
being used by another process. Any idea what could be
causing this? Is it because the file is on IIS? Just to
note, I don't think it is IIS because I have already run
IISRESET and it did not help. I am using Visual
Studio .NET 2003 on a Windows 2000 Pro machine.

Thanks for any feedback you can give.

Nov 11 '05 #2
Yes, I already thought that maybe IIS was doing something
with the file and tried saving it locally (not in
wwwroot). I still get the same error message.

-----Original Message-----
Did you try to to save this file outside of the website... ie.c:/filename.txt?

"Brian Smith" <sm****@mantech-wva.com> wrote in message
news:00****************************@phx.gbl...
Hi,

I am trying to write text data to an xml file via an
XMLTextWriter object. When I try to initialize the
XmlTextReader object, I get an IOException: The process
cannot access the file "path/filename here" because it is being used by another process. Any idea what could be
causing this? Is it because the file is on IIS? Just to
note, I don't think it is IIS because I have already run
IISRESET and it did not help. I am using Visual
Studio .NET 2003 on a Windows 2000 Pro machine.

Thanks for any feedback you can give.

.

Nov 11 '05 #3

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

Similar topics

2
by: Chris Herring | last post by:
Hi there: Well, let me start off by saying that I am a Visual Studio drag and drop weenie, not a real programmer. So I tend to get confused when things do not look like the instructions said they...
9
by: Paul | last post by:
Hi, VB.NET is saying the file I am creating is in use by another process and won't complete its task of moving the file to the specified destination folder. Here is my code (the main bit...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
6
by: sambuela | last post by:
How can I write message to the file located in the wwwroot directory? It seems that IIS protect these files. Let make me cannot do the I/O writing sucessfully. I try to open file's write...
9
by: tomblower | last post by:
Access 2000 fully updated Three PCs manage data held on a server. They each have a front-end mdb file linked to tables on the server and on each PC. A problem has arisen over the following line...
6
by: JonSteng | last post by:
..Net Visual Studio Professional 2003 Version 7.1.3088 ..Net Framework 1.1 SP1 Version 1.1.4322 IIS 5.1 Windows XP Professional SP2 Micron T3000 Laptop (1.5 GHz; 1GB RAM; 40GB HD with 17GB Free)...
10
by: dermot | last post by:
I have wrriten a small windows service application in visual studio ..net 2003 which listens for incoming FTP files. These files would overwrite over time due to duplicate file names. However any...
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hello, mister I have an application web asp.net 2.0 + vs 2005 and VS 2005 Web Application Project. Its appears this error in execution: "Cannot Create/Shadow Copy '<projectname>' when that...
0
by: Tifer | last post by:
Hello, I am building my first .Net Application. The first couple of Publish and Installs I did went fine. But after a couple of builds, I get a modal dialogue box error every time upon trying...
1
by: tanya.wang | last post by:
I want to access files from a remote server so I mapped it in my server under z:\ for \\myserver\web\mysite\images\ I added this UNC path to my IIS virtual directory and name it as "upload" but I...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
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,...

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.