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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Unauthorized AccessException while creating a file on Hosting serverUnauthorized AccessException while creating a file on Hosting server
Previous
 
Next
New Post
2/1/2009 11:20 AM
 

I have created & uploaded a module on my DNN installation. The module was successfully installed to

"D:\hshome\ikeeduin\ike.co.in\DesktopModules\II_KeepAlive"

Clearly, DNN had read/write permissions to this path. However, the module itself is trying to create a file:

"D:\hshome\ikeeduin\ike.co.in\DesktopModules\II_KeepAlive\Response\TCM.xml"

which is failing with the following exception:

InnerException: Access to the path 'D:\hshome\ikeeduin\ike.co.in\DesktopModules\II_KeepAlive\Response\TCM.xml' is denied.
FileName:
FileLineNumber: -1
FileColumnNumber: -1
Method:
StackTrace:
Message: System.UnauthorizedAccessException: Access to the path 'D:\hshome\ikeeduin\ike.co.in\DesktopModules\II_KeepAlive\Response\TCM.xml' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding) at System.Xml.XmlDocument.Save(String filename) at Imbibe.DNN.Modules.KeepAlive.KeepAliveHandler.requestCompleted(IAsyncResult ar)
Source:

 

Probably, I am doinf something wrong. I need to write out the entire contents of a XmlDocument to this file. I have tried all:

XmlDocument.Save, new FileStream, File.WriteAllText

All of them are failing with the same exception. Can somebody please tell me what does DNN use to have read/write acccess to its installation path??

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Unauthorized AccessException while creating a file on Hosting serverUnauthorized AccessException while creating a file on Hosting server


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