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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...File/Folder access of Workgorup MAchineFile/Folder access of Workgorup MAchine
Previous
 
Next
New Post
6/3/2009 7:43 AM
 

Hi there,

I know my issue is not related to Dotnetnuke but to general ASp.Net but i know that i will be getting good ideas from here.

I have an issue. I have developed one .aspx page in AP.Net 2.0 which is updating Oracle Database and has one attachment. This attachment must be saved on the a computer not connected to domain. There i have one folder called "Files". In my code i use to save the attachment file to this folder by saying \\Worgroupserver\Files. I gave enough previlages to the user on server and this folder can be accessed by windows explorer but when i try to update from ASP.Net page it give me "Unauthorized Access"

 Or even i created this folder as share with local user name and password , on my webserver i created one map drive z:  with the same username and password. I can access z: drive by using windows explorer. But when i try to save the file it give me exception as "File Part is missing"

 I am using code as below,

filename = rno.ToString.Trim &

"." & filename.Substring(filename.LastIndexOf(".") + 1)Me.FileUpload1.SaveAs(Server.MapPath(Request.ApplicationPath.Trim & "/tmp/" & filename))

 

Dim path As String = Request.PhysicalApplicationPath() & "tmp\" & filenameDim file As New IO.FileInfo(path)

file.MoveTo(

'file.MoveTo("z:\" & filename)

Kindly help me.

"\\Worgroupserver\Files\" & filename)
 
New Post
6/3/2009 11:43 AM
 

Make sure you are passing the right identity to the share. Typically ASP.Net will run under NETWORK SERVICE (IIS 6) which will NOT map between machines. You will probably have to setup imperssionation. This link may help shed some light: http://www.velocityreviews.com/forums/t81887-saving-a-file-on-a-network-folder-from-aspnet-web-application.html

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...File/Folder access of Workgorup MAchineFile/Folder access of Workgorup MAchine


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