Calling a Webservice in Reflected class

Calling a Webservice in Reflected class

am 12.10.2007 11:33:15 von dev

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.GenerateAssembly(XmlMa pping[]
xmlMappings, Type[] types, String defaultNamespace, Evidence evidence,
CompilerParameters parameters, Assembly assembly, Hashtable
assemblies) at
System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings,
Type[] types, String defaultNamespace, String location, Evidence
evidence) at
System.Xml.Serialization.XmlSerializer.FromMappings(XmlMappi ng[]
mappings, Type type) at
System.Web.Services.Protocols.SoapClientType..ctor(Type type) at
System.Web.Services.Protocols.SoapHttpClientProtocol..ctor() at
PageBusinessLogicclienta.unsecure.externalres.Reservations.. ctor() at
PageBusinessLogicclienta.cPageBusinessLogicclienta.GetXMLPro ductAvailabilityAndPrice(Object
productID, Object startDate, Object endDate, Object occupancy, Object
availableonly, Object duration) at
PageBusinessLogicclienta.cPageBusinessLogicclienta.GetXMLPro ductAvailabilityAndPrice(Object
productid, Object scanyears, Object availableonly)