473,395 Members | 1,969 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,395 software developers and data experts.

Permission to write to local disk on a Webservice...

I have been developing winforms for a while.

I had an app, that downlods exchange rates from an html page from a website,
creating a dataset, and then writing the xml to the local drive.
Basically, when I need an old exchange rate, I already have it on my
dataset,
and whenever there is a new exchange rate, I have to do the access to the
html page...
Now I tried to make a webservice that will return an exchange rate for a
particular date,
and if works fine, as long as i don't write the xml file.
This is quite important, because if I can do so, I will record the exchange
rate,
and then next time I need it, I just pick it up...
I have been reading about permissions, but this is some right I have to give
to the webservice itself, not to my webservice user..
Thanks in advance
Nov 17 '05 #1
2 3132
Yes. Your webservice, like any ASP.NET - hosted web application, runs under
an account that typically does not have the permissions you need, for
security reasons.

You can easily modify the user account by adding:

<identity impersonate="true" userName="userThatCanWrite" password="password"
/>

to your web.config.
--Peter
"Raul Cortes" <no****@nowhere.com> wrote in message
news:Ox**************@tk2msftngp13.phx.gbl...
I have been developing winforms for a while.

I had an app, that downlods exchange rates from an html page from a
website,
creating a dataset, and then writing the xml to the local drive.
Basically, when I need an old exchange rate, I already have it on my
dataset,
and whenever there is a new exchange rate, I have to do the access to the
html page...
Now I tried to make a webservice that will return an exchange rate for a
particular date,
and if works fine, as long as i don't write the xml file.
This is quite important, because if I can do so, I will record the
exchange rate,
and then next time I need it, I just pick it up...
I have been reading about permissions, but this is some right I have to
give
to the webservice itself, not to my webservice user..
Thanks in advance

Nov 17 '05 #2
Thank you Peter, that is exactly what I was looking for!!!!
Raul

"Peter Bromberg [C# MVP]" <pb*******@yahoo.com> wrote in message
news:OJ**************@tk2msftngp13.phx.gbl...
Yes. Your webservice, like any ASP.NET - hosted web application, runs
under an account that typically does not have the permissions you need,
for security reasons.

You can easily modify the user account by adding:

<identity impersonate="true" userName="userThatCanWrite"
password="password" />

to your web.config.
--Peter
"Raul Cortes" <no****@nowhere.com> wrote in message
news:Ox**************@tk2msftngp13.phx.gbl...
I have been developing winforms for a while.

I had an app, that downlods exchange rates from an html page from a
website,
creating a dataset, and then writing the xml to the local drive.
Basically, when I need an old exchange rate, I already have it on my
dataset,
and whenever there is a new exchange rate, I have to do the access to the
html page...
Now I tried to make a webservice that will return an exchange rate for a
particular date,
and if works fine, as long as i don't write the xml file.
This is quite important, because if I can do so, I will record the
exchange rate,
and then next time I need it, I just pick it up...
I have been reading about permissions, but this is some right I have to
give
to the webservice itself, not to my webservice user..
Thanks in advance


Nov 17 '05 #3

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

Similar topics

12
by: Russ | last post by:
Hello. My new dev machine is running XP Pro. In the past all equipment has only used Windows 2000. I have had a lot of problems getting my projects up and running on the new machine. The current...
1
by: Mohan | last post by:
Hi, I have developed a .NET Windows application. I able to run(Execute) it from the local drive of my PC. If I try to execute it from the SourceControl(Clear case) or from Shared drives, then it...
9
by: TPS | last post by:
I have a virtual directory where all posted files are stored. The ASP app does not have rights to the share on the other server where the vir dir resides. What is the best way to give the asp...
2
by: Taishi | last post by:
New user of SQL Everything is on the same machine My error is close to the bottom After reading it today, I can see there is a problem with 2 dbases 'PUBS' and 'Master' There are also some...
4
by: Santaji | last post by:
Hi, We have an ASP.NET application which needs to write some files on the disk. For these we need to give ASP.NET user the Write permission for that particular folder. This is possible from...
0
by: Sachin | last post by:
Hi All, I have following scenario. 1) Server Name: Server1 Web Site: WebUI (An ASP.NET Application) Impersonation User: WebUIUser (Specified in Web.Config, under identity section)...
1
by: gilad.kapel | last post by:
Hi Some background: working with VS 2005 + Win2003 + IIS6. I have a webservice that creates (if the directory doesn't exist the webservice creates it) a directory "Temp" under the webservice...
5
by: =?Utf-8?B?UGF0Y2g2MQ==?= | last post by:
I am new to .Net programming, but I am experienced with VB6. I am using VB 2008 Express to write a small program to copy a directory structure and files from a CD to a folder on C: drive. I have...
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: 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
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?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.