trufun101

trufun101

  • NA
  • 19
  • 0

Trouble creating webservice with custom object

Jan 19 2005 2:37 PM
I have a custom object class that I'm consuming in the SoapHeader of my webservice. This class is in a seperate file, but within the same namespace as the service. The class was derived from an xml schema. The object gets passed through the header and is processed by the "import()" webmethod. I can invoke this method manually with no problem -- however, when consuming the webservice in an application, I get a "SoapException" when "import()" is invoked. I have also tried passing the object as a parameter, rather than the header, but the same error occurs. Any ideas? Thanks, -Chris B. ----------------------------- An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in system.web.services.dll Additional information: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IO.FileNotFoundException: File or assembly name l4pillnj.dll, or one of its dependencies, was not found. File name: "l4pillnj.dll" at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly() at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly() at System.Xml.Serialization.Compiler.Compile() at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings) at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings) at System.Web.Services.Protocols.SoapServerType..ctor(Type type, ProtocolsEnum versionsSupported) at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response) at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) === Pre-bind state information === LOG: Where-ref bind. Location = C:\DOCUME~1\DD5493~1\ASPNET\LOCALS~1\Temp\l4pillnj.dll LOG: Appbase = file:///C:/Inetpub/wwwroot/Importer LOG: Initial PrivatePath = bin Calling assembly : (Unknown). === LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/DOCUME~1/DD5493~1/ASPNET/LOCALS~1/Temp/l4pillnj.dll. --- End of inner exception stack trace ---