user194076
user194076

Reputation: 9027

Use .Net dll in silverlight

I have a webservice DLL. written in .Net 2 Now I want to access methods of this dll in my Silverlight app. Is it possible as of today to access .net dll from within silverlight app? I do not have source code for my dll.

Upvotes: 1

Views: 1198

Answers (5)

hkutluay
hkutluay

Reputation: 6944

Take a look Reusing .NET Assemblies in Silverlight

Upvotes: 1

Chief
Chief

Reputation: 914

If it is already a webservice then call the webservice methods from your silver light application

Upvotes: 1

Jeremy
Jeremy

Reputation: 46420

You cannot referene a non-silverlight assembly from silverlight, but you can reference a silverlight assembly from a regular .net application.

Sounds like you just want to call a web service from your silverlight application. If that is the cause you should be able to just add a web reference to your web service, so you shouldn't need to reference that dll at all I suspect.

Upvotes: 0

Andy
Andy

Reputation: 8562

You should just be able to to call the webservice from Silverlight. Do you have it setup in IIS already?

Upvotes: 0

Muthu
Muthu

Reputation: 2685

You cannot directly use a .net compiled dll in silverlight. For accessing directly with silverlight, it has to be built with ".net silverlight runtime".

Silverlight is a minified version of the .net framework.

Upvotes: 1

Related Questions