473,320 Members | 1,945 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,320 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 3219
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
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.