0
我使用MongoDB.Web成員提供了以下錯誤:錯誤使用MongoDB.Web:MongoDB.Driver.SafeModeResult MongoDB.Driver.MongoCollection.Insert(!! 0)
Method not found: 'MongoDB.Driver.SafeModeResult MongoDB.Driver.MongoCollection.Insert(!!0)'.
我有最簡單的實現:
- Visual Studio速成2012
- 空的網站項目(VB.NET)與標準的Index.aspx添加
- 的NuGet包:MongoDB.Web 1.2, mongocsharpdriver 1.7
- 的MongoDB數據庫版本2.2.3
- 的Windows 7 64位
(蒙戈的所有元素今天新鮮下載。)
我從複製並粘貼成員資格提供web.config中的細節FreshLogic網站,並只修改database
和collection
屬性來引用我所需的集合。
我在Page.Load
事件我的Index.aspx的一行代碼:
Membership.CreateUser("fred124243", "Passw0rd$123")
我得到上述錯誤,當我運行的解決方案。我可以看到我的集合被創建,所以解決方案正在與MongoDB進行通信。
任何幫助非常感謝!