These forums have been archived and are now read-only.
The new forums are live and can be found at https://forums.eveonline.com/
[EveLib] A .NET library for EveXML, CREST, EveCentral, and more
Developer of EveLib and EveAuthUtility
using System;using System.Linq;using System.Windows.Forms;using System.IO;using eZet.EveLib.EveCrestModule;namespace EveCrestTypesTest{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void textBox1_TextChanged(object sender, EventArgs e) { } private void Form1_Load(object sender, EventArgs e) { LoadTypes(); } private void LoadTypes() { textBox1.Text += "Setting up.\r\n"; EveCrest crest = new EveCrest(); var root = crest.GetRoot(); textBox1.Text += "Testing types loading.\r\n"; var types = root.Query(r => r.MarketTypes); var list = types.Items.ToList(); while (types.Next != null) { try { types = types.Query(t => t.Next); list.AddRange(types.Items); textBox1.Text += list.Count + " types loaded.\r\n"; } catch(AggregateException e) { File.AppendAllText(Application.StartupPath + "\\logs\\log.txt", e.InnerException.ToString() + "\r\n\r\n"); MessageBox.Show("Wrote error to file."); System.Environment.Exit(e.InnerException.HResult); } } textBox1.Text += "Types loaded."; } }}
eZet.EveLib.EveCrestModule.Exceptions.EveCrestException: The query parameter page were cast able to type integerType, error invalid literal for long() with base 10: '2?' ---> System.Net.WebException: The remote server returned an error: (415) Unsupported Media Type.