2009-07-07, 20:13
ultrabrutal Wrote:You need some more exception handling in there This error is raised when I open the scraper I'm working on. The old version can open it just fine...
Code:System.ArgumentNullException: Value cannot be null.
Parameter name: value
at System.Xml.Linq.XElement.set_Value(String value)
at TechNuts.ScraperXML.ScraperSetting.Serialize() in E:\Visual Studio 2008\Projects\TechNuts\TechNuts\ScraperXML\ScraperSettings.cs:line 163
at TechNuts.ScraperXML.ScraperSettings.Serialize() in E:\Visual Studio 2008\Projects\TechNuts\TechNuts\ScraperXML\ScraperSettings.cs:line 24
at TechNuts.ScraperXML.ScraperParser.GetSettings() in E:\Visual Studio 2008\Projects\TechNuts\TechNuts\ScraperXML\ScraperParser.cs:line 443
at TechNuts.ScraperXML.ScraperInfo..ctor(String xmlPath) in E:\Visual Studio 2008\Projects\TechNuts\TechNuts\ScraperXML\ScraperInfo.cs:line 122
at ScraperXML_Test_Program_CSharp.Form1.Form1_Load(Object sender, EventArgs e) in E:\Visual Studio 2008\Projects\TechNuts\ScraperXML Test Program CSharp\Form1.cs:line 46
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
What part of your Code is crashing it? what exactley is your scraper doing when it has this problem?