<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:42:59 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-2595] BsonClassMap type initializer throws exception</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2595</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;The exception is thrown at: &lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/blob/660658d4253f06506c1d60aae7ef68745ab609b2/src/MongoDB.Bson/Serialization/BsonClassMap.cs#L40&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/blob/660658d4253f06506c1d60aae7ef68745ab609b2/src/MongoDB.Bson/Serialization/BsonClassMap.cs#L40&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;It used to work up to and including dotnet core 3.0 preview3.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Today I upgraded to preview4, causing this breaking change.&lt;/p&gt;

&lt;p&gt;I researched the issue briefly, apparently the new core version does not include the&#160;System.Runtime.Serialization.Formatters reference in CoreLib (so the&#160;System.Runtime.Serialization.FormatterServices type cannot be loaded this way).&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Assembly.Load(&quot;System.Runtime.Serialization.Formatters&quot;) will work instead of&#160; typeof(string).GetTypeInfo().Assembly as a method to load the assembly, but it will not work with .net framework (so there is some versioning code required probably).&lt;/p&gt;</description>
                <environment>dotnet core 3.0 preview4</environment>
        <key id="741702">CSHARP-2595</key>
            <summary>BsonClassMap type initializer throws exception</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="13201">Fixed</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="mcduck">Konstantinos Sambanis</reporter>
                        <labels>
                    </labels>
                <created>Fri, 19 Apr 2019 09:50:00 +0000</created>
                <updated>Sat, 28 Oct 2023 11:48:45 +0000</updated>
                            <resolved>Tue, 14 May 2019 13:35:40 +0000</resolved>
                                    <version>2.8.0</version>
                                    <fixVersion>2.8.1</fixVersion>
                                    <component>Serialization</component>
                                        <votes>5</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="2252500" author="xgen-internal-githook" created="Mon, 20 May 2019 14:15:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;vincentkam&apos;, &apos;email&apos;: &apos;vincent.kam@10gen.com&apos;, &apos;username&apos;: &apos;vincentkam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2595&quot; title=&quot;BsonClassMap type initializer throws exception&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2595&quot;&gt;&lt;del&gt;CSHARP-2595&lt;/del&gt;&lt;/a&gt;: Update contributors list&lt;br/&gt;
Branch: v2.8.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/970f8df1ef7b9825d28f8b5354f1568d0945b2b4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/970f8df1ef7b9825d28f8b5354f1568d0945b2b4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2251070" author="xgen-internal-githook" created="Fri, 17 May 2019 19:49:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;vincentkam&apos;, &apos;email&apos;: &apos;vincent.kam@10gen.com&apos;, &apos;username&apos;: &apos;vincentkam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2595&quot; title=&quot;BsonClassMap type initializer throws exception&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2595&quot;&gt;&lt;del&gt;CSHARP-2595&lt;/del&gt;&lt;/a&gt;: Update contributors list&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/e06d93619173311cfa3c40504e07536797d4888e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/e06d93619173311cfa3c40504e07536797d4888e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2245144" author="xgen-internal-githook" created="Mon, 13 May 2019 21:07:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;robert@robertstam.org&apos;, &apos;name&apos;: &apos;rstam&apos;, &apos;username&apos;: &apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2595&quot; title=&quot;BsonClassMap type initializer throws exception&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2595&quot;&gt;&lt;del&gt;CSHARP-2595&lt;/del&gt;&lt;/a&gt;: Refactor BsonClassMap to work around changes in .NET Core 3.0.&lt;br/&gt;
Branch: v2.8.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/2cedfa5d1aa254257299b590794dd102612f924a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/2cedfa5d1aa254257299b590794dd102612f924a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2245143" author="xgen-internal-githook" created="Mon, 13 May 2019 21:07:32 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;konh@yandex.ru&apos;, &apos;name&apos;: &apos;KonH&apos;, &apos;username&apos;: &apos;KonH&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2595&quot; title=&quot;BsonClassMap type initializer throws exception&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2595&quot;&gt;&lt;del&gt;CSHARP-2595&lt;/del&gt;&lt;/a&gt;: Fix initialization on .NET Core 3.0 preview 4.&lt;/p&gt;

&lt;p&gt;This change cover .NET Framework and .NET Core ways to get System.Runtime.Serialization.FormatterServices type instance.&lt;br/&gt;
Branch: v2.8.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/53073cb5feed92f33af22886e050abd0e1ee0b03&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/53073cb5feed92f33af22886e050abd0e1ee0b03&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2245116" author="xgen-internal-githook" created="Mon, 13 May 2019 20:51:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;robert@robertstam.org&apos;, &apos;name&apos;: &apos;rstam&apos;, &apos;username&apos;: &apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2595&quot; title=&quot;BsonClassMap type initializer throws exception&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2595&quot;&gt;&lt;del&gt;CSHARP-2595&lt;/del&gt;&lt;/a&gt;: Refactor BsonClassMap to work around changes in .NET Core 3.0.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/8483a6f0101829dbc1e82bc7928e2c84aba9b028&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/8483a6f0101829dbc1e82bc7928e2c84aba9b028&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2245115" author="xgen-internal-githook" created="Mon, 13 May 2019 20:51:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;konh@yandex.ru&apos;, &apos;name&apos;: &apos;KonH&apos;, &apos;username&apos;: &apos;KonH&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2595&quot; title=&quot;BsonClassMap type initializer throws exception&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2595&quot;&gt;&lt;del&gt;CSHARP-2595&lt;/del&gt;&lt;/a&gt;: Fix initialization on .NET Core 3.0 preview 4.&lt;/p&gt;

&lt;p&gt;This change cover .NET Framework and .NET Core ways to get System.Runtime.Serialization.FormatterServices type instance.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/a2b2bb16e7c55d24b4530517f81d3db3d7bd1b38&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/a2b2bb16e7c55d24b4530517f81d3db3d7bd1b38&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2219859" author="konh" created="Sat, 20 Apr 2019 10:43:09 +0000"  >&lt;p&gt;Hello! I submitted PR with proposed changes -&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/pull/372&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/pull/372&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="740429">CSHARP-2592</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|hukgwv:</customfieldvalue>

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