Re: [ADVANCED-DOTNET] Creating an instance into another AppDomain

2002-10-08 Thread Pierre Greborio
Ok, but in this case I don't have to call another constructor, but a static method. Then the binding should be done on GetInstance method. Pierre --- Pierre Greborio [EMAIL PROTECTED] http://www.pierregreborio.it ---

Re: [ADVANCED-DOTNET] Strongly-Typed DataSets vs. Strongly-Typed Collections

2002-10-08 Thread Ben Kloosterman
I got that from some conversation by the developers on the micrososft site. The main issue I have run into is typed dataTables are not serializable. Most people (including my self) use GetChanges and send the Dataset but this sends an untyped dataset. Regards , Ben -Original Messag

Re: [ADVANCED-DOTNET] Strongly-Typed DataSets vs. Strongly-Typed Collections

2002-10-08 Thread Ben Kloosterman
True but the whole idea of XML is so it is easy to communicate with other systems . Just send them the XML and let them use it as they would and other piece of data. Nobody would write a Java version of a Dataset nor do you need to - just send the XML back. This works well with clients and partn

Re: [ADVANCED-DOTNET] Strongly-Typed DataSets vs. Strongly-Typed Collections

2002-10-08 Thread Ben Kloosterman
Why not a full automatic Data access and mapping layer that uses datasets ? I have used these in the past. Datasets performance is ok except they take too much memory , but that is not really an issue as its pretty cheap to buy mem. So with my Dataset automatic DataLayer I can straight away writ

Re: [ADVANCED-DOTNET] WeakReference and "Aggressive" GC under release mode.

2002-10-08 Thread Ben Kloosterman
GC.Collect() will clean out all weak references and somethings like the Cache class ( in Web) calls it when the machine is low on memory. I wrote a Cache based on the Cache class. This checks the total amount of memory on the machine and the amount the current process is using and trims the cache

Re: [ADVANCED-DOTNET] New ASP.NET Project

2002-10-08 Thread Charles Chao
Hi Patrick, Thanks for your suggestion. I'm just wondering if there is any reason you think I should reinstall IIS. IIS (v5.0) on the server I'm working has been working with "regular" ASP. IIS was installed before DOT NET Framework SDK. I also unistalled and reinstalled .NET Framework SDK (i

[ADVANCED-DOTNET] Activating COM server from C#

2002-10-08 Thread Jeff Miller
Hi, I have a Windows application which exports COM interfaces. When it starts up, it invokes CoRegisterClassObject() to register its class objects with the following flags: dwClsContext = CLSCTX_LOCAL_SERVER flags = REGCLS_MULTIPLEUSE My intent is that a single instance or activation of the ap

Re: [ADVANCED-DOTNET] Strongly-Typed DataSets vs. Strongly-Typed Collections

2002-10-08 Thread Franklin Gray
from the thread "Strongly-Typed DataSets vs. Strongly-Typed Collections" I got the following "Typed Datasets have a few minor issues ( eg remoting issues) , but I still use them in my form based apps , for remoting and the middleTier I use untyped datasets. I figure if the dataset changes so will

[ADVANCED-DOTNET] remoting,URI and throughput

2002-10-08 Thread Manuel Costa
Hi, I have a Master/Slave application, which is using remoting (TCPChannel) for communications. Right now i'm testing a computational domain with a level of granularity not super high not fine grained, though. The average CPU usage of all machines is about 70% and the system is well balanced g

[ADVANCED-DOTNET] WeakReference and "Aggressive" GC under release mode.

2002-10-08 Thread Sinnott, John
I need help building a useable in-memory object cache. My first thought was to use the WeakReference class to refer to all items, in the cache, allowing for GC to remove these items when LOW ON MEMORY. This worked while I compiled in debug mode. Now that I am testing in release mode, however, I

Re: [ADVANCED-DOTNET] Remoting using Windows Control Library host ed in IE

2002-10-08 Thread Nantz, Brian
Well your form would still display if you caught the Security Exception. However it sounds like you have the security part down. I would test the object though a windows service host (much easier to debug than in IIS) and see if it truly is singleton. That would eliminate IIS. IIS may be creatin

Re: [ADVANCED-DOTNET] Remoting using Windows Control Library host ed in IE

2002-10-08 Thread GiriKrishna Tirumala
Hello Brain, I have used mscorcfg.msc tool and Adjusted Zone Security to FullTrust. I have also increased the Assembly Trust for the Windows Control Library. Iam able to display the Control on IE which would not have happened if there was security issues. My Singleton Remote object doe

Re: [ADVANCED-DOTNET] New ASP.NET Project

2002-10-08 Thread Patrick Li
Try reinstall IIS and run the following link. http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q306005&; -Original Message- From: Charles Chao [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 9:09 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] New ASP.NET Project

Re: [ADVANCED-DOTNET] Remoting using Windows Control Library host ed in IE

2002-10-08 Thread Nantz, Brian
I didn't think remoting was allowed in a partially trusted environment (unless you changed the .net CAS on the client). I think you have to use web services, but the security in this part of the .Net runtime has changed with every release. To a look at the following links. (Watch for the line w

Re: [ADVANCED-DOTNET] Strongly-Typed DataSets vs. Strongly-Typed Collections

2002-10-08 Thread Thomas Tomiczek
IMHO you guys see this totally wrong :-) OK, lets start the flame. Yes, strong typed collections ARE evil. But what about strong typed CLASSES? The problem you have with flexibility here is that you THINK you have to change so much logic then. Thats just a missing piece here. You need a full aut

