473,396 Members | 2,061 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.

Reading and Saving XML

Hello all,

I have a webform which calls a class that loads an XML from a URL then saves
it to a file. I ran the webform from Visual Studio. It ran correctly and
creates the XML file, however when I try to open the XML file using notepad
i get the following error

"The process cannot access the file because it is being used by another
process."

Is there something i'm missing?

Thanks

A
Nov 11 '05 #1
4 1734
Did you stop your application from running?

I think Visual Studio locks this file while in debug mode.

"art a" <ar*******@yahoo.com> wrote in message
news:e5**************@TK2MSFTNGP10.phx.gbl...
Hello all,

I have a webform which calls a class that loads an XML from a URL then saves it to a file. I ran the webform from Visual Studio. It ran correctly and
creates the XML file, however when I try to open the XML file using notepad i get the following error

"The process cannot access the file because it is being used by another
process."

Is there something i'm missing?

Thanks

A

Nov 11 '05 #2
The aspx page itself does not have debug mode on and I am viewing the
webform using "View in Browser" from Visual Studio.

Art

"Chad Tamplin" <ch**********@cinfin.com> wrote in message
news:e8**************@TK2MSFTNGP11.phx.gbl...
Did you stop your application from running?

I think Visual Studio locks this file while in debug mode.

"art a" <ar*******@yahoo.com> wrote in message
news:e5**************@TK2MSFTNGP10.phx.gbl...
Hello all,

I have a webform which calls a class that loads an XML from a URL then

saves
it to a file. I ran the webform from Visual Studio. It ran correctly and
creates the XML file, however when I try to open the XML file using

notepad
i get the following error

"The process cannot access the file because it is being used by another process."

Is there something i'm missing?

Thanks

A


Nov 11 '05 #3
Where are you storing this file in relation to the website? Can you post
the code that writes the xml file?

Chad

"art a" <ar*******@yahoo.com> wrote in message
news:uS**************@TK2MSFTNGP12.phx.gbl...
The aspx page itself does not have debug mode on and I am viewing the
webform using "View in Browser" from Visual Studio.

Art

"Chad Tamplin" <ch**********@cinfin.com> wrote in message
news:e8**************@TK2MSFTNGP11.phx.gbl...
Did you stop your application from running?

I think Visual Studio locks this file while in debug mode.

"art a" <ar*******@yahoo.com> wrote in message
news:e5**************@TK2MSFTNGP10.phx.gbl...
Hello all,

I have a webform which calls a class that loads an XML from a URL then

saves
it to a file. I ran the webform from Visual Studio. It ran correctly and creates the XML file, however when I try to open the XML file using

notepad
i get the following error

"The process cannot access the file because it is being used by another process."

Is there something i'm missing?

Thanks

A



Nov 11 '05 #4
You could simply shut down the VS.NET and start it again. it will work. it
happens when the XML file is open in the editor and then after a change
thru' the webform, it gets locked in the VS.NET. simply restart the vs.net
and don't open the xml file thru' the vs.net, instead open it in textpad or
notepad.
"Chad Tamplin" <ch**********@cinfin.com> wrote in message
news:OU**************@TK2MSFTNGP11.phx.gbl...
Where are you storing this file in relation to the website? Can you post
the code that writes the xml file?

Chad

"art a" <ar*******@yahoo.com> wrote in message
news:uS**************@TK2MSFTNGP12.phx.gbl...
The aspx page itself does not have debug mode on and I am viewing the
webform using "View in Browser" from Visual Studio.

Art

"Chad Tamplin" <ch**********@cinfin.com> wrote in message
news:e8**************@TK2MSFTNGP11.phx.gbl...
Did you stop your application from running?

I think Visual Studio locks this file while in debug mode.

"art a" <ar*******@yahoo.com> wrote in message
news:e5**************@TK2MSFTNGP10.phx.gbl...
> Hello all,
>
> I have a webform which calls a class that loads an XML from a URL then saves
> it to a file. I ran the webform from Visual Studio. It ran correctly and > creates the XML file, however when I try to open the XML file using
notepad
> i get the following error
>
> "The process cannot access the file because it is being used by

another
> process."
>
> Is there something i'm missing?
>
> Thanks
>
> A
>
>



Nov 11 '05 #5

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

Similar topics

2
by: Gerald Maher | last post by:
Hi Reading in XML file, changing elements and saving back to the file, how can i do that, I want to be able to read an XML file and read out Elements. for example <name>Tom</tom> When I...
6
by: Rajorshi Biswas | last post by:
Hi folks, Suppose I have a large (1 GB) text file which I want to read in reverse. The number of characters I want to read at a time is insignificant. I'm confused as to how best to do it. Upon...
21
by: JoKur | last post by:
Hello, First let me tell you that I'm very new to C# and learning as I go. I'm trying to write a client application to communicate with a server (that I didn't write). Each message from the...
3
by: dale zhang | last post by:
Hi, I am trying to read an image from MS Access DB based on the following article: http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp The article author is using PictureBox for windows...
4
by: dale zhang | last post by:
Hi, I am trying to save and read an image from MS Access DB based on the following article: http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp Right now, I saved images without any...
1
by: Need Helps | last post by:
Hello. I'm writing an application that writes to a file a month, day, year, number of comments, then some strings for the comments. So the format for each record would look like:...
3
by: Tony Lugg | last post by:
I have an application with a document management form. When users add documents to the form, I call the API function SHGetFileInfo to get the associated large and small icons for the file. These...
0
by: Karen Grube | last post by:
Hi! I hate to bother you all with this, but I don't know how best to approach a particular task. Here's the deal: Once a month I personally (that is, in my own personal inbox on my...
0
by: PRITPAL | last post by:
Hi There, I want a code for Saving and Reading formatted text (RTF File) in MS Access using ole Objects, i want to save 20 such records in DB using VB 6.0. Plz Help
2
by: terryastone | last post by:
I have an application that reads some registry values stored in the Local Machine\Software\... key. In XP, I can see these values using RegEdit. In my application I can read the values at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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
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.