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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Schedule Class Development - CanSchedule Class Development - Can't reference DotNetNuke
Previous
 
Next
New Post
5/10/2007 2:04 PM
 

Hi.

I'm trying to make an item for use in the Scheduler. I understand that to do that, I must install my custom class into the GAC (Global Assembly Cache). To do this, my assembly needs to be "strongly named." I'm using C# Express 2005 and I think I set my assembly to be strong by signing it in the project's properties. Now when I build the project, it gives an error because DotNetNuke was not signed!

This prompted me to get the full code for DNN 4.4.1 (the version I'm using) and I tried to sign that project. I'm getting various errors doing that, because some of the assemblys DotNetNuke.Library references aren't signed and I don't have the source code. I'm guessing that after these 3 hours I've spent, there must be an easier way. Any ideas?

I'm about ready to forget about the scheduler alltogether, but I'd rather not since I want to be able to use some of DNN's functionality in my code.

Thanks.

I found out how to do the code here:
http://www.wwwcoder.com/tabid/68/type/art/parentid/224/site/6401/default.aspx

Here's the code if it even helps:


namespace MySite
{
class ScheduledTaskTest : DotNetNuke.Services.Scheduling.SchedulerClient
{

ScheduledTaskTest(DotNetNuke.Services.Scheduling.ScheduleHistoryItem objScheduleHistoryItem)
{
this.ScheduleHistoryItem = objScheduleHistoryItem;
}


public override void DoWork()
{
try
{

//do database stuff to see what emails there are

//send an email about it
DotNetNuke.Services.Mail.Mail.SendMail(...);

}
catch(Exception ex)
{
this.ScheduleHistoryItem.Succeeded = false;
this.ScheduleHistoryItem.AddLogNote("The Email failed. " + ex.ToString());
this.Errored(ref ex);
}
}
}

}

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Schedule Class Development - CanSchedule Class Development - Can't reference DotNetNuke


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