Re: [ADVANCED-DOTNET] Xml Serialization exception (bug?) with private nested classe s

2003-03-07 Thread Marsh, Drew
Ed Evans [mailto:[EMAIL PROTECTED] wrote: > The code below throws a strange exception. You'd expect it to > complain that FooStuff is inaccessable because it's private, > but instead it says: "File or assembly name giy710lb.dll, or > one of its dependencies, was not found." And to confuse the > ma

[ADVANCED-DOTNET] Xml Serialization exception (bug?) with private nested classes

2003-03-07 Thread Ed Evans
The code below throws a strange exception. You'd expect it to complain that FooStuff is inaccessable because it's private, but instead it says: "File or assembly name giy710lb.dll, or one of its dependencies, was not found." And to confuse the matter, the missing assembly in question is different e

[ADVANCED-DOTNET] Downloading files and HTTPWebRequest

2003-03-07 Thread Jason Hagar
I am trying to write an application that downloads files from an IIS web server (unprocessed, i.e. if the file is ASP, I would have the full source). So far I have been able to get a list of files using WEBDAV (I used the code from Microsoft's AppUpdater sample), but I don't know how to download a

Re: [ADVANCED-DOTNET] Updating .config files (was RE: Polymorphic XML Serialization)

2003-03-07 Thread Phil Parker
Hi Drew, thanks for your reply, please see my reply in-line: On Fri, 7 Mar 2003 11:36:56 -0500, Marsh, Drew <[EMAIL PROTECTED]> wrote: [snip] >Ok, first things first. You're right, the configuration model is intended to >be read-only. That said, there's nothing preventing you from opening the >.c

[ADVANCED-DOTNET] No app.config through HTTPS with SP2

2003-03-07 Thread Dave Thorson
It would seem that some change in service pack 2 of the framework is now preventing my app.config file from reaching the client machine when the client is accessing my application via HTTPS. After a prolonged wait the application continues without having read the file. Interestingly enough I can,

Re: [ADVANCED-DOTNET] App.config file not found when remoting win dows app deployed by IIS

2003-03-07 Thread Jim Argeropoulos
Chris Sells did an article on this http://www.ondotnet.com/pub/a/dotnet/2003/01/27/ztd.html > -Original Message- > From: Hoop Somuah [SMTP:[EMAIL PROTECTED] > Sent: Friday, March 07, 2003 11:24 AM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] App.config file not found whe

Re: [ADVANCED-DOTNET] App.config file not found when remoting windows app deployed by IIS

2003-03-07 Thread Mike Woodring (DevelopMentor)
The lack of functionality in remoting in partially trusted environments is orthogonal to how you use remoting. So it doesn't matter if you use static configuration, or do everything in code w/o using a config file. Unless you fiddle the security policy of the end users's machine, remoting won't wo

Re: [ADVANCED-DOTNET] App.config file not found when remoting windows app deployed by IIS

2003-03-07 Thread Dave Thorson
Activator.GetObject(ObjectType, ObjectUrl); Your client code would look like: Activator.GetObject(typeof(Namespace.Object), "http://localhost/virtroot/SAO.rem";); in the remoting block in your web.config file on the server: - Original Message - From: "Hoop Somuah" <[EMAIL PROTEC

Re: [ADVANCED-DOTNET] creating an instance of the remote manged c lass from an unmanage d client - Solved

2003-03-07 Thread Krishnamoorthy, Meenakshisundaram
Found a solution from a similar posting in google usergroup. An extra QI for ISession solves the problem. But not sure why. Thanks, Sundar Krishnamoorthy KLA-Tencor Corp (408) 875 7278 -Original Message- From: Krishnamoorthy, Meenakshisundaram [mailto:[EMAIL PROTECTED] Sent: Thursday, M

[ADVANCED-DOTNET] Updating .config files (was RE: Polymorphic XML Serialization)

2003-03-07 Thread Marsh, Drew
Phil Parker [mailto:[EMAIL PROTECTED] wrote: > This leads on to my next issue, which is that I'm attempting > to use the application configuration file to store settings > for certain properties on winform controls that I'm writing. > The idea being that my control's properties get serialized as >

Re: [ADVANCED-DOTNET] App.config file not found when remoting windows app deployed by IIS

2003-03-07 Thread Hoop Somuah
What if I intend to use a server activated object and thus no remoting config file? --hoop -Original Message- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Mike Woodring (DevelopMentor) Sent: Thursday, March 06, 2003 4:05 PM To: [EMAIL PROTECTE

Re: [ADVANCED-DOTNET] App.config file not found when remoting windows app deployed by IIS

2003-03-07 Thread Dave Thorson
Read all of the previous posts to this thread. I have the book, and have read it. - Original Message - From: "Inge Stubdal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 12:06 AM Subject: Re: [ADVANCED-DOTNET] App.config file not found when remoting windows app

[ADVANCED-DOTNET] Strange: removing xmlDoc.Load(c:\..) call fixes

2003-03-07 Thread Jim Moffitt
Well, in the process of "tearing down" my VB.Net "Solution" in anticipation of sending it off to someone else to analyze, I got to a point where it did the ADO.Net tricks as expected... I then hap hazardly discovered that if I commented out a xmlDoc.Load("c:\...") call, the subsequent ADO.Net code

Re: [ADVANCED-DOTNET] App.config file not found when remoting windows app deployed by IIS

2003-03-07 Thread Mike Woodring (DevelopMentor)
I think he was just indicating that he doesn't use static configuration entries to configure his client-side proxies, but rather just calls RemotingServices.Connect directly. The first argument would be the interface type he'd like the proxy to support; and the second parameter (the connection str

Re: [ADVANCED-DOTNET] MethodRef/MethodDef tokens

2003-03-07 Thread Jim Arnold
Great stuff. Thanks Fabien, Jim - Original Message - From: "Schmied Fabian" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 8:10 AM Subject: Re: [ADVANCED-DOTNET] MethodRef/MethodDef tokens > Use the ICorProfilerInfo interface to get the unmanaged metadata interf

Re: [ADVANCED-DOTNET] App.config file not found when remoting windows app deployed by IIS

2003-03-07 Thread Inge Stubdal
umm Do you mean that your remoting configuration is in the form of statements? In that case, I think you are out on a wild goose-chase :) Here is an example of a remoting section that exposes single-use objects, that I use in a web.config:

Re: [ADVANCED-DOTNET] MethodRef/MethodDef tokens

2003-03-07 Thread Schmied Fabian
I think I should point out a minor issue: those tokens are not assembly-scoped, but module-scoped. This means that if you have an assembly consisting of several modules, each module will have its own moduleref tokens, if I am not mistaken. Also, you don't have to do the parsing of the metadata

Re: [ADVANCED-DOTNET] MethodRef/MethodDef tokens

2003-03-07 Thread Schmied Fabian
Use the ICorProfilerInfo interface to get the unmanaged metadata interfaces for the module the method lives in (GetFunctionInfo to determine the moduleID, GetModuleMetadata to get the interfaces). Retrieve an IMetaDataImport (and IMetaDataAssemblyImport) interface to read out the module's metada

Re: [ADVANCED-DOTNET] Polymorphic XML Serialization

2003-03-07 Thread Phil Parker
Thanks to both Russ and Drew for your help, as I noted in a previous mail, I've done what you suggested - using the constructor which takes a type array argument, and it now seems to work well. This leads on to my next issue, which is that I'm attempting to use the application configuration file t