Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 706585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:10:58+00:00 2026-05-14T04:10:58+00:00

I wrote these lines in My Application start event: var mongo = new Mongo();

  • 0

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.

UPDATE

I got also that the same problem is happening while trying this tutorial: http://www.mongodb.org/display/DOCS/Tutorial#Tutorial-GettingADatabaseConnection
using the shell.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:10:58+00:00Added an answer on May 14, 2026 at 4:10 am

    i found the problem, the problem that mongodb is pointing to the default database directory c:\data\db

    now i will try to get how to change this directory to another one.

    http://www.mongodb.org/display/DOCS/Starting+and+Stopping+Mongo

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote these lines in my code: CFUUIDRef identifier = CFUUIDCreate(NULL); NSString *identifierString =
I've got in an ASP.NET application this process : Start a connection Start a
I am appending two files in my .htaccess file and write these lines: php_value
In serialization mechanism,we are wrote the object into stream using objectinputstream and object outputstream.These
I sent this to KennyTM (has all the private framework headers on GitHub) but
I want to start my daemon with my application. In the command line, I
I wrote a simple Tkinter based Python application that reads text from a serial
I am using the IIS Powershell snapin to configure a new web application from
I wrote a very simple C# application to send Tweets between to Windows machines.
While it seems that this has been asked many times before, but there's a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.