Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2007

Tip: Looking for answers? Try searching our database.

Webservice can't write a file.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WinDev - 07 Feb 2007 16:57 GMT
We got a webservice that will allow a user to upload a file and then it saves
the file somewhere. We are doing this as a web service because the front end
is a windows program.

Problem is, when we try and upload the file, we get the following error
message at the web service:

"Exception Occurred. Error: Logon failure: unknown user name or bad password."

This is when we are trying to open the file on the web server.

If the problem the ASP.Net account doesn't have rights to write/create to
the directory it's going to or is it something else. My network guy has set
up the directory so the ASP.NET account has everything except full control.

Any thoughts.
WinDev - 09 Feb 2007 14:35 GMT
Can anybody help with this ? I can't explain why this doesn't work. It works
when we connect locally (although I think the local ASP.Net account is a full
administrator ) it won't work when we go to the delivered web server.

I have checked the server ASP.Net account and it has full complete rights to
the directory I'm trying to write to.

Any thoughts?

> We got a webservice that will allow a user to upload a file and then it saves
> the file somewhere. We are doing this as a web service because the front end
[quoted text clipped - 12 lines]
>
> Any thoughts.
Michel Posseth [MCP] - 10 Feb 2007 09:17 GMT
Personally i think it is plain wrong to give your asp.net process these
rights , every web connected process should have as few rights as is
absolutely necesary ( hint these ar the default settings normally )
,,, i think it is more a program design thingy ..

How would i solve this ?

I would write the file stream to a database   ( SQL server )  , on the local
system i would run a local process in my designated user context that would
stream the database contents to a file
i think that your tech guy  should be much happier with this solution .

regards

Michel posseth

> Can anybody help with this ? I can't explain why this doesn't work. It
> works
[quoted text clipped - 29 lines]
>>
>> Any thoughts.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.