<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:38:17 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-957] MongoLab collection cannot be downloaded from MVC 4 Web API</title>
                <link>https://jira.mongodb.org/browse/CSHARP-957</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;The download starts, but it cannot be saved to PC&apos;s directory.&lt;br/&gt;
This is the School controller (GET only).&lt;/p&gt;</description>
                <environment>Windows 7 Ultimate, Visual Studio 2012</environment>
        <key id="132267">CSHARP-957</key>
            <summary>MongoLab collection cannot be downloaded from MVC 4 Web API</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="rsanchez1937">Ricardo Sanchez</reporter>
                        <labels>
                            <label>question</label>
                    </labels>
                <created>Sun, 20 Apr 2014 03:58:37 +0000</created>
                <updated>Fri, 5 Apr 2019 13:59:35 +0000</updated>
                            <resolved>Sun, 20 Apr 2014 16:08:08 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="562902" author="craiggwilson" created="Fri, 25 Apr 2014 15:08:25 +0000"  >&lt;p&gt;API docs are here: &lt;a href=&quot;http://api.mongodb.org/csharp/current/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://api.mongodb.org/csharp/current/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In addition, in Visual Studio, you could always hit F12 on the type in order to go its definition.&lt;/p&gt;</comment>
                            <comment id="562899" author="rsanchez1937" created="Fri, 25 Apr 2014 15:06:57 +0000"  >&lt;p&gt;Craig,&lt;/p&gt;

&lt;p&gt;Thanks for your fast response.&lt;br/&gt;
Where can I find details on the classes and methods for the C# driver?&lt;/p&gt;

&lt;p&gt;Ricardo Sanchez&lt;/p&gt;</comment>
                            <comment id="556608" author="craiggwilson" created="Sun, 20 Apr 2014 16:08:08 +0000"  >&lt;p&gt;Hi Ricardo,&lt;br/&gt;
  We usually reserve Jira for bugs and feature requests where as this is a question. The &lt;a href=&quot;https://groups.google.com/forum/#!forum/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-users&lt;/a&gt; group is a good place to ask these types of questions.  In addition, it&apos;s generally sufficient to provide just the code that isn&apos;t working as opposed to such a large upload.&lt;/p&gt;

&lt;p&gt;  However, since we are here, I&apos;m happy to help.  I pulled down your code and see your mistake immediately.  A MongoCollection does not implement IEnumerable.  Line 29 of SchoolController is attempting to cast it to an IEnumerable, which will always result in collection being null.  You should use the FindAll() method on collection.&lt;/p&gt;

&lt;p&gt;Craig&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="41820" name="MvcApplicationMongo.zip" size="25960369" author="rsanchez1937" created="Sun, 20 Apr 2014 03:58:37 +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|hry6lj:</customfieldvalue>

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