System.UnauthorizedAccessException: Access to the path Denied
-
hi all, i am trying to save an image into table, but it is not working. and an exception is raised. here i give u code in which the error occurs. error line is 40. Line 38: con.Open() Line 39: da.Fill(ds, "Pub_info") Line 40: Dim fs As New FileStream"C:\image\sample.jpeg",FileMode.OpenOrCreate, FileAccess.Read) Line 41: Dim MyData(fs.Length) As Byte Line 42: fs.Read(MyData, 0, fs.Length) pls help me.
-
hi all, i am trying to save an image into table, but it is not working. and an exception is raised. here i give u code in which the error occurs. error line is 40. Line 38: con.Open() Line 39: da.Fill(ds, "Pub_info") Line 40: Dim fs As New FileStream"C:\image\sample.jpeg",FileMode.OpenOrCreate, FileAccess.Read) Line 41: Dim MyData(fs.Length) As Byte Line 42: fs.Read(MyData, 0, fs.Length) pls help me.
Its security issue Add ASP.NET/Debugger and Make the folder availbale to your application
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "