Вопрос

when i use

require 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 

or

require 'rubygems'
require 'active_record'

in app.rb silverlight plugin crashing...

include System::Data

says

MemberAccessException: uninitialized constant System::Data

but System.Data.dll includes in xap file

anyone knows how i can connect to mysql database in silverlight using ruby?
P.S. i use ironruby Chiron server to generate *.xap

Это было полезно?

Решение

You are trying to setup a direct connection to your MYSQL server using silverlight. I think the trust levels in silverlight prohibit you to load the assemblies. What you should do is not using the database directly (why would you expose your database server directly?) and create a small webservice (e.g. MVC app) to handle json requests and interact that way with your data.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top