Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Problems with plugins

web-app

I created plugin for handling status changes. Source (as in documentation):

[code] using System; using CounterSoft.GeminiLib; using System.IO; using System.Diagnostics;

namespace MyGeminiPlugins { public class KeeperBuildPlugin : AbstractIssueListener { public KeeperBuildPlugin() { }

    public override void IssueCreated(IssueEventArgs args)
    {
        if(!EventLog.SourceExists("MyGeminiSource"))
        {
            EventLog.CreateEventSource("MyGeminiSource", "MyNewGeminiLog");
        }

        // Create an EventLog instance and assign its source.
        EventLog myLog = new EventLog();
        myLog.Source = "MyGeminiSource";

        // Write an informational entry to the event log.    
        myLog.WriteEntry("Hello, World!");


        try
        {

        }
        catch (Exception ex)
        {
            GeminiHelper.LogException(ex);
        }
    }

}

} [/code]

I compiled it and place result KeeperTools2.dll in bin/plugins directory. Run Gemini, changed status for any issue. It does not work! There is no messages in EventViewer. Then I used FileMonitor from sysinternals.com, and noticed that no one access to my KeeperTools2.dll. I check Web.config. There is an option: [code] [/code]

Help me, please!

Zak
· 1
Zak
Replies (6)
helpful
0
not helpful

Please check the error log, you should get errors there.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

There are 6 errors in error log when I change status of issue. No plugin dll's existing in bin/plugins (except CounterSoft.GeminiPlugins.dll - standard one)

When I placed my plugin dll - KeeperTools2.dll in bin/plugins - there are same 6 errors in error log after changing status of issue.


Zak
· 1
Zak
helpful
0
not helpful

What are the errors?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Could not access 'CDO.Message' object. at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at CounterSoft.GeminiPlugins.MailPlugin.SendMail(String smtpServer, String fromEmailAddress, String subject, ArrayList emailList, String body, MailFormat format)   12/05/2006 13:06:41

Exception has been thrown by the target of an invocation. at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) Inner Exception 12/05/2006 13:06:41

Exception has been thrown by the target of an invocation. at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) Inner Exception 12/05/2006 13:06:41

The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Relaying to denied (authentication required)    Inner Exception 12/05/2006 13:06:41

The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Relaying to denied (authentication required)    Inner Exception 12/05/2006 13:06:41

Could not access 'CDO.Message' object. at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at CounterSoft.GeminiPlugins.MailPlugin.SendMail(String smtpServer, String fromEmailAddress, String subject, ArrayList emailList, String body, MailFormat format)   12/05/2006 13:06:41


Zak
· 1
Zak
helpful
0
not helpful

Does your plugin implements all the interface methods of AbstarctIssueListener?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Such code as I wrote above was in documentation. So it MUST work, doesn't, it?


Zak
· 1
Zak