![]() |
|
|
|||||||
![]() |
General Help Related Topics - Access to the path ... is denied |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 |
|
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Oct 2008
Posts: 10
|
It seems like you have not copied all the necessary files.
johny84 |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |