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  |  

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


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Accessing application properties from scheduler
Previous Previous
 
Next Next
New Post 7/11/2007 11:13 AM
User is offline Tim Sherrill
28 posts
10th Ranked






Accessing application properties from scheduler 

I've created a scheduler task that will query my database of projects and create an index on disk.  I need to specify the directory of the physical path.  In a module I would use this code:

string path = global.Application.Request.MapPath("~");

However, since the scheduler isn't part of a page view, I don't have access to the global or application object. How do I get to the globals object?

Thanks, Tim


Add a time zone display to your website!
MyDNN TimeZones
 
New Post 11/26/2007 6:44 PM
User is offline Kikkoman
3 posts
10th Ranked


Re: Accessing application properties from scheduler 

I have the same exact issue so I was wondering if there was a solution for this.  In my case, I'm trying to create a scheduler task that creates a file and attaches to an email that is sent out to a user.  I'm having a problem creating a file as I can't get access to a server path that I can use to put the new created file.  Thanks.

 
New Post 11/27/2007 2:08 PM
User is offline Pril
142 posts
9th Ranked


Re: Accessing application properties from scheduler 

If scheduler is part of http request you can use httpcontext object.

Kind regards,

Primoz

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Accessing application properties from scheduler
 


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.

 


DNNCovered.com - Your Offshore Dotnetnuke Partner
Dnncovered.com is the only Dotnetnuke offshore outsourcing center specializes in DNN skinning and module development with lowest pricing and quality service. Our staff is dedicated to websites based on DNN and our graphic designers are creative and imaginative well enough to provide customers the complete set of skinning solutions and packages
www.dnncovered.com
PointClick.Net DNN Solutions
DotNetNuke Hosting Platform for Business and personal use.
PointClick.Net Hosted Solutions
Advanced Web Portals by Infoscaler
Infoscaler is a California based company that provides advanced Web Portals, E-commerce Sites, Database Applications and Intranet Solutions on the DotNetNuke and Microsoft.NET platforms.
www.infoscaler.com

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