<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:47:31 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-4200] MongoDB.Driver connections fail in .net core 3.1 Azure Functions (v3)</title>
                <link>https://jira.mongodb.org/browse/CSHARP-4200</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h4&gt;

&lt;p&gt;When attempting to use any version of MongoDB.Driver newer than 2.14.1 in a .net core 3.1 Azure Function (v3), the following exception is thrown:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;MongoDB.Driver.Core: The type initializer for &apos;MongoDB.Driver.Core.Misc.DnsClientWrapper&apos; threw an exception. DnsClient: Error resolving name servers. DnsClient: Could not load file or assembly &apos;Microsoft.Win32.Registry, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos;. The system cannot find the file specified.&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;This occurs regardless of whether the correct version of Microsoft.Win32.Registry is installed.&#160;&#160;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;Pleaseprovidetheversionofthedriver.Ifapplicable%2CpleaseprovidetheMongoDBserverversionandtopology%28standalone%2Creplicaset%2Corshardedcluster%29.&quot;&gt;&lt;/a&gt;Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).&lt;/h4&gt;

&lt;p&gt;v2.15.0 and higher&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;HowtoReproduce&quot;&gt;&lt;/a&gt;How to Reproduce&lt;/h4&gt;

&lt;p&gt;Create a C# .net core 3.1 Azure http trigger Function, add MongoDB.Driver v2.15.0+ and attempt to connect to a MongoDB instance.&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;AdditionalBackground&quot;&gt;&lt;/a&gt;Additional Background&lt;/h4&gt;

&lt;p&gt;The error occurs regardless of whether dependency injection is used in the function&lt;/p&gt;</description>
                <environment></environment>
        <key id="2063727">CSHARP-4200</key>
            <summary>MongoDB.Driver connections fail in .net core 3.1 Azure Functions (v3)</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="boris.dogadov@mongodb.com">Boris Dogadov</assignee>
                                    <reporter username="msundquist@onebridge.tech">Mark Sundquist</reporter>
                        <labels>
                    </labels>
                <created>Tue, 7 Jun 2022 16:28:43 +0000</created>
                <updated>Sat, 28 Oct 2023 11:47:12 +0000</updated>
                            <resolved>Tue, 14 Jun 2022 18:10:39 +0000</resolved>
                                                    <fixVersion>2.16.1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4630144" author="xgen-internal-githook" created="Tue, 21 Jun 2022 18:36:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;BorisDog&apos;, &apos;email&apos;: &apos;BorisDog@users.noreply.github.com&apos;, &apos;username&apos;: &apos;BorisDog&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-4200&quot; title=&quot;MongoDB.Driver connections fail in .net core 3.1 Azure Functions (v3)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-4200&quot;&gt;&lt;del&gt;CSHARP-4200&lt;/del&gt;&lt;/a&gt;: DnsClient version update (#818)&lt;/p&gt;

&lt;p&gt;MongoDB.Driver connections fail in .net core 3.1 Azure Functions (v3)&lt;br/&gt;
Branch: v2.16.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/31bd36fdd280787635c0fd5c96e1e8b128379707&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/31bd36fdd280787635c0fd5c96e1e8b128379707&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4615119" author="xgen-internal-githook" created="Tue, 14 Jun 2022 16:58:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;BorisDog&apos;, &apos;email&apos;: &apos;BorisDog@users.noreply.github.com&apos;, &apos;username&apos;: &apos;BorisDog&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-4200&quot; title=&quot;MongoDB.Driver connections fail in .net core 3.1 Azure Functions (v3)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-4200&quot;&gt;&lt;del&gt;CSHARP-4200&lt;/del&gt;&lt;/a&gt;: DnsClient version update (#818)&lt;/p&gt;

&lt;p&gt;MongoDB.Driver connections fail in .net core 3.1 Azure Functions (v3)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/66662c85aee7a7f0d3b9c134813bff0fbb37b276&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/66662c85aee7a7f0d3b9c134813bff0fbb37b276&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4603162" author="JIRAUSER1257742" created="Wed, 8 Jun 2022 20:01:00 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=msundquist%40onebridge.tech&quot; class=&quot;user-hover&quot; rel=&quot;msundquist@onebridge.tech&quot;&gt;msundquist@onebridge.tech&lt;/a&gt;&#160;&lt;/p&gt;

&lt;p&gt;Looks like the underlying issue is probability due to some .net core compatibility in Azure Functions, as DnsClient.NET&#160;is not able to use Microsoft.Win32.Registry assembly. We submitted a &lt;a href=&quot;https://github.com/MichaCo/DnsClient.NET/issues/162&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;new issue&lt;/a&gt; to track that.&lt;br/&gt;
A possible workaround would be upgrading to Azure Functions (V4), .net 6 (seems that this is fixed in that version). We will update of any additional workarounds if found.&lt;/p&gt;

&lt;p&gt;Please follow this ticket for further updates.&lt;/p&gt;</comment>
                            <comment id="4600333" author="JIRAUSER1257742" created="Tue, 7 Jun 2022 18:33:23 +0000"  >&lt;p&gt;Hi Mark,&lt;br/&gt;
Thank you the bug report, we are looking into it.&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|i0gmsw:</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>