sjdirect / abotx

Cross Platform C# Web crawler framework, headless browser, parallel crawler. Please star this project! +1.
https://abotx.org
131 stars 23 forks source link

Error when Inititalizing CrawlerX/ParallelCrawlEngine (System.FormatException) #1

Closed ironman1984 closed 8 years ago

ironman1984 commented 8 years ago

I have configured as guided in address but still appeared http://abotx.org/Learn/Configuration An unhandled exception of type 'error' System.FormatException 'print lỗi mscorlib.dll

Additional information: The datetime represented by the string is out of range.

when I initialize paragraph following command: var crawler = new CrawlerX();//Errror when Init object CrawlerX Here is the configuration in my app.config file:

You can send me an example using AbotX. Thanks
sjdirect commented 8 years ago

Hi, your config example above has all kinds of problems. Not sure if its github's markdown not displaying it correctly or if you got mixed up trying to put it together. Can you attach your app.config file to this thread instead of just pasting it in?

I just verified the http://abotx.org/Learn/Configuration page config works on a new project.

sjdirect commented 8 years ago

I just saw your last email had the app.config attached. I was able to copy and paste that config right in and didn't have any issues running AbotX. This is how my console app looks...

class Program
{
    static void Main(string[] args)
    {
        XmlConfigurator.Configure();
        var crawler = new CrawlerX();
        crawler.Crawl(new Uri("http://wvtesting2.com/"));
    }
}

Like i mentioned i just pasted your app.config into the app.config and everything just worked.

App.config.txt

ironman1984 commented 8 years ago

I have used above file App.config.txt and create a Console Application and build with NET Framework 4.0 but problems occur:

I have attached image file error: error abotx2

Error to appear on Visual 2012, 2013 and 2015

Please help me check problem

Thanks

ironman1984 commented 8 years ago

issues related to license? I have installed NuGet and I want to use basic License. Where can I find the license or activation license file in basic mode.

I want to use the function ParallelCrawlerEngine

sjdirect commented 8 years ago

Basic does not need a license file. I'm unable to reproduce this. Can you zip up simple solution reproduces this and attach it here?

Reopening this issue. Did you accidentally close this issue?

ironman1984 commented 8 years ago

I found a cause related to license issues (not found find file AbotX.lic). If I use beta license, there is no error, but I can not use the function ParallelCrawlerEngine.

I do not understand why when I installed NuGet but related to license issues, while free license does not require file AbotX.lic

Thanks

sjdirect commented 8 years ago

The ParallelCrawlerEngine license check bug should be fixed now. That package should be available on nuget if you update to the latest. Can you verify that this fixes your issues please?

sjdirect commented 8 years ago

I am assuming this fixed your issue.

sjdirect commented 8 years ago

Others are reporting issues related to this. Reopening to investigate with different versions of visual studio even though this user says they even see it in vs 2015.

sjdirect commented 8 years ago

Some other users of visual studio 2013 are reporting this issue when running. Created a sample project to rule out user configuration errors. One customer reported not being able to build/run forum discussion

sjdirect commented 8 years ago

Please feel free to keep replying to this thread with info on what versions of visual studio work and dont work with the sample project.

sjdirect commented 8 years ago

Ran the sample project with vs 2012 update 4 and had no issue or exceptions like reported by users. Will continue trying other versions. vs2012u4

sjdirect commented 8 years ago

Also if anyone could get me some stack traces or inner exceptions that would help. Also a screenshot of the visual studio about window like the one above so I can see exact versions as well. Thanks!

sjdirect commented 8 years ago

Ran the sample project with vs 2013 premium 4 and had no issue or exceptions like reported by users. I'm going to leave this open. However, I need some help narrowing down specific versions of visual studio and .net to see if we can narrow this down further. vs2013prem

ghost commented 8 years ago

Please check the attached screen shots for more details. I'm still having the same issue.

image

image

image

My configuration is same as in the tutorial under "Full Configuration Example" https://abotx.org/Learn/Configuration

sjdirect commented 8 years ago

Thanks for the pictures of the stacktrace. It at least gave me an idea of what might be wrong.

I just updated AbotX to 1.0.25 and the sample project. Please try it and let me know you are still having the same issue.

ghost commented 8 years ago

Hi Steven,

Thank you. The sample project worked. I will give a try with parallel engine. Will keep you posted with the update.

Cheers Minhaj

sjdirect commented 8 years ago

Great to hear that. This is related to https://github.com/dnauck/Portable.Licensing/issues/26#issuecomment-166155341. I will close this in a few weeks if I don't hear about anyone else having this issue.

For those to lazy to scroll up, updating AbotX to version 1.0.25 should solve this issue.

sjdirect commented 8 years ago

Haven't heard any more of this issue