Mongo connect problem using asp.net
Posted
by Amr ElGarhy
on Stack Overflow
See other posts from Stack Overflow
or by Amr ElGarhy
Published on 2010-04-07T22:56:03Z
Indexed on
2010/04/07
23:03 UTC
Read the original article
Hit count: 578
I wrote these lines in My Application start event:
var mongo = new Mongo();
mongo.Connect();
var blog = mongo.GetDatabase("Blog");
mongo.Disconnect();
but on this line: mongo.Connect();
it gave me this error:
No connection could be made because the target machine actively refused it 127.0.0.1:27017
I am a beginner using Mongodb and i am just try to make sample code to see it's power.
So i have no idea how to solve this problem.
I am using VS2008 with MongoDB.Driver on Windows7.
© Stack Overflow or respective owner