<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:37:48 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-777] System.Threading.ReaderWriterLockSlim</title>
                <link>https://jira.mongodb.org/browse/CSHARP-777</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>
&lt;p&gt;I try to use method collection.Insert( ) and I have this problem: &lt;/p&gt;


&lt;p&gt;NotImplementedException: recursionPolicy != NoRecursion not currently implemented&lt;br/&gt;
System.Threading.ReaderWriterLockSlim..ctor (LockRecursionPolicy recursionPolicy)&lt;br/&gt;
MongoDB.Bson.Serialization.BsonSerializer..cctor ()&lt;br/&gt;
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for MongoDB.Bson.Serialization.BsonSerializer&lt;br/&gt;
MongoDB.Driver.Internal.MongoConnection.RunCommandAs&lt;span class=&quot;error&quot;&gt;&amp;#91;CommandResult&amp;#93;&lt;/span&gt; (System.String databaseName, QueryFlags queryFlags, MongoDB.Driver.CommandDocument command, Boolean throwOnError)&lt;br/&gt;
MongoDB.Driver.MongoServerInstance.Ping (MongoDB.Driver.Internal.MongoConnection connection)&lt;br/&gt;
Rethrow as MongoConnectionException: Unable to connect to server localhost:27017: An exception was thrown by the type initializer for MongoDB.Bson.Serialization.BsonSerializer.&lt;br/&gt;
MongoDB.Driver.Internal.DirectMongoServerProxy.Connect (TimeSpan timeout, MongoDB.Driver.ReadPreference readPreference)&lt;br/&gt;
MongoDB.Driver.Internal.DirectMongoServerProxy.ChooseServerInstance (MongoDB.Driver.ReadPreference readPreference)&lt;br/&gt;
MongoDB.Driver.MongoServer.AcquireConnection (MongoDB.Driver.ReadPreference readPreference)&lt;br/&gt;
MongoDB.Driver.MongoCollection.InsertBatch (System.Type nominalType, IEnumerable documents, MongoDB.Driver.MongoInsertOptions options)&lt;br/&gt;
MongoDB.Driver.MongoCollection.Insert (System.Type nominalType, System.Object document, MongoDB.Driver.MongoInsertOptions options)&lt;br/&gt;
MongoDB.Driver.MongoCollection.Insert (System.Type nominalType, System.Object document)&lt;br/&gt;
MongoDB.Driver.MongoCollection.Insert&lt;span class=&quot;error&quot;&gt;&amp;#91;Task&amp;#93;&lt;/span&gt; (AssemblyCSharp.Task document)&lt;br/&gt;
MongoDB.Driver.MongoCollection`1&lt;span class=&quot;error&quot;&gt;&amp;#91;AssemblyCSharp.Task&amp;#93;&lt;/span&gt;.Insert (AssemblyCSharp.Task document)&lt;br/&gt;
AssemblyCSharp.Dal.CreateTask (AssemblyCSharp.Task task) (at Assets/AdminAds/Scripts/Dal.cs:66)&lt;br/&gt;
AssemblyCSharp.Dal..ctor () (at Assets/AdminAds/Scripts/Dal.cs:25)&lt;br/&gt;
AddNew.ClickAdd () (at Assets/AdminAds/Scripts/AddNew.cs:11)&lt;br/&gt;
UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions)&lt;br/&gt;
UIButtonMessage:Send() (at Assets/NGUI/Scripts/Interaction/UIButtonMessage.cs:77)&lt;br/&gt;
UIButtonMessage:OnClick() (at Assets/NGUI/Scripts/Interaction/UIButtonMessage.cs:56)&lt;br/&gt;
UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions)&lt;br/&gt;
UICamera:Notify(GameObject, String, Object) (at Assets/NGUI/Scripts/UI/UICamera.cs:644)&lt;br/&gt;
UICamera:ProcessTouch(Boolean, Boolean) (at Assets/NGUI/Scripts/UI/UICamera.cs:1147)&lt;br/&gt;
UICamera:ProcessMouse() (at Assets/NGUI/Scripts/UI/UICamera.cs:906)&lt;br/&gt;
UICamera:Update() (at Assets/NGUI/Scripts/UI/UICamera.cs:761)&lt;/p&gt;</description>
                <environment>Unity3D 4.1.5f, Windows 8 </environment>
        <key id="82364">CSHARP-777</key>
            <summary>System.Threading.ReaderWriterLockSlim</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="pawel.bubala">Pawel</reporter>
                        <labels>
                    </labels>
                <created>Mon, 15 Jul 2013 22:38:46 +0000</created>
                <updated>Thu, 20 Mar 2014 14:37:15 +0000</updated>
                            <resolved>Wed, 17 Jul 2013 13:25:59 +0000</resolved>
                                    <version>1.8.1</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="382269" author="pawel.bubala" created="Tue, 16 Jul 2013 16:57:48 +0000"  >&lt;p&gt;Ok, Thanks for your help and interest &lt;/p&gt;</comment>
                            <comment id="382238" author="craiggwilson" created="Tue, 16 Jul 2013 16:25:41 +0000"  >&lt;p&gt;I&apos;m sorry Pawel.  I&apos;m not going to be able to help you out here.  This seems to be very specific to Unity3D and we have no expertise with this.  Might I suggest posting your question to StackOverflow or to the Unity3D support forums?&lt;/p&gt;</comment>
                            <comment id="382237" author="pawel.bubala" created="Tue, 16 Jul 2013 16:23:26 +0000"  >&lt;p&gt;I add reference MongoDB.Bson.dll and MongoDB.Driver.dll but MongoDB.Driver.dll have reference to MongoDB.Bson and this reference can&apos;t load &lt;/p&gt;</comment>
                            <comment id="382055" author="craiggwilson" created="Tue, 16 Jul 2013 12:26:38 +0000"  >&lt;p&gt;I&apos;m sorry Pawel.  I don&apos;t know Unity3D.  It seems like you need to add a reference to Unity3D to include the MongoDB.Bson.dll.  Is that not possible?&lt;/p&gt;</comment>
                            <comment id="381944" author="pawel.bubala" created="Tue, 16 Jul 2013 08:17:10 +0000"  >&lt;p&gt;Yes, the server will listen, and the server can connect to when the program is running with VS2010, the problem is Unity3D. Thanks for your interest.&lt;/p&gt;


&lt;p&gt;    public class Entity&lt;br/&gt;
    {&lt;br/&gt;
        public ObjectId Id &lt;/p&gt;
{ get; set; }&lt;br/&gt;
        public string Name { get; set; }
&lt;p&gt;    }&lt;br/&gt;
    void Start () {&lt;br/&gt;
	    var connectionString = &quot;mongodb://localhost&quot;;&lt;br/&gt;
            var client = new MongoClient(connectionString);&lt;br/&gt;
            var server = client.GetServer();&lt;br/&gt;
            var database = server.GetDatabase(&quot;localList&quot;);&lt;br/&gt;
            var collection = database.GetCollection&amp;lt;Entity&amp;gt;(&quot;entities&quot;);&lt;/p&gt;

&lt;p&gt;            var entity = new Entity &lt;/p&gt;
{ Name = &quot;Tom&quot; }
&lt;p&gt;;&lt;/p&gt;

&lt;p&gt;           	collection.Insert(entity);&lt;br/&gt;
   }&lt;/p&gt;

&lt;p&gt;I found the problem but I can not fix it. In MongoDB.Driver.dll in references MonoDevelop says Can not Load: MongoDB.Bson!!!!!&lt;/p&gt;</comment>
                            <comment id="381761" author="craiggwilson" created="Mon, 15 Jul 2013 23:40:23 +0000"  >&lt;p&gt;Could you include the code that got you to this point.&lt;/p&gt;

&lt;p&gt;It appears as though your server at localhost:27017 isn&apos;t listening.  Are you sure the server was started.  This exception is definitely a little odd.  We&apos;ll fix that.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrro7z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>75307</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>