MongoDB.Web icon indicating copy to clipboard operation
MongoDB.Web copied to clipboard

Pickup connection string from appSettings

Open osuritz opened this issue 14 years ago • 5 comments

I've added the ability to pickup connection string from an appSettings entry. This makes MongoDB.Web work with a platform like AppHarbor that dynamically inserts the connection string to the MongoDB add-on in that section.

osuritz avatar Oct 06 '11 02:10 osuritz

I really like the connection string change. Any ideas why it isn't being merged in?

DonMcNamara avatar Nov 06 '11 13:11 DonMcNamara

From the last commit date, it looks like they haven't really made any contributions to the project so they probably haven't been paying attention.

On 2011-11-06, at 8:56, DonMcNamara [email protected] wrote:

I really like the connection string change. Any ideas why it isn't being merged in?


Reply to this email directly or view it on GitHub: https://github.com/freshlogic/MongoDB.Web/pull/4#issuecomment-2645502

osuritz avatar Nov 06 '11 17:11 osuritz

This feature is really useful, actually essential for cloud environment... I think that would solve an issue related to ASP.NET Web Pages (Razor) and MongoDB.Web that prevents its use at the moment!

popapps avatar Dec 06 '11 16:12 popapps

This feature is implemented in DLF mongo providers, here: http://code.google.com/p/mongoproviders/ (available on NuGet as well.)

I've only just started using it, but it seems to be decent.

DonMcNamara avatar Jan 11 '12 04:01 DonMcNamara

I think there is a problem with the last version. I'm getting this error every time:

Unable to connect to server localhost:27017: No connection could be made because the target machine actively refused it 127.0.0.1:27017.

My configuration is the following "< roleManager enabled='true' cacheRolesInCookie='true'" cookieTimeout='20' defaultProvider='MongoDBRoleProvider' > < providers > < clear / > < add name='MongoDBRoleProvider' type='MongoDB.Web.Providers.MongoDBRoleProvider' applicationName='/project' connectionStringName='mongodb://user:[email protected]:38689/db' database='db' collection='Roles' / > < /providers > < /roleManager >"

Also when I try to run the ASPnet Configuration it shows this exception: Type is not resolved for member 'MongoDB.Driver.MongoConnectionException,MongoDB.Driver, Version=1.9.2.235, Culture=neutral, PublicKeyToken=f686731cfb9cc103'

please help

fjsr3000 avatar Jul 06 '14 16:07 fjsr3000