Hi, I'm trying to create a custom notification sender task.
I've created a dummy task for testing purposes, but can't get it to work.
I hope someone can guide me the right direction.
Works fine.
The method completes without exceptions, but in the event log I get this message :
Event ID: 154355
Event type: Error
Event time: 9/17/2014 2:41:31 PM
Source: CMSEmailNotificationGateway
Event code: EXCEPTION
User ID: 65
User name: public
IP address:
Description:
Message: The type initializer for 'CMS.EmailEngine.EmailHelper' threw an exception.
Exception type: System.TypeInitializationException
Stack Trace:
at CMS.EmailEngine.EmailHelper.GetSiteId(String siteName)
at CMS.EmailEngine.EmailSender.SendEmail(String siteName, EmailMessage message, Boolean sendImmediately, String setName, Int32 setRelatedId)
at CMS.Notifications.CMSEmailNotificationGateway.SendNotification()
Message: Could not load file or assembly 'CMS.FileSystemStorage' or one of its dependencies. The system cannot find the file specified.
Exception type: System.IO.FileNotFoundException
Stack Trace:
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at CMS.Base.ClassHelper.GetAssemblyInternal(String assemblyName)
at CMS.IO.AbstractStorageProvider.get_ProviderAssembly()
at CMS.IO.StorageProvider.CreateDirectoryProviderObject()
at CMS.IO.AbstractStorageProvider.get_DirectoryProviderObject()
at CMS.IO.DirectoryHelper.EnsureDiskPathInternal(String path, String startingPath)
at CMS.IO.DirectoryHelper.EnsureDiskPath(String path, String startingPath)
at CMS.EmailEngine.EmailHelper..cctor()
Machine name: IDOG-W7
Event URL:
URL referrer:
User agent: