Exception on instantiation of new Web Service stub class

  • Thread starter Thread starter Roy Kiesler
  • Start date Start date
R

Roy Kiesler

I have successfully imported a WSDL as a Web reference into my C# Outlook
add-in project, and am trying to instantiate one of the generated stub
classes as follows:

using RxWS.RxSearchServices; // Rhythmyx Web Services
....
....
try
{
RxSearchServices.SearchServices ss = new
RxSearchServices.SearchServices();
}
catch ( Exception e )
{
MessageBox.Show( e.ToString(), "Exception: " + e.Message );
return null;
}

When the 'new' statement is executed, I am getting the following exception:

---------------------------
Exception: File or assembly name hewj23rt.dll, or one of its dependencies,
was not found.
---------------------------
System.IO.FileNotFoundException: File or assembly name hewj23rt.dll, or one
of its dependencies, was not found.
File name: "hewj23rt.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.SoapClientType..ctor(Type type)
at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
at RxWS.RxSearchServices.SearchServices..ctor() in c:\documents and
settings\roykiesler\my documents\visual studio projects\rx5\rxws\web
references\rxsearchservices\reference.cs:line 36
at RxWS.WSClient.DoNamedSearch(String searchName, String sessionID) in
c:\documents and settings\roykiesler\my documents\visual studio
projects\rx5\rxws\wsclient.cs:line 111

=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\Temp\hewj23rt.dll
LOG: Appbase = C:\Microsoft\Office\Office10\
LOG: Initial PrivatePath = NULL
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:/Temp/hewj23rt.dll.
 
Back
Top