Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Custom dashboard plugins not loading
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Daniel Hommel  
View profile  
 More options Apr 20 2008, 12:38 pm
From: Daniel Hommel <daniel.hom...@it-designers.de>
Date: Sun, 20 Apr 2008 18:38:23 +0200
Local: Sun, Apr 20 2008 12:38 pm
Subject: Re: Custom dashboard plugins not loading

trey writes:
> So the proper code should look something like this:

> Uri uri = Assembly.GetExecutingAssembly().CodeBase;
> ...Path.Combine( Path.GetDirectoryName( uri.AbsolutePath ) ,
> "ccnet.*.plugin.dll" )

Here is a patch that contains the mentioned adjustment. It should work
nicely now.

regards,

Daniel

[ CodeBase.patch 1K ]
Index: project/WebDashboard/Configuration/DashboardConfigurationLoader.cs
===================================================================
--- project/WebDashboard/Configuration/DashboardConfigurationLoader.cs  (revision 3828)
+++ project/WebDashboard/Configuration/DashboardConfigurationLoader.cs  (working copy)
@@ -65,7 +65,8 @@
             {
                 newTypeTable.Add(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, searchPathDir), CONFIG_ASSEMBLY_PATTERN);
             }
-                   newTypeTable.Add(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Code Base), CONFIG_ASSEMBLY_PATTERN);
+                       Uri codeBase = new Uri(Assembly.GetExecutingAssembly().CodeBase);
+                   newTypeTable.Add(Path.GetDirectoryName(codeBase.AbsolutePath), CONFIG_ASSEMBLY_PATTERN);
                        return newTypeTable;
                }


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google