Loading remote assembly from the webservice with reflection

Posted by Myat Htut on Stack Overflow See other posts from Stack Overflow or by Myat Htut
Published on 2010-04-18T15:32:33Z Indexed on 2010/04/18 15:43 UTC
Read the original article Hit count: 353

I am using Assembly.LoadFrom within a web service to load assemblies from a web site. but the problem is it is in the virutal directory and the server.mappath parses the url like \share\mydll.dll and loadform method failed. Is there anyway to reference dll from the remote location?

I've tried passing the url (http:\localhost\downloadable\mydll.dll) and again it got "Could not load file or assembly 'http:\localhost\downloadable\mydll.dll' or one of its dependencies. HTTP download of assemblies has been disabled for this appdomain. (Exception from HRESULT: 0x80131048)"

© Stack Overflow or respective owner

Related posts about web-services

Related posts about system.reflection