문제

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