[ADVANCED-DOTNET] Installer Class and CAS Problems

2004-03-04 Thread SteveC
I have a VS.NET 2003 solution with a project for a ServicedComponent (lives in a COM+ Server Application for object pooling) and a project for MSI making. Both build fine and I get an MSI. I went back and added this to the ServicedComponent-inheriting class: // Ensure that writing to the Event L

[ADVANCED-DOTNET] re Fastest way to add contents of ArrayList to a DataTable

2004-01-20 Thread SteveC
You will get some more speed out of using for instead of foreach, which will get you away from multiple "Iterator lookups". ---orig Date:Sat, 17 Jan 2004 18:31:01 -0500 From:Shawn Wildermuth <[EMAIL PROTECTED]> Subject: Re: AW: [ADVANCED-DOTNET] Fastest way to add contents of ArrayList t

[ADVANCED-DOTNET] Re Removing a referenced assembly from the GAC

2004-01-10 Thread SteveC
I don't think you're supposed to do that. IIRC, the GAC location was/is subject to change, and I don't think any assumptions can be made about it like directory location. I think gacutil (or the corresponding base class that gacutil uses) will do what you want, and if it leaves file droppings, yo

[ADVANCED-DOTNET] Re re SQL Server Emulator?

2004-01-08 Thread SteveC
No, because MSDE would require me to install the database and start to write TSQL. I don't want to do that. I am thinking about a .NET assembly that will pretend that it is a real database and return a TDS stream, while it is actually not. Something that would listen on the actual SQL server por

[ADVANCED-DOTNET] SQL Server Emulator?

2004-01-06 Thread SteveC
Can anyone weigh-in on the idea of a C#-based SQL Server emulator? Something that would accept connection strings from an ODBC/OLEDB/SQL-Managed client, accept dynamic SQL or a stored procedure, and return a TDS? I was thinking it would be nice for prototype systems and/or test-driven development,

[ADVANCED-DOTNET] Determine Global Group in a Local?

2003-12-04 Thread SteveC
I'm having a problem enumerating global groups from local groups. The code below takes a local group name (a Win2K3 or Win2K member server running IIS) and puts members into a string. The problem is that I can't tell if the member is a user (so I can add the user to the string) or a global group

[ADVANCED-DOTNET] re Enumerating network machines

2003-12-03 Thread SteveC
I think ADSI is your best bet, using the System.DirectoryServices classes, assuimg you are in a Win2K AD setup or equivalent. You only need an unprivileged member of the "domain users" group to query against AD (port 389 cleartext or 636 if you have a certificate structure); compare that to using

[ADVANCED-DOTNET] Method Inlining Curiousity

2003-11-21 Thread SteveC
Going through Gregor Noriskin's "Writing High-Performance Managed Applications : A Primer", he mentions that Method Inlining is done by the compiler if the methods are < 32 bytes of IL. Also, anything with an exception handling block is not inlied. With those things in mind, does "anything" ever

[ADVANCED-DOTNET] Custom Cache for HTTP ?

2003-10-17 Thread SteveC
I create a custom thread pool at app startup in an ASP.NET app (thanks to Mike Woodring) for long-running async processes. The thread's output (a dataset) is serialized to disk and then picked up by the original calling ASP.NET user. I would like to speed this up by writing to a memory cache loca

[ADVANCED-DOTNET] Re Re: windows service memory footprint

2003-08-14 Thread SteveC
On a related note, I wonder how the service would respond to GC requests, etc if the service was running inside a custom CLR host. Hey, can a service run from inside a custom CLR host in the first place? orig From:Brandon Manchester <[EMAIL PROTECTED]> Subject: Re: windows service me

[ADVANCED-DOTNET] Re 1. ERROR [HY000] [Microsoft][ODBC Excel Driver] Operation must use a

2003-06-16 Thread SteveC
Yan Ping, the MS Jet OLEDB driver has been able to read/write Excel for a "long time" now, you will get better mileage if you use that instead of ODBC: string excelConn = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " + "E:\\src\\projects\\DbMiniLoader\\

[ADVANCED-DOTNET] re Re: Connection Pool Timeout

2003-04-02 Thread SteveC
Ranjan, if you completely separate your data access layer, you could wrap your business access layer in a while loop. If you get one kind of error (eg a blocking or other kind of "busy" error), the while loop continues, and if you get something unexpected you will break out of the loop and you can

[ADVANCED-DOTNET] Re Re: DirectoryServices COMException

2003-03-14 Thread SteveC
Simon, since it's not as straight-forward as when you're working purely in-Framework, here's the kind of thing you can trap for in your try/catch logic. I just ripped this from the bowels of something more complex, but you'll get the gist: try { DirectoryEntry dirEntry = n

[ADVANCED-DOTNET] BCP API?

2003-03-13 Thread SteveC
Wondering if anyone has any info/code samples/docs on using the BCP API from a .NET language. I'm looking to do massive import/export of data to MSSQL without the encumberance of logging, indexing, etc; I can turn all that on after the data moves. :) Thanks. ===