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 / General / July 2005

Tip: Looking for answers? Try searching our database.

File object or Persist

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dotnettester - 18 Jul 2005 15:49 GMT
I'm having hard time using FileInfo object.

Using aspupload component from Persist I can view the file like
object.FileExist(absolutePathToaFileOnNetwork) works

but it fails with FileInfo object with a file present on another machine on
the network (File Server)

Is there another/better solution?

Thnx
Bruce Barker - 18 Jul 2005 17:03 GMT
its not the FileInfo object, you need network permissions to access a
network share. impersonate a domain account first.

-- bruce (sqlwork.com)

> I'm having hard time using FileInfo object.
>
[quoted text clipped - 8 lines]
>
> Thnx
dotnettester - 18 Jul 2005 21:34 GMT
Thanks,

Permissions were the actual problem. Even granting the read permissions
didn't work, until the folder was shared.

> its not the FileInfo object, you need network permissions to access a
> network share. impersonate a domain account first.
[quoted text clipped - 13 lines]
> >
> > Thnx

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.