Re: [mongodb-user] Cannot resolve Assembly or Windows Metadata file 'System.Data.dll'

525 views
Skip to first unread message

Robert Stam

unread,
Mar 23, 2013, 9:23:58 PM3/23/13
to mongod...@googlegroups.com
Sounds like you need to add a reference to System.Data.dll to your Visual Studio project.

On Sat, Mar 23, 2013 at 3:40 PM, Ahsan Ashfaq <ahsanat...@gmail.com> wrote:
I just created a new windows 8 app in c#/XML and download mongodb c# driver and add its reference in my project and follows the rest of tutorial , but when i try to run my app now its saying 


Cannot resolve Assembly or Windows Metadata file 'System.Data.dll'

Type universe cannot resolve assembly: System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.


Please help me thanks in advance .

--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
 
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

craiggwilson

unread,
Mar 24, 2013, 4:11:22 PM3/24/13
to mongod...@googlegroups.com
Hi Ahsan,
  System.Data is not available in Metro Apps (Windows 8 Apps).  This is a Microsoft decision.  As we are currently only compiling for .NET 3.5, we are currently not in a position to support a portable library format.  Regardless, the general advice is that your Windows 8 app shouldn't be talking directly to a database, SQL Server or MongoDB alike.  Rather, you should expose access to your data via web services either using REST or Soap.

Let me know if you need further guidance.  In 2.0, we'll look into building a Portable library format.
Reply all
Reply to author
Forward
0 new messages