I am starting to learn RavenDB. I installed Server version on the server machine, and added Client dlls to a simple console application. When I am trying to run the application, it gives me a WebException: “The request was aborted: The request was canceled.”
Here is the code:
public class Article : AbstractIndexCreationTask<Article>
{
public string Id { get; set; }
public string Text { get; set; }
public string Title { get; set; }
public Article()
{
Map = articles => from article in articles select new { article.Text };
}
}
static void Main(string[] args)
{
var ravenIntroArticle = new Article()
{
Text = "RavenDB fits into a movement that is called ...",
Title = "RavenDB Introduction",
};
var csharpUsingArticle = new Article()
{
Text = "The full value of the C# using statement ...",
Title = "Your Friend the C# Using Statement",
};
var nutsAndProteinArticle = new Article()
{
Text = "Nuts are a great source of protein ...",
Title = "Nuts and Protein",
};
using (IDocumentStore documentStore = new DocumentStore() { Url = "http://rtest01:8081" })
{
documentStore.Initialize();
using (IDocumentSession session = documentStore.OpenSession())
{
session.Store(ravenIntroArticle); // the exception happens here
session.Store(csharpUsingArticle);
session.Store(nutsAndProteinArticle);
session.SaveChanges();
}
}

Here is what happens when I try to run it on local server “http://localhost:8080“
Could you please tell what I am missing?
Thanks.
Your port 8080 in the Code Url
"http://rtest01:8080"does not match the port8081shown in the console running RavenDb Server.