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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAccess file in BLLAccess file in BLL
Previous
 
Next
New Post
2/22/2012 8:21 AM
 

Hello,

At the moment I'm in progress on building a module, but I ran into a small problem that I can't seem to find an answer to.

Is it possible to access a file in the BLL?

In the module I have a file called Controller.cs and I want to use an image I have located in the folder Images within the module root. Is there any code that allows me access to my file in D:\DNN6\DesktopModules\RealEstateList\Images\filenotfound.jpg

 
New Post
2/23/2012 4:00 AM
 

I think it is a simple problem.  The file access feature of .Net can resolve your problem. Also please be careful that maybe there is some permission limitation for your web application to access your file system.

Please contact us if you need  any DNN development outsource resource.


Developer in NovaSoftware, a professional oursoursing company in China(http://www.novasoftware.com/Developer/DotNetNuke.aspx). Majoring in DotNetNuke techniquche, such as custom modules development, skin implementation & DNN web site solution.
 
New Post
2/24/2012 3:14 AM
 
In your previous post "Server.Map + file" can not be used, as you make clear by deleting it.

Now you talk about "file access feature of .Net". But can you give me an example?

As a class in the BLL does not know where DotNetNuke is installed ("D:\DNN6\") and does not know where the module is installed ("DesktopModules\RealEstateList\").

I probably can find a solution in searching my module by it's friendly name, looping through the DesktopModuleController. But I was hoping for a more simple and secure solution.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAccess file in BLLAccess file in BLL


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.