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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesPortalSettings instance when using SchedulePortalSettings instance when using Schedule
Previous
 
Next
New Post
3/22/2011 12:21 AM
 
Hi Bruce,

Well that is what I would of thought yes... but it is returning nothing.
As per this line in my previous post I am using that....
QuestionSettings = (New DotNetNuke.Entities.Modules.ModuleController).GetModuleSettings(SelectedModule)

I would of thought the more pressing issue is the PortalSettings, I have the PortalID too, but I can't get the PortalSettings which is required by the TokenProcessor, which relies on the ModuleSettings.

At the end of the day I simply want this line to work when running from the Schedule:
sURL = DotNetNuke.Common.Globals.FriendlyUrl(TabInfo, Path, PageName)

Thanks
 
New Post
3/22/2011 6:44 PM
 
Added to Gemini

DNN-15277
http://support.dotnetnuke.com/Default.aspx?p=2&i=15277


Robert Harriman
WEBMAZING.NET
AutoWebSuite / BrokerWebSuite

DNN Modules for Auto Dealers and Real Estate Professionals.

 
New Post
3/22/2011 7:56 PM
 
Craig,

when I tested this it was with a 5.6 install that was hammered on quite a bit, anyways I did a fresh install of 5.6 and it is now working as expected for me.


Robert Harriman
WEBMAZING.NET
AutoWebSuite / BrokerWebSuite

DNN Modules for Auto Dealers and Real Estate Professionals.

 
New Post
3/28/2011 2:01 AM
 
Hi Robert,

I finally got a fresh install working this morning and installed the modules etc.
I am still getting the same issue - "failed to CompileObject reference not set to an instance of an object."
This is occurring on the line DotNetNuke.Common.Globals.FriendlyUrl(TabInfo, Path, PageName), which relies on the HTTPContext, which during the scheduled job is not "present"
Any more thoughts?
 
New Post
3/28/2011 5:01 PM
Accepted Answer 
Yes using the FriendlyUrl will be a problem, what I have done is create the link like this.

Dim oPortalAliasInfo As PortalAliasInfo = CType(New PortalAliasController().GetPortalAliasArrayByPortalID(oInfoExport.PortalID).Item(0), PortalAliasInfo)
oInfoExport.DomainName = "http://" & oPortalAliasInfo.HTTPAlias
oInfoExport.TabID = New DotNetNuke.Entities.Modules.ModuleController().GetModule(oInfoExport.ModuleID).TabID
Dim url as String = oInfoExport.DomainName & "/tabid/" & oInfoExport.TabID & "/vsid/" & "2" & "/itemid/" & ListingID & "/" & glbDefaultPage



Robert Harriman
WEBMAZING.NET
AutoWebSuite / BrokerWebSuite

DNN Modules for Auto Dealers and Real Estate Professionals.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesPortalSettings instance when using SchedulePortalSettings instance when using Schedule


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