Hi, sorry for the x-post and thanks in advance for any help you can
provide.
I'm attempting to call a .NET 3 web service from a .NET 1.1 rich
client. I've successfully consumed the service in Visual Studio by
adding a static web reference. Unfortunately at runtime I get the
horrible exception attached below.
Is there something I've done that is obviously wrong? Which tools can
I use to investigate this problem further?
Many thanks,
Nick
Unhandled Exception: System.IO.FileNotFoundException: File or assembly
name pyiwi__w.dll, or one of its dependencies, was not found.
File name: "pyiwi__w.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 MBTestHarness.mb64srv01.SetDiagnosticsService..ctor() in c:
\scratch\mbtestharness\web references\mb64srv01\reference.cs:line 32
at MBTestHarness.Form1.button1_Click(Object sender, EventArgs e) in
c:\scratch\mbtestharness\form1.cs:line 105
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr
hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.ForThe program '[3228] MBTestHarness.exe' has
exited with code 0 (0x0).
ms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods
+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32
reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at MBTestHarness.Form1.Main() in c:\scratch\mbtestharness
\form1.cs:line 100
=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\DOCUME~1\wiltonn\LOCALS~1\Temp
\pyiwi__w.dll
LOG: Appbase = C:\Scratch\MBTestHarness\bin\Debug\
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:/DOCUME~1/wiltonn/LOCALS~1/Temp/pyiwi__w.dll.
Wor Tony - 19 Sep 2007 21:22 GMT
> Hi, sorry for the x-post and thanks in advance for any help you can
> provide.
[quoted text clipped - 74 lines]
> LOG: Attempting download of new URL
> file:///C:/DOCUME~1/wiltonn/LOCALS~1/Temp/pyiwi__w.dll.
In .net 1.1 this is usually caused by the account running asp.net not having
write access to the temp directory. It maybe the same for your web
service......
HTH

Signature
My Inbox is a temple - please remove SHOES before entering
AP