Im currently working on an ASP.Net web app that uses Mongo as its backend. I have seen others try this and have changed my connection string in my Web.config to point to my Mongo instance on Heroku. My connection string format is as follows:
mongodb://username:password@server.mlab.com:port/database
The controllers and models built after creating a new ASP.Net MVC project with individual accounts selected have not been edited. I am unable to create new accounts or login with accounts I create through Mongo. I also received the following error:
Format of the initialization string does not conform to specification starting at index 0.
My research showed that this is typically due to a malformed connection string. I have double and triple checked my Mongo connection string but it looks right. Am I missing something?
Any help is appreciated!
---------------------------------------------
EDIT
I noticed that I had the providerName="System.Data.SqlClient" in the connection string. Removing this yields a different error:
The connection string 'DefaultConnection' in the application's configuration file does not contain the required providerName attribute.