I have a website that dynamically instantiates an instance of a class
using Reflection from another Assembly. Within that class there is a
method that calls a webservice. The webservice is a standard MS Proxy
class that inherits from SoapHttpClientProtocol.
Currently the DLL that is loaded via webapp resides in the BIN
directory of the application. Due to some deployment requirements the
DLL needs to be changed to another directory. When I do this any of
the methods on that DLL that is called via reflection throws an
exception (all other relfected methods work fine).
As far as i can tell the file is accessible, the path in the
exception below is valid and the file exists. I have set the
permissions to that file to everyone/fullcontrol.
--- EXCEPTION DETAIL --
Unable to generate a temporary class (result=1). error CS0009:
Metadata file '\\storage\i drive\application\pagebusinesslogics\clienta
\pagebusinesslogicclienta1.dll' could not be opened -- 'Access is
denied.'
Invoker Inner Exception Stack Trace: at
System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns,
CompilerParameters parameters, Evidence evidence) at
System.Xml.Serialization.TempAssembly.GenerateAsse mbly(XmlMapping[]
xmlMappings, Type[] types, String defaultNamespace, Evidence evidence,
CompilerParameters parameters, Assembly assembly, Hashtable
assemblies) at
System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings,
Type[] types, String defaultNamespace, String location, Evidence
evidence) at
System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[]
mappings, Type type) at
System.Web.Services.Protocols.SoapClientType..ctor (Type type) at
System.Web.Services.Protocols.SoapHttpClientProtoc ol..ctor() at
PageBusinessLogicclienta.unsecure.externalres.Rese rvations..ctor() at
PageBusinessLogicclienta.cPageBusinessLogicclienta .GetXMLProductAvailabilityAndPrice(Object
productID, Object startDate, Object endDate, Object occupancy, Object
availableonly, Object duration) at
PageBusinessLogicclienta.cPageBusinessLogicclienta .GetXMLProductAvailabilityAndPrice(Object
productid, Object scanyears, Object availableonly)