By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,441 Members | 1,766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,441 IT Pros & Developers. It's quick & easy.

XML file and asp.net application

P: n/a
I have been developing an ASP.Net application which uses a
XML file to read data. I realized if I have to modify the
XML file to change the data, I have to stop my w3svc. I am
beginning to think it may not be such a good idea to use
an XML file to read data after all if I have to stop the
service everytime to modify its contents especially if I
am using a external web hosting service. Does anybody have
any suggestions other than using a database or comments on
this?

Thanks
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I don't have to stop anything to write to an XML file. You just need to
give the account ASPNET is running under write permission to the file.

"Madhuri Mittal" <ma***********@yahoo.com> wrote in message
news:df****************************@phx.gbl...
I have been developing an ASP.Net application which uses a
XML file to read data. I realized if I have to modify the
XML file to change the data, I have to stop my w3svc. I am
beginning to think it may not be such a good idea to use
an XML file to read data after all if I have to stop the
service everytime to modify its contents especially if I
am using a external web hosting service. Does anybody have
any suggestions other than using a database or comments on
this?

Thanks

Nov 18 '05 #2

P: n/a
You shouldn't need to stop the service. Just read the file in, change what
needs to be changed, and write the XML back to the drive.

What errors are you getting that forces you to stop the service?

"Madhuri Mittal" <ma***********@yahoo.com> wrote in message
news:df****************************@phx.gbl...
I have been developing an ASP.Net application which uses a
XML file to read data. I realized if I have to modify the
XML file to change the data, I have to stop my w3svc. I am
beginning to think it may not be such a good idea to use
an XML file to read data after all if I have to stop the
service everytime to modify its contents especially if I
am using a external web hosting service. Does anybody have
any suggestions other than using a database or comments on
this?

Thanks

Nov 18 '05 #3

P: n/a
Hello,

Thanks a lot for your reply. Basically I am not trying to
write anything into the XML file from within my program >
I just read from it. The problem is it has certain
settings ( its not the config file , just my own xml
file ) that I need to change externally of the program.
When I make the changes and try to save it, I get the
message saying 'Cannot access file:another application is
using it" ( the words are not exact by the way) . I stop
the w3svc, then I can access the file, save to it. The
reason I am concerned about this is if I use an external
hosting service to host my asp.net app, it will be a mess
if I have to change the settings often. I know the
Microsoft portal app. uses an xml file to read some
program setting...I am following the same model...

Thanks

Madhuri
-----Original Message-----
You shouldn't need to stop the service. Just read the file in, change whatneeds to be changed, and write the XML back to the drive.

What errors are you getting that forces you to stop the service?
"Madhuri Mittal" <ma***********@yahoo.com> wrote in messagenews:df****************************@phx.gbl...
I have been developing an ASP.Net application which uses a XML file to read data. I realized if I have to modify the XML file to change the data, I have to stop my w3svc. I am beginning to think it may not be such a good idea to use
an XML file to read data after all if I have to stop the
service everytime to modify its contents especially if I
am using a external web hosting service. Does anybody have any suggestions other than using a database or comments on this?

Thanks

.

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.