[ADVANCED-DOTNET] Remoting using Windows Control Library hosted in IE

2002-10-08 Thread GiriKrishna Tirumala
Hello, I have a singleton remote object hosted under IIS. I have a winform client which invokes method on the remote object . This triggers an event on the remote object and invokes the call back function on various client subscribed to it. But when the windows control library hosted under IE

Re: [ADVANCED-DOTNET] XmlTextReader Class

2002-10-08 Thread Csaba Gero
Hi, > From: Nauman Laghari [mailto:[EMAIL PROTECTED]] > Is there any way I can reset the state of the XmlTextReader > object in the 'Run' Method? you could create the XmlTextReader on a stream, and can reset that stream, like this: FileStream xmlFile = new FileStream('books.xml'); XmlTextRead

Re: [ADVANCED-DOTNET] XmlTextReader Class

2002-10-08 Thread Philip Nelson
--- Nauman Laghari <[EMAIL PROTECTED]> wrote: > Well, the problem remains even if I move forward. > > I have another question. > > How can I make a Clone for XmlTextReader object ? Why not just create a new instance? __ Do you Yahoo!? Faith Hill -

Re: [ADVANCED-DOTNET] Creating an instance into another AppDomain

2002-10-08 Thread Mark Bugeja
The big, nasty overload of CreateInstanceAndUnwrap allows you to use a constructor other than the default. public object CreateInstanceAndUnwrap( string assemblyName, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture

Re: [ADVANCED-DOTNET] XmlTextReader Class

2002-10-08 Thread Nauman Laghari
Well, the problem remains even if I move forward. I have another question. How can I make a Clone for XmlTextReader object ? -Original Message- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED]]On Behalf Of Pierre Greborio Sent: Tuesday, October 08, 2002 10:0

Re: [ADVANCED-DOTNET] Creating an instance into another AppDomain

2002-10-08 Thread Csaba Gero
Hi, > From: Pierre Greborio [mailto:[EMAIL PROTECTED]] > That's a nice solution, thank you. Anyway, is it possible to > Bind CreateInstance to another method instead of the default > constructor ? AppDomain.CreateInstanceAndUnwrap(...) has an overload, that takes (amongst others) an object ar

Re: [ADVANCED-DOTNET] Strongly-Typed DataSets vs. Strongly-Typed Collections

2002-10-08 Thread Robert Chartier
Another thing to consider..which im sure im not the first to mention it, is how is this very complex xml which the dataset generates hindering integration with non-.NET systems? Something as simple as classic VB (STK 2/3) attempting to consume the standard .NET "DataSet service" would be tiresome

Re: [ADVANCED-DOTNET] Strongly-Typed DataSets vs. Strongly-Typed Collections

2002-10-08 Thread Ben Kloosterman
This is specially true if you tie it to a database. If you make one change to the data structure ( common in a new development project) have a look at teh amont of work that needs to e changed. I go with datasets unless I need extreme performance. Actually the performacnce of datasets is not too

[ADVANCED-DOTNET] IConstructionReturnMessage interception

2002-10-08 Thread Sean Hederman
Hi. New to the list so please be patient if I make any mistakes. I'm looking creating an Aspect-Oriented Programming framework. In order to do this I need to intercept the IMethodCallMessage, IMethodReturnMessage, IConstructionCallMessage, and IConstructionReturnMessage messages. I have successf

Re: [ADVANCED-DOTNET] New ASP.NET Project

2002-10-08 Thread Charles Chao
Hi Joe, Thanks so much for your suggestion. I really appreciate it. Unfornately, I still have the problem. First, I tried what you suggested. That didn't work. Second, I found a book that suggests that I also need to set userName to 'System' in processModel section, and assign 'Act as part o

Re: [ADVANCED-DOTNET] XmlTextReader Class

2002-10-08 Thread Pierre Greborio
Hi Nauman, Getti the definition of XmlTextReader from SDK doc you can't go back on the stream "Represents a reader that provides fast, non-cached, forward-only access to XML data.". You have several solutions: 1) Read the XML stream again 2) Use an XPathDocument (XPathNavigator) getting specific

Re: [ADVANCED-DOTNET] Remoting Similar to COM REGCLS_SINGLEUSE

2002-10-08 Thread Chad Yost
Trying this again after updating subject -Original Message- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED]] On Behalf Of Chad Yost Sent: Wednesday, October 02, 2002 1:07 PM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] Before I ask my questions, here is

Re: [ADVANCED-DOTNET] Strongly-Typed DataSets vs. Strongly-Typed Collections

2002-10-08 Thread Philip Nelson
> Since now it's easy to make/use a collection for databinding, I guess > most of the reasons for using a dataset are eliminated. > It sure would be nice to see if a DataSet is significantly worse than a collection. When you think about it, and given an axiom I really believe: "premature optimiz

Re: [ADVANCED-DOTNET] Strongly-Typed DataSets vs. Strongly-Typed Collections

2002-10-08 Thread Oren Novotny
I just tested copying/pasting the code from the forum, and it works just fine for me... Maybe the code didn't download fully to the browser? It is on the long side at 19KB. I also am not sure, but there could possibly be different versions of the program with a different schema. I didn't have a