Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Access to the path Access to the path '' is denied
Previous
 
Next
New Post
10/24/2008 5:59 AM
 

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.

 
New Post
10/24/2008 6:16 AM
 

I assume, either .Net framework or File System denies access to paths outside the installation directory.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Access to the path Access to the path '' is denied


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out