Go Back   Velocity Reviews > General Computer Discussion > General Help Related Topics
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

General Help Related Topics - Access to the path ... is denied

 
Thread Tools Search this Thread
Old 10-24-2008, 10:38 AM   #1
Default Access to the path ... is denied


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.


calvinkwoo3000
calvinkwoo3000 is offline   Reply With Quote
Old 11-05-2008, 11:04 PM   #2
johny84
Junior Member
 
Join Date: Oct 2008
Posts: 10
Default
It seems like you have not copied all the necessary files.


johny84
johny84 is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
server 2003 access denied errors lockeff6 General Help Related Topics 0 07-15-2009 03:12 PM
Access Denied error while calling Windows service in web application megha Software 0 04-05-2008 10:03 AM
I cant access the MCP site T3M4N MCTS 1 03-18-2008 06:21 PM
access denied techboi General Help Related Topics 2 08-24-2007 12:56 AM
Cannot access one URL Elke General Help Related Topics 1 12-02-2006 11:36 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46