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 / .NET Framework / New Users / October 2007

Tip: Looking for answers? Try searching our database.

FileWebRequest.Credentials work around?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tom Cole - 05 Aug 2003 15:21 GMT
Good Morning,

I've been trying to use FileWebRequest to copy data over
the network using
file share (\\server\share), and it works pretty well
except when the folder
requires authentication to access.  When I try to copy to
these folders
windows will give me an access denied message.  However,
if I try to access
the share with IE, it asks me to log in, after I do that
I can use
FileWebRequest without a problem.

Now I know from the documentation that the
FileWebRequest.Credentials is not
implemented yet, but is there a work around on this?  Can
I programmatically
(in .NET, WinAPI, or something else) log into that share
with my window
session before I use the FileWebRequest?

Thanks
Tom Cole - 05 Aug 2003 17:30 GMT
Nevermind I Found it.

Appearantly I can use the Shell Function to execute a Net
Use logon to pre-authenticate.
mkvani76 - 22 Oct 2007 03:13 GMT
>Nevermind I Found it.
>
>Appearantly I can use the Shell Function to execute a Net
>Use logon to pre-authenticate.

Can you please tell me about the "SHELL FUNCTON"?

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.