<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:41:23 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-2016] Azure Functions not compatible with 2.4.4</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2016</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Follow &lt;a href=&quot;https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-your-first-function-visual-studio&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-your-first-function-visual-studio&lt;/a&gt; for the full setup of VS 2017 with Azure Functions&lt;/p&gt;

&lt;p&gt;Try to run the attached project locally. When calling the function, the following error is generated:&lt;/p&gt;

&lt;p&gt;```json&lt;/p&gt;
{&quot;id&quot;:&quot;3003c9cc-40e8-4439-b45d-48d9d59ef1b3&quot;,&quot;requestId&quot;:&quot;e5cd7ecc-6bbf-41a5-aa87-ca3bdc3b6139&quot;,&quot;statusCode&quot;:500,&quot;errorCode&quot;:0,&quot;messsage&quot;:&quot;Exception while executing function: Functions.HttpTriggerCSharp -&amp;gt; Could not load file or assembly &apos;System.Runtime.InteropServices.RuntimeInformation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.&quot;,&quot;errorDetails&quot;:&quot;Microsoft.Azure.WebJobs.Host.FunctionInvocationException : Exception while executing function: Functions.HttpTriggerCSharp ---&amp;gt; System.IO.FileNotFoundException : Could not load file or assembly &apos;System.Runtime.InteropServices.RuntimeInformation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.\r\n   at MongoDB.Driver.Core.Connections.ClientDocumentHelper.CreateOSDocument()\r\n   at System.Lazy`1.CreateValue()\r\n   at System.Lazy`1.LazyInitValue()\r\n   at System.Lazy`1.get_Value()\r\n   at MongoDB.Driver.Core.Connections.ClientDocumentHelper.CreateClientDocument(String applicationName)\r\n   at MongoDB.Driver.Core.Connections.BinaryConnectionFactory..ctor(ConnectionSettings settings,IStreamFactory streamFactory,IEventSubscriber eventSubscriber)\r\n   at MongoDB.Driver.Core.Configuration.ClusterBuilder.BuildCluster()\r\n   at MongoDB.Driver.ClusterRegistry.CreateCluster(ClusterKey clusterKey)\r\n   at MongoDB.Driver.ClusterRegistry.GetOrCreateCluster(ClusterKey clusterKey)\r\n   at MongoDB.Driver.MongoClient..ctor(MongoClientSettings settings)\r\n   at MongoDB.Driver.MongoClient..ctor()\r\n   at async CreateMongoDBDoc.CreateDocFunction.Run(HttpRequestMessage req,TraceWriter log)\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at async Microsoft.Azure.WebJobs.Script.Description.FunctionInvokerBase.Invoke(Object[] parameters)\r\n   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionInvoker`1.InvokeAsync[TReflected](Object[] arguments)\r\n   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.InvokeAsync(IFunctionInvoker invoker,Object[] invokeParameters,CancellationTokenSource timeoutTokenSource,CancellationTokenSource functionCancellationTokenSource,Boolean throwOnTimeout,TimeSpan timerInterval,IFunctionInstance instance)\r\n   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithWatchersAsync(IFunctionInstance instance,IReadOnlyDictionary`2 parameters,TraceWriter traceWriter,ILogger logger,CancellationTokenSource functionCancellationTokenSource)\r\n   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(??)\r\n   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(??) \r\n   End of inner exception\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(??)\r\n   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.TryExecuteAsync(IFunctionInstance functionInstance,CancellationToken cancellationToken)\r\n   at Microsoft.Azure.WebJobs.Host.Executors.ExceptionDispatchInfoDelayedException.Throw()\r\n   at async Microsoft.Azure.WebJobs.JobHost.CallAsyncCore(MethodInfo method,IDictionary`2 arguments,CancellationToken cancellationToken)\r\n   at async Microsoft.Azure.WebJobs.Script.ScriptHost.CallAsync(String method,Dictionary`2 arguments,CancellationToken cancellationToken)\r\n   at async Microsoft.Azure.WebJobs.Script.WebHost.WebScriptHostManager.HandleRequestAsync(FunctionDescriptor function,HttpRequestMessage request,CancellationToken cancellationToken)\r\n   at async Microsoft.Azure.WebJobs.Script.WebHost.Controllers.FunctionsController.ProcessRequestAsync(HttpRequestMessage request,FunctionDescriptor function,CancellationToken cancellationToken)\r\n   at async Microsoft.Azure.WebJobs.Script.WebHost.Controllers.FunctionsController.&amp;lt;&amp;gt;c__DisplayClass3_0.&amp;lt;ExecuteAsync&amp;gt;b__0(??)\r\n   at async Microsoft.Azure.WebJobs.Extensions.Http.HttpRequestManager.ProcessRequestAsync(HttpRequestMessage request,Func`3 processRequestHandler,CancellationToken cancellationToken)\r\n   at async Microsoft.Azure.WebJobs.Script.WebHost.Controllers.FunctionsController.ExecuteAsync(HttpControllerContext controllerContext,CancellationToken cancellationToken)\r\n   at async System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage request,CancellationToken cancellationToken)\r\n   at async System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage request,CancellationToken cancellationToken)\r\n   at async Microsoft.Azure.WebJobs.Script.WebHost.Handlers.SystemTraceHandler.SendAsync(HttpRequestMessage request,CancellationToken cancellationToken)\r\n   at async Microsoft.Azure.WebJobs.Script.WebHost.Handlers.WebScriptHostHandler.SendAsync(HttpRequestMessage request,CancellationToken cancellationToken)\r\n   at async System.Web.Http.HttpServer.SendAsync(HttpRequestMessage request,CancellationToken cancellationToken)&quot;}
&lt;p&gt;```&lt;/p&gt;

&lt;p&gt;If you revert to 2.3 of the MongoDB driver, the function works fine (and connects to an Atlas)&lt;/p&gt;</description>
                <environment>Windows 10 Enterprise 14393.1480&lt;br/&gt;
Visual Studio 2017 Community Edition 15.3.0 Preview 4.0&lt;br/&gt;
Existing Microsoft Azure account</environment>
        <key id="403851">CSHARP-2016</key>
            <summary>Azure Functions not compatible with 2.4.4</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="raphael.londner">Raphael Londner</reporter>
                        <labels>
                    </labels>
                <created>Thu, 13 Jul 2017 22:57:04 +0000</created>
                <updated>Tue, 9 Jan 2018 19:21:19 +0000</updated>
                            <resolved>Tue, 9 Jan 2018 19:21:19 +0000</resolved>
                                    <version>2.4.4</version>
                                                    <component>Testing</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1678418" author="dnauck" created="Thu, 21 Sep 2017 06:37:42 +0000"  >&lt;p&gt;The problem here is a wrong NuGet dependency definition, see my comment in &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2033&quot; title=&quot;Update dependency on System.Runtime.InteropServices.RuntimeInformation to 4.3.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2033&quot;&gt;&lt;del&gt;CSHARP-2033&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can temp. fix this with an assembly redirect.&lt;/p&gt;</comment>
                            <comment id="1664496" author="rstam" created="Tue, 5 Sep 2017 15:47:43 +0000"  >&lt;p&gt;Based on the exception thrown a fix to &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2033&quot; title=&quot;Update dependency on System.Runtime.InteropServices.RuntimeInformation to 4.3.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2033&quot;&gt;&lt;del&gt;CSHARP-2033&lt;/del&gt;&lt;/a&gt; would also resolve this issue.&lt;/p&gt;</comment>
                            <comment id="1621709" author="raphael.londner" created="Thu, 13 Jul 2017 22:58:46 +0000"  >&lt;p&gt;Would love to get fix to avoid having to advise driver downgrade in planned Azure/Atlas blog post (ETA end of July 2017)&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="418200">CSHARP-2033</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="418200">CSHARP-2033</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="160904" name="CreateMongoDBDoc.zip" size="356592" author="raphael.londner" created="Thu, 13 Jul 2017 22:56:13 +0000"/>
                    </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|ht2rzb:</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>