Click here to Skip to main content
15,881,248 members
Home / Discussions / Article Writing
   

Article Writing

 
QuestionEmbedding a video Pin
Benktesh Sharma15-Feb-19 18:07
Benktesh Sharma15-Feb-19 18:07 
AnswerRe: Embedding a video Pin
Sean Ewington25-Feb-19 3:24
staffSean Ewington25-Feb-19 3:24 
GeneralRe: Embedding a video Pin
Benktesh Sharma25-Feb-19 16:04
Benktesh Sharma25-Feb-19 16:04 
Questionblogs needing help Pin
Nelek12-Feb-19 19:38
protectorNelek12-Feb-19 19:38 
AnswerRe: blogs needing help Pin
Sean Ewington13-Feb-19 8:34
staffSean Ewington13-Feb-19 8:34 
QuestionC#.net windows Application Pin
Member 1414864112-Feb-19 18:50
Member 1414864112-Feb-19 18:50 
AnswerRe: C#.net windows Application Pin
Pete O'Hanlon12-Feb-19 20:34
mvePete O'Hanlon12-Feb-19 20:34 
QuestionAccess to the path is denied Pin
Lucifer Morningstar7-Feb-19 20:29
Lucifer Morningstar7-Feb-19 20:29 
Hello,

i just develop a antivirus in vb.net, and i'm getting the error below. The application needs to scan files in the given path, and i'm being denied access.

Can you explain what could be causing the error?
could it be code bug?

thanks



System.UnauthorizedAccessException
  HResult=0x80070005
  Message=Access to the path 'C:\Users\admin\AppData\Local\Application Data' is denied.
  Source=mscorlib
  StackTrace:
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileSystemEnumerableIterator`1.CommonInit()
   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
   at System.IO.DirectoryInfo.InternalGetFiles(String searchPattern, SearchOption searchOption)
   at System.IO.DirectoryInfo.GetFiles(String searchPattern, SearchOption searchOption)
   at New_Design.Custom_Scan.Getfiles(String Path) in C:\Users\admin\source\repos\New Design\New Design\Custom Scan.vb:line 30
   at New_Design.Custom_Scan.Getfiles(String Path) in C:\Users\admin\source\repos\New Design\New Design\Custom Scan.vb:line 34
   at New_Design.Custom_Scan.Getfiles(String Path) in C:\Users\admin\source\repos\New Design\New Design\Custom Scan.vb:line 34
   at New_Design.Custom_Scan.Scan(String Path) in C:\Users\admin\source\repos\New Design\New Design\Custom Scan.vb:line 61
   at New_Design.Custom_Scan.BackgroundWorker1_DoWork(Object sender, DoWorkEventArgs e) in C:\Users\admin\source\repos\New Design\New Design\Custom Scan.vb:line 121
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

AnswerRe: Access to the path is denied Pin
Richard MacCutchan7-Feb-19 22:40
mveRichard MacCutchan7-Feb-19 22:40 
QuestionAbout some articles in the vote list Pin
Nelek5-Feb-19 19:38
protectorNelek5-Feb-19 19:38 
AnswerRe: About some articles in the vote list Pin
Sean Ewington6-Feb-19 5:58
staffSean Ewington6-Feb-19 5:58 
GeneralRe: About some articles in the vote list Pin
Nelek6-Feb-19 10:18
protectorNelek6-Feb-19 10:18 
GeneralRe: About some articles in the vote list Pin
Nelek6-Feb-19 10:21
protectorNelek6-Feb-19 10:21 
GeneralRe: About some articles in the vote list Pin
Sean Ewington6-Feb-19 10:43
staffSean Ewington6-Feb-19 10:43 
GeneralRe: About some articles in the vote list Pin
Nelek6-Feb-19 19:47
protectorNelek6-Feb-19 19:47 
QuestionEditorial Note in a wrong article Pin
Nelek30-Jan-19 1:17
protectorNelek30-Jan-19 1:17 
AnswerRe: Editorial Note in a wrong article Pin
Thomas Daniels30-Jan-19 1:35
mentorThomas Daniels30-Jan-19 1:35 
GeneralRe: Editorial Note in a wrong article Pin
Nelek30-Jan-19 2:21
protectorNelek30-Jan-19 2:21 
PraiseRe: Editorial Note in a wrong article Pin
Thomas Daniels30-Jan-19 2:42
mentorThomas Daniels30-Jan-19 2:42 
GeneralRe: Editorial Note in a wrong article Pin
Nelek30-Jan-19 3:23
protectorNelek30-Jan-19 3:23 
QuestionBlogs needing help Pin
Nelek27-Jan-19 19:03
protectorNelek27-Jan-19 19:03 
AnswerRe: Blogs needing help Pin
Nelek27-Jan-19 21:21
protectorNelek27-Jan-19 21:21 
GeneralRe: Blogs needing help Pin
OriginalGriff27-Jan-19 21:26
mveOriginalGriff27-Jan-19 21:26 
AnswerRe: Blogs needing help Pin
Sean Ewington28-Jan-19 6:01
staffSean Ewington28-Jan-19 6:01 
GeneralThank you to all CodeProject staff - you're doing a great job. Final wish - let's fix the gif as well Pin
Издислав Издиславов24-Jan-19 9:13
Издислав Издиславов24-Jan-19 9:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.