[ADVANCED-DOTNET] FileLoadException thrown on remoting using IIS

2003-02-21 Thread Saurin Vasani
I'm trying to create a remote data access component that runs under IIS and queries a SQLServer db. on a different machine, and returns the results to the remoting client. The IIS box is a server running Win2K Server. I'm impersonating the client user by passing the credentials while making the re

Re: [ADVANCED-DOTNET] AppDomain.Load failure

2003-02-21 Thread Charlie Poole
Ah... My mistake... I didn't look at your code closely enough the first time. The load into the helper domain succeeds. But System.Reflection.Assembly is a MarshalByRef object, so when Load returns the reference, the helper dll must /also/ be loaded in the current AppDomain. That's what fails. Fo

[ADVANCED-DOTNET] Embedding resources using Reflection.Emit

2003-02-21 Thread Rene Rodriguez
Hello, I am creating an assembly using Reflection.Emit. In the assembly I create also a class deriving from System.Windows.Forms.Form which uses resources. The resources live in a .resource file, which I want to embed into the assembly using ModuleBuilder.DefineResource(...) as in the following cod

Re: [ADVANCED-DOTNET] AppDomain.Load failure

2003-02-21 Thread Rick Warta
The assembly I'm attempting to load using AppDomain.Load only references System, System.Data, and System.XML, which are all FCL (v1.0.3705) assemblies located in the GAC. To narrow the problem down I used the C# Class Library wizard with the default single .cs file, in which is a single [Serializa

Re: [ADVANCED-DOTNET] BeginInvoke and co. Used to be delegate vs threadpool

2003-02-21 Thread Ian Griffiths
That certainly looks like an error in the docs - on the page in question it also says at the top that the delegate is executed on the thread that the control's underlying handle was created on. Which seems to contradict the note. That note is appropriate to most BeginInvokes but not Control.Begin