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.0How to create a new class library indotnetnuke? Getting Desperate.How to create a new class library indotnetnuke? Getting Desperate.
Previous
 
Next
New Post
12/16/2007 7:54 PM
 

What is the right way to create a new class library in the dotnetnuke frame work?

Ok I have tried a few things that I would have tought were correct, but they don't seem to work for me.

I tried adding a class to App_Code directory using the Add new item menu option, but there is no option to set that item as a class library... only a class.

I also tried adding a new class library from the very top level of the dotnetnuke (source installation) which it would let me do, but for the life of me, I can assign the dotnetnuke.dll and the DotNetNuke.DNNScheduler.dll and the error checking tells me that DotNetNuke.Services.Scheduling.SchedulerClient is an undefined type.

 

Imports

System

Imports

System.Collections

Imports

System.Configuration

Imports

System.Data

using

System;

 

Imports DotNetNuke

Imports

DotNetNuke.Services.Scheduling

Imports

 

 

 

 

DotNetNuke.Services.Scheduling.SchedulerClient

Namespace

 

 

#

IdeaRockets.EmailPastDuePublic Class EmailPastDue2Inherits DotNetNuke.Services.Scheduling.SchedulerClientRegion "Constructors"

 

 

 

 

 

Public Sub New(ByVal objScheduleHistoryItem As DotNetNuke.Services.Scheduling.ScheduleHistoryItem)MyBase.new()Me.ScheduleHistoryItem = objScheduleHistoryItemEnd Sub

#

End Region

#

Region "Private Methods"

 

 

 

 

 

Private Sub UpdateEmail()Dim objEmailPastDueController As EmailPastDueController = New EmailPastDueController' Update Email

 

Me.Status = "Sending Email Notices"

 

Me.Status = "Email Notices Sent Successfully"

 

Me.ScheduleHistoryItem.Succeeded = True

 

'End If

 

End Sub

#

End Region

#

Region "Public Methods"

 

''' -----------------------------------------------------------------------------

 

''' <summary>

 

''' DoWork does th4 Scheduler work

 

''' </summary>

 

''' <history>

 

''' [cnurse] 03/14/2006 documented

 

''' </history>

 

''' -----------------------------------------------------------------------------

 

 

Public Overrides Sub DoWork()Try

 

'notification that the event is progressing

 

Me.Progressing() 'OPTIONAL

UpdateEmail()

 

Me.ScheduleHistoryItem.Succeeded = True 'REQUIRED

 

 

Me.ScheduleHistoryItem.AddLogNote("Email Notice Service completed.")Catch exc As Exception 'REQUIRED

 

Me.ScheduleHistoryItem.Succeeded = False 'REQUIRED

 

Me.ScheduleHistoryItem.AddLogNote("Email Notice Service failed." + exc.ToString) 'OPTIONAL

 

'notification that we have errored

 

Me.Errored(exc) 'REQUIRED

 

'log the exception

LogException(exc)

'OPTIONAL

 

End Try

 

End Sub

#

End Region

 

End

 

 

End Class Namespace 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to create a new class library indotnetnuke? Getting Desperate.How to create a new class library indotnetnuke? Getting Desperate.


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