Hi,
I am running AN on a remote machine, after compiling the solution I take all of the console files, and copy them to the remote machine. when executing the console on the remote machine I get this:
?- System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) ?- System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) ?- System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) ?- System.Activator.CreateInstance(Type type, Boolean nonPublic) ?- System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) ?- System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark) ?- System.Activator.CreateInstance(String assemblyName, String typeName) ?- Arachnode.SiteCrawler.Core.Engine.GetObjectHandle(String assemblyName, String typeName) ?- Arachnode.SiteCrawler.Crawler.LoadCrawlActions(ArachnodeDAO arachnodeDAO) ?- Arachnode.SiteCrawler.Crawler..ctor(CrawlMode crawlMode, Boolean enableRenderers)
When debugging this I see that the error happens on LoadCrawlActions->CreateInstance
and it happens on the crawlaction that I created....:\
What do I do wrong? maybe the plugin project did not compiled well?
please advice.
OK, the solution was to check the constructors on the custom plugins to check for errors, null reference exceptions, etc.
I will add code in the section that raised the error to display the inner exception as well.
For best service when you require assistance:
Skype: arachnodedotnet
0.) It would be preferrable to be able to debug, so if you can attach a debugger, do this.
1.) Remove all of the rows out of the rules and actions that aren't AN defaults.
2.) If still failing, try recompiling, and comment the sections in the Crawler that load the actions and rules.
3.) If you cannot attach a debugger, add MessageBoxes that list which rule is actually having the problem. The first rule, action? Which one?
Can you please explain how do you debug AN with remote machine? the VS is installed on PC1, and I run the console(release version) on PC2. so how do I do the debug herem I am not sure.
After renove all rows and move the custom plugin off, everything works fine.
about messageboxes...I have done this, and I see that the 4th action (the custom plugin) has a poblem. I don't know the specific error(the error message in yellow looks like: ??? ?????? ??? ??? ?? ? ???)
If the custom plugin has the problem, does it work OK on a machine that has VS installed, or from the source?
If your plugin references are using a directory path, does the account executing the console have access?
Post a picture of your plugin config tables?
The Assembly and/or TypeName reference paths are probably incorrect. Why your encoding is switched, I don't know.
Remote debugging:
arachnode.net: If the custom plugin has the problem, does it work OK on a machine that has VS installed, or from the source?
It worls ust fine from VS, and even when running the release files that built by VS....when copy this files to remote machine, then the error.
arachnode.net:If your plugin references are using a directory path, does the account executing the console have access?
Yes I have access and using explorer I can see the folders.
arachnode.net: The Assembly and/or TypeName reference paths are probably incorrect. Why your encoding is switched, I don't know.
You are absolutly right...there are problems with path m but how do you fix this:
ID CrawlActionTypeID AssemblyName TypeName IsEnabled Order Settings1 1 Arachnode.Plugins Arachnode.Plugins.CrawlActions.Anonymizer 0 1 AnonymizerAbsoluteUri=http://anonymouse.org/cgi-bin/anon-www.cgi/2 3 Arachnode.Plugins Arachnode.Plugins.CrawlActions.ManageLuceneDotNetIndexes 0 1 AutoCommit=true|LuceneDotNetIndexDirectory=\\192.168.0.1\E\DEVELOPMENT\2.5\Console\bin\Debug\LuceneDotNetIndex|CheckIndexes=false|IndexFiles=true|IndexImages=true|IndexWebPages=true|RebuildIndexOnLoad=false|FileIDLowerBound=1|FileIDUpperBound=100000|ImageIDLowerBound=1|ImageIDUpperBound=100000|WebPageIDLowerBound=1|WebPageIDUpperBound=1000007 3 Arachnode.Plugins Arachnode.Plugins.CrawlActions.BayesianClassifier 0 2 Class1ExemplarDirectory=|Class2ExemplarDirectory=10 3 Arachnode.Plugins Arachnode.Plugins.CrawlActions.MasterPagesMusicSela 1 3 AnonymizerAbsoluteUri=http://anonymouse.org/cgi-bin/anon-www.cgi/11 3 Arachnode.Plugins Arachnode.Plugins.CrawlActions.MasterPagesKarusela 0 1 AnonymizerAbsoluteUri=http://anonymouse.org/cgi-bin/anon-www.cgi/14 3 Arachnode.SiteCrawler Arachnode.SiteCrawler.Actions.Renderer 0 3 NULL
I am perplexed, ATM. Let me think about it...