I'm trying to write an application that reads files off a network share. The problem is that the domain requires authentication before the application may access the share. I'm trying to use the NetworkCredential class to automate this. I have the appropriate username and password.
Please assist me in using the Network Credential class to achieve this.
I have attached some code
'Dim NetC As New System.Net.NetworkCredential
'NetC.Domain = "PRODDOM"
'NetC.UserName = "admin-s1038920"
'NetC.Password = "YY9hJ90!hH$"
--This prompts for username and password
Chart1.SaveImage(My.Settings.ImageTargetPath & My.Settings.SaveToImageName, _