I am trying to read epub book using C#.NET but I am getting the following excetion: Object reference not set to instance of an object.
I am trying epub for the first time and this is where I have referred.
Code:
static void Main(string[] args)
{
try
{
Epub book = new Epub(@"d:\test.epub"); //this is the line where i am getting error
String Title = book.Title[0];
String Author = book.Creator[0];
Console.WriteLine("Name:" + Title);
Console.WriteLine("Author:" + Author);
}
catch (Exception e)
{
Console.WriteLine("Exception: " + e.Message);
}
Console.ReadKey();
}
Any ideas?? Thanks!!