Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  File Handling
Previous Previous
 
Next Next
New Post 3/10/2008 2:33 AM
Unresolved
User is offline Snehal Dhamke
27 posts
10th Ranked


File Handling 

Hello everybody

I m using dnn4.8 and trust level is medium

I want to do file hanling in my module. I want to create file if it not exists  or  else read that file if it is exists

code:

using System.IO;

string path="C://folder//somefile.txt";

FileInfo=new FileInfo(path);

Here I got following exception

System.security.Permissions.FileIOPermission mcorlib,version 2.0.0.0 culture=natural,public token=b77a5c561934e089 failed

 
New Post 3/10/2008 6:20 AM
User is offline Snehal Dhamke
27 posts
10th Ranked


Re: File Handling 

Hey I got it

I just changed my trust level to Full and problem solved

but anyone know any other way.plz let me know

Thanks

 
New Post 3/10/2008 9:55 AM
User is offline Sebastian Leupold
14222 posts
www.deutschnetnuke.de
1st Ranked












Re: File Handling 

you should use the methods from dotnetnuke.services.filesystemutilities instead of uploading yourself.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  File Handling
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Code Endeavors, LLC
Do you Endeavor to Enhance your DotNetNuke designs by utilizing AJAX technologies to more efficient interactive web experiences
www.codeendeavors.com
T-WORX, INC.
Professional DotNetNuke Solutions
www.t-worx.com
AppTheory
Professional development for medium to large projects based on the DotNetNuke platform.
www.apptheory.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP