sethia4u / abot

Automatically exported from code.google.com/p/abot
Apache License 2.0
0 stars 0 forks source link

AutoMapper MappingException after update #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After upgrading to latest Abot version (I use sources inside my solution), I 
got a MappingException at startup:

{"Missing type map configuration or unsupported mapping.\r\n\r\nMapping 
types:\r\nInt32 -> Int64\r\nSystem.Int32 -> System.Int64\r\n\r\nDestination 
path:\r\nCrawlConfiguration.MaxPagesToCrawl.MaxPagesToCrawl\r\n\r\nSource 
value:\r\n9000"}

My Abot Configuration is:

<abot>
    <crawlBehavior maxConcurrentThreads="5" maxPagesToCrawl="9000" maxPagesToCrawlPerDomain="0" maxPageSizeInBytes="0"
                   userAgentString="Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0"
                   crawlTimeoutSeconds="0" downloadableContentTypes="text/html, text/plain" isUriRecrawlingEnabled="false"
                   isExternalPageCrawlingEnabled="false" isExternalPageLinksCrawlingEnabled="false" httpServicePointConnectionLimit="0"
                   httpRequestTimeoutInSeconds="15" httpRequestMaxAutoRedirects="5" isHttpRequestAutoRedirectsEnabled="true"
                   isHttpRequestAutomaticDecompressionEnabled="true" minAvailableMemoryRequiredInMb="0" maxMemoryUsageInMb="500"
                   maxMemoryUsageCacheTimeInSeconds="0" maxCrawlDepth="8" isForcedLinkParsingEnabled="false"  />
    <politeness isRespectRobotsDotTextEnabled="true" isRespectMetaRobotsNoFollowEnabled="false" isRespectAnchorRelNoFollowEnabled="false"
 robotsDotTextUserAgentString="viki" maxRobotsDotTextCrawlDelayInSeconds="4" minCrawlDelayPerDomainMilliSeconds="0" />
    <extensionValues>
      <!--<add key="key1" value="value1" />
      <add key="key2" value="value2" />-->
    </extensionValues>
  </abot>

Original issue reported on code.google.com by finizio...@gmail.com on 3 Feb 2014 at 3:02

GoogleCodeExporter commented 9 years ago
The demo and integration tests without issue for me. If there was a blatant 
type mismatch (like that error message implies, I think I would have seen an 
issue). When you run the Abot.Demo app, do you still see the issue? 

Original comment by sjdir...@gmail.com on 3 Feb 2014 at 3:49

GoogleCodeExporter commented 9 years ago
My fault. I had two app.config and the abot section was different between two.

FYI: note that in the new source release, there is a broken reference to 
robots.dll which is not provided within the package, I used the old one from 
the previous release.

Thanks for support

Original comment by finizio...@gmail.com on 3 Feb 2014 at 4:08

GoogleCodeExporter commented 9 years ago
Glad you figured it out. However, the new source uses git submodules for
the robots.dll and commoner.dll references which are their own git repos.
See the first section of the following tutorial that shows how to get the
source, and initialize the submodules under "Your First Build" section.

https://code.google.com/p/abot/wiki/v1d2SourceCode

Hope that helps..
Steven

Original comment by sjdir...@gmail.com on 3 Feb 2014 at 4:32

GoogleCodeExporter commented 9 years ago
After NuGet Installation of v1.2.3, I am getting a configuration error related 
to Automapper:  Could not load file or assembly 'AutoMapper, Version=3.1.1.0, 
Culture=neutral, PublicKeyToken=be96cd2c38ef1005' or one of its dependencies.  
I changed project from .Net 4.5 t 4.0; updated the Automapper via NuGet, still 
getting an error with Automapper.  

Original comment by smsmith...@aol.com on 8 Feb 2014 at 11:43

GoogleCodeExporter commented 9 years ago
Just rolled back automapper to v2.2.1 since a few people had issues after that 
update. Uninstall abot using nuget then reinstall and you should have the 
latest. Let me know if that helps your issue. 

Original comment by sjdir...@gmail.com on 9 Feb 2014 at 10:15

GoogleCodeExporter commented 9 years ago
This worked like a champ - great!  The check is in the mail...

Original comment by smsmith...@aol.com on 10 Feb 2014 at 3:33

GoogleCodeExporter commented 9 years ago

Original comment by sjdir...@gmail.com on 10 Feb 2014 at 3:40

GoogleCodeExporter commented 9 years ago
Thanks for the donation Mr. Smith. Much appreciated.

Original comment by sjdir...@gmail.com on 10 Feb 2014 at 3:45