Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > General Computer Support > Access to the path ... is denied

Reply
Thread Tools

Access to the path ... is denied

 
 
calvinkwoo3000 calvinkwoo3000 is offline
Junior Member
Join Date: Oct 2008
Posts: 1
 
      10-24-2008
Hi All,



I develop an web application which will read a file data from another server directory and insert to database. example : \\abcabc\financedata\PA\mthData.123.

Below is my coding

Try


Using objReader As StreamReader = New StreamReader("\\abcabc\financedata\PA\mthData.123" )

Do While Not objReader.EndOfStream
strLine = objReader.ReadLine()
str1 = strLine.Substring(6, 4)
str2 = strLine.Substring(10, 2)
str3 = CDbl(strLine.Substring(134, 10))
' Insert data to server
bln = dbAccess.importComm_P("I", str1, str2, str3)
Loop
objReader.Close()
Label3.Text = "Success!"
End Using
Catch ex As Exception
Label3.Text = "File mthData.123 not found!"
Label3.Text &= ex.Message

End Try



when i run this at localhost (http://localhost:4207/ttt/filename.aspx)

It working success!

but when i move the application file to Development server,

when i run it at (http://10.100.10.10/ttt/filename.aspx or http://servername.com/ttt/filename.aspx)

it show me File mthData.123 not found! Access to the path '\\abcabc\financedata\PA\mthData.123' is denied



May i know what happen and what can i do to solve it,

Thanks.
 
Reply With Quote
 
 
 
 
johny84 johny84 is offline
Junior Member
Join Date: Oct 2008
Posts: 10
 
      11-05-2008
It seems like you have not copied all the necessary files.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very annoying error: Access to the path is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity Jay ASP .Net 2 08-20-2007 07:38 PM
403 Forbidden: You were denied access because: Access denied by access control list Southern Kiwi NZ Computing 6 03-19-2006 05:19 AM
"Access to the path <path> is denied" but it shouldn't be. Kent Tegels ASP .Net Security 0 08-26-2004 04:43 PM
Access to the path is denied Theerachet Pratoommanee ASP .Net 1 12-30-2003 09:03 AM
Access to the path ...\\dynamic_images is denied. What Happens??? cg ASP .Net 0 07-02-2003 07:29 AM



Advertisments