|
When I want to insert a document to a collection witch the collectionName is Chineses characters ,there is a exception happened,
The collectionName is 中国,when I insert a document to this collection,the exception happened..
{ "err" : "invalid ns: mongodb.中国", "code" : 10094, "n" : 0,
"connectionId" : 15, "ok" : 1.0 }
at
MongoDB.Driver.Internal.MongoConnection.SendMessage(MongoRequestMessage
message, SafeMode safeMode)
at MongoDB.Driver.MongoCollection.InsertBatch(Type nominalType,
IEnumerable documents, MongoInsertOptions options)
at MongoDB.Driver.MongoCollection.Insert(Type nominalType, Object
document, MongoInsertOptions options)
at MongoDB.Driver.MongoCollection.Insert(Type nominalType, Object
document, SafeMode safeMode)
at MongoDB.Driver.MongoCollection.Insert[TNominalType](TNominalType
document, SafeMode safeMode)
at
MagicMongoDBTool.Module.MongoDBHelper.InsertEmptyDocument(MongoCollection
mongoCol, Boolean safeMode) in C:\Work Shop\MagicMongoDBTool
\MagicMongoDBTool\Module\MongoDBHelper_Opration.cs:line 344
at
MagicMongoDBTool.frmMain.AddDocumentToolStripMenuItem_Click(Object
sender, EventArgs e) in C:\Work Shop\MagicMongoDBTool\MagicMongoDBTool
\Form\frmMain.cs:line 1505
|