Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > dotnet clr > august 2003

Filter by week: 1 2 3 4 5

NGEN and resolving assemblies
Posted by Wol at 8/31/2003 4:37:22 PM
I have two assemblies, A.dll and B.dll. A.dll contains two methods. One method, UsesB, uses a type from B.dll whereas the other, DoesNotUseB, does not. To cache a native image of A.dll with both methods precompiled, I believe I can do ngen A.dll B.dll I think I could also do ngen B....more >>


showing the ghost (deleted) files on the solution explorer window
Posted by Zeng at 8/29/2003 3:34:09 PM
Hello, There are many files deleted from the project but still existing in my local drive and it caused me problems when I do a find in file operations, because find results would contain these dead files as well. Is there a way to show them in the Solution Explorer window so I can delete t...more >>

Class Reference
Posted by Dim at 8/29/2003 3:08:39 PM
Sorry for crossposting! Is there a complete reference of .NET Framework class libraries? And i mean COMPLETE reference with full explanation of what each class does and perhaps what it's good for. Reason for this is that recently i spent 2.5 days coding a class only to find out that Fram...more >>

Lack of Unsigned CLS-Compliant Types in .NET
Posted by Tim Rogers at 8/29/2003 11:49:27 AM
I'm wrapping a native C++ API with MC++. One of the things that I have found frustrating is the fact that most (if not all) unsigned types in .NET are not CLS-Compliant. So, to me, that means you can't use them, say, as arguments in a method because a particular .NET language is not required to...more >>

Need a way to disable the download cache
Posted by Bill Menees at 8/29/2003 9:21:24 AM
Is there any way to completely disable the download cache? I'm a developer doing a lot of COM interop, and the download cache makes my life hell. It behaves better in .NET 1.1 than it did in .NET 1.0, but it still uses old cached versions occasionally when there are newer versions on disk. Thi...more >>

Question about Assembly.Load
Posted by Lee Alexander at 8/28/2003 5:16:21 PM
Why does Assembly.Load allow this: Assembly.Load( "mscorlib" ); if you try the following it fails as expected: Assembly.Load( "System" ); Since it should be (for framework 1.1): Assembly.Load( "System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ); I...more >>

Use GAC or not?
Posted by Paul at 8/28/2003 3:23:00 PM
Does anyone have recommendations on whether or not to use the Global Assembly Cache? Currently; we're installing a single DLL that can be used by one or more of our applications (VB6 via interop and VB.NET). Not sure what the GAC buys us. Seems there may be issues trying to uninstall/install wh...more >>

Soliciting feedback on two features
Posted by Alan Shi [MSFT] at 8/28/2003 11:17:29 AM
I am collecting data for two features that shipped with the CLR in v1.0 and v1.1. If you use and/or depend on these features, I would appreciate hearing from you with a brief description of how you use these features. 1) .NET Application Restore tool A few sources, including Jeffrey Richter'...more >>



Maintaining multiple assembly versions withtout using the GAC
Posted by Robert Myhill at 8/27/2003 10:04:46 AM
Say I have Foo.dll [Version 1.0.0.0, culture=null, public key token=ABC] Foo.dll [Version 2.0.0.0, culture=null, public key token=ABC] The second Foo.dll is a new major revision of the first Foo.dll. And I don't want to privately deploy these assemblies, so they do not go in the GAC...more >>

Getting mouse and keyboard information in a Service
Posted by David Stevenson at 8/27/2003 8:38:36 AM
I'm writing a service that tracks how much of the time you use the mouse vs the keyboard. I've found that under Windows XP professional, I can get the cursor position using GetCursorPos, but I am as of yet unable to get information about the keyboard (I'm currently trying GetAsyncKeyState). U...more >>

Properly referencing assemblies that reference other assemblies
Posted by Robert Myhill at 8/27/2003 8:14:08 AM
Say someone gives me AssemblyA.dll, which I install in my GAC. I then write a new program, which does Assembly.Load(AssemblyA.dll), and compile my new program to create MyApp.exe. So far so good. Now, I don't know what, if any, assemblies AssemblyA.dll loads when it runs, and this could cau...more >>

Is this a memory leak?
Posted by ianstirkcv NO[at]SPAM yahoo.com at 8/27/2003 3:00:13 AM
Hello, I wonder if you can please help… We are running a web application built using .net framework version 1.0, service pack 2, running on Windows 2000 server, service pack 3. The server has 1 gigabytes of RAM. We are using Perfmon to monitor memory usage of aspnet_wp.exe, CPU usage, a...more >>

Assembly Version Issues
Posted by Christopher Pragash at 8/26/2003 8:11:12 PM
Hello All, I am developing a "Business Object" Assembly and "Data Object" Assembly (Remoted) , both of which would be called from .NET and from ASP (using COM layer Interop). I deployed all the assemblies into the GAC and it had a specific version when I deployed it. I developed a service that...more >>

How to properly deploy shareable assemblies to a server
Posted by Robert Myhill at 8/26/2003 10:57:12 AM
I'm looking for a .NET "best practices" opinion on the following. I have a .NET assembly (call it MyApp.dll) that I want to make generally available to other people in my company. I will periodically be coming out with new minor versions (bug fixes) and major versions (new features) of MyApp....more >>

Assembly Version
Posted by Christopher Pragash at 8/26/2003 10:26:17 AM
Hello all, I have an issue with the Assembly Version. I am getting 0.0.0.0 as the version number!!! I tried recompilng ...but no luck.... Any ideas why this is happening and how I could overcome this one!! Thanks for all the help in advance. regards, Chris ...more >>

Question about MyApp.exe.config file if MyApp.exe is located on a server
Posted by Robert Myhill at 8/26/2003 10:20:46 AM
The MyApp.exe.config file must be located in the same directory as the MyApp.exe file. This works fine if the .exe file is on the local machine, e.g. if it's in C:\MyApp\MyApp.exe, then it's easy to create a C:\MyApp\MyApp.exe.config file to go along with it. But what if MyApp.exe is on a ser...more >>

MVPs
Posted by Sim at 8/26/2003 6:32:00 AM
What is a MVP? and how do you become one? Sim ...more >>

Help! I need to prevent .NET exception dialogs from displaying.
Posted by Ken Varn at 8/25/2003 6:04:51 PM
I have an unattended 24/7 system that runs a few .NET applications. I really need to prevent any unhandled exceptions from displaying the exception dialog box. I want the application to just terminate. This was available with Dr. Watson, but I can't figure out how to do it for .NET apps. Can...more >>

MethodImplOptions.InternalCall gives Security Exception
Posted by Robert A. van Ginkel at 8/25/2003 11:48:12 AM
I have a strange C# problem. Is the following a bug? Because it should be possible to run unsafe code. How can I accomplish this? And where can I read more about this, because documentation on this is rare. I have a project where i need to use some internal calls. In this project I have 'Allow...more >>

Class Viewer
Posted by RAyRAy at 8/24/2003 12:18:11 AM
I remember in the newer versions of Visual Studio.NET there was a program where you can just point to an exe and it sort of gives you a list of what classes are inside, their methods and paramenters, and even Microsoft Intermidate Language. Did they discontinue this program that came as a...more >>

Gotcha
Posted by Tejasswi Redkar at 8/23/2003 12:46:15 AM
This is why move to Linux - Java. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=%24i%23 gqxaVDHA.2108%40cpmsftngxa06.phx.gbl *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Contexts and Interception for Multiple Services
Posted by qdm0308 NO[at]SPAM yahoo.com at 8/22/2003 3:32:50 PM
I'd sure appreciate help from any of you experienced with creation of aspect-oriented services, where calls to objects are intercepted and routed through IMessageSinks. We have taken this approach to transaction management. Our "transaction-able" objects extend ContextBoundObject, and we've ...more >>

Dynamic Loading
Posted by Jon Poploskie at 8/21/2003 3:57:10 PM
Hello, I am trying to utilize dynamic loading in my application (via Assembly.Load). When the application is deployed, this should be a simple matter, as all of the assemblies to be loaded will be located in the same (application bin directory), however, during development, they are all in d...more >>

Assembly.LoadFrom returns Assembly with "incorrect" Location and CodeBase
Posted by Sean Winstead at 8/21/2003 12:30:45 PM
When I load an assembly using Assembly.LoadFrom("C:\temp\sumdumAssembly.dll"), the assembly is loaded and its FullName property identifies it as the correct assembly. However, the Location and CodeBase properties point to the assembly that called Assembly.LoadFrom. I have read the article tit...more >>

Can't get CLR debugger to work
Posted by Brett at 8/21/2003 5:21:00 AM
Everytime I go to debug a simple Hello World windows form application - the CLR debugger (dbgclr.exe) says "The debugger cannot continue running the program. Unable to start debugging. Unable to start program 'c:\helloworld.exe'. No such interface supported.' What is going on?...more >>

.Net profiler tool
Posted by john at 8/19/2003 10:32:11 PM
Does anyone have a good recomendation for a code profiling tool that works with .Net? I'm trying to squeeze out better performance on a web app and would like to use a profiling too. thanks, john ...more >>

I want to clear "immutable" string contents
Posted by cppdev9 NO[at]SPAM yahoo.com at 8/19/2003 9:57:41 AM
Hi All! I want to clear the string contents from sensitive information such as passwords, and etc. It's always a case that password will appear as string at some point or another. And i feel uneasy leaving it hanging in memory indefinitely (especially in case when string is Interned). S...more >>

CLR Error: 8007000B
Posted by Willie Sy at 8/18/2003 12:08:13 PM
Has anyone encountered this error when running a .Net windows application? The program is called from the network but after certain times, the file just gets corrupted and we cannot open it anymore. As a fix right now, we just copy a new .exe again to the network folder. Thank you very m...more >>

Help on Serialization Pattern
Posted by Roosevelt_dos_Santos_Júnior at 8/18/2003 6:56:00 AM
Hi Folks. I=B4ve founded problems with the serialization. I=B4ve 2=20 Interfaces (code below) what can be implemented=B4s by any=20 class. I like the=20 serialize this objects, and to do this I create another=20 class (called VocabularyPersist) specialized to this.=20 This=20 class is marke...more >>

Benefits of CLR 1.1 for hosting WebBrowser over 1.0sp2 ?
Posted by JohnDoe650 NO[at]SPAM hotmail.com at 8/18/2003 1:24:30 AM
Hi, I'm starting a new application that needs to host the WebBrowser control, I just wondered if there is any benefit in using version 1.1 of the framework over 1.0sp2. Any ideas about COM interop being improved, better MSHTML/WebBrowser integration into the runtime, stability improvements ...more >>

Garbage Collector Debugging
Posted by Gustavo Franco at 8/15/2003 1:14:28 PM
Hi, I did a medium complex application in C#, and in some areas the memory goes up to 60Mb, when I finish I dispose everything and setting everything to null and calling GC.Collect, but the memory never goes below 45MB and I'm pretty sure I'm not allocating that huge amount of memory. ...more >>

.Net Watermarking Service - ThatsMyCode
Posted by info NO[at]SPAM riis.com at 8/13/2003 12:16:52 PM
We're looking for beta testers for our free online .Net software watermarking tool called That's My Code which you can find at http://www.riis.com/tools. We offer this as an alternative to .Net code obfuscation as a way of not protecting your code but of being able to prove that someone stol...more >>

.net dll holds dependent dll's codebase info ???
Posted by Sudha at 8/12/2003 2:53:12 PM
Does a dll hold the location details of the dependent dlls?? I build a dll which references another dll (in gac) eg: Oracle.dataaccess.dll When i take this dll to another m/c where Oracle is installed in a different drive(CodeBase different) it fails to run and throws error saying File or its d...more >>

Control.Invoke & ref params
Posted by Andre Van Der Merwe at 8/12/2003 10:55:10 AM
Can Control.Invoke get the return value's from ref/out params? For instance I can't seem to get the return value from this method public void Bla( ref string s ) using the following code object ostr = "in"; Invoke( new BlaInvoker(Bla), new object[]{ostr} ); However I can get the va...more >>

Observing objects fields
Posted by Rodrigo at 8/11/2003 11:38:16 AM
Hi! I need to handle a field that are into a class. I need=20 to be informed when this field variable change it value. I=20 need something like Property Set and Get. The problem is=20 that I need to do this from other class. I don=B4t known=20 previously the fields. I get the fields using Refl...more >>

.NET Framework Path
Posted by Aaron Chan at 8/9/2003 8:02:35 PM
Hello all, Just a quick question... Is it true that the path of the .NET framework SDK files is always under: {windir}\Microsoft.NET\Framework\{version} ? I.e. is there anyway the user could change this path? I'm asking this because I am currently creating an IDE for .NET p...more >>

GC of Large Object Heap
Posted by Mark Tucker at 8/8/2003 7:02:19 PM
Are the objects (greater than 20K) on the large object heap(LOH) divided into Gen 0, 1, and 2? I know the LOH is collected, but not compacted. Is it only collected during a Full GC? Mark ...more >>

% Time in GC for Dual CPU Machine
Posted by Mark Tucker at 8/8/2003 6:59:56 PM
In a sample web application running on a 2 CPU machine, I have the following Performance Counter values: Average % Processor Time - Total = 67% Average % Processor Time - aspnet_wp = 109% Average % Time in GC - aspnet_wp = 26% I know that the second value (109) is out of 200 because there a...more >>

Is there an event associated with Assembly.Load?
Posted by hidden at 8/8/2003 6:21:28 PM
I want to get a method executed when an AppDomain loads an assembly, but before the entry point is executed. Is there a means to do this? An event of some sort? The closest I seem to be able to get is to define a static constructor for a dummy class, but I have to actually instanciate the class....more >>

.NET 'Old' Resource access ?????
Posted by Nadav at 8/8/2003 11:15:06 AM
Hi, I wonder... How one should use C# to access resource data stored in an EXE (8086*) binary ??? ( VC6 .rc resource data )? Can the ResourceManager be used to extract this type of data? Any directions/samples/pointers will be appriciated. Thanks in advance, Nadav, Sofin l.t....more >>

__check_commonlanguageruntime_version link error
Posted by Shridhar at 8/8/2003 9:55:11 AM
I'm getting this nasty link error error LNK2001: unresolved external symbol __check_commonlanguageruntime_version I'm trying convert one of my VC6.0 project to VC7 and enable to host the CLR. I'm trying use Managed C++ and when I turn it ON, I get this link error. I have no idea where...more >>

Please confirm my assumption
Posted by Ben Rush at 8/7/2003 10:43:41 AM
I have a managed DLL called A.DLL for some managed executable B.EXE. If the runtime is going to be able to load A.DLL for B.EXE's use (probe it and load it), it (the DLL) will either have to be in the local directory w/ B.EXE, a sub-directory of said local directory (which would have to be c...more >>

HttpWebRequest.GetRequestStream() throws WebException (timeout)
Posted by putt NO[at]SPAM multex.com at 8/6/2003 7:21:40 PM
In certain cases, the method HttpWebRequest.GetRequestStream() throws a WebException (timeout.) This only seems to happen in very specific cases. The main thread is executing an asynchronous HTTP POST request specifying a callback. When that callback is invoked, it itself executes a second HT...more >>

One Basic Question about BaseDirectory
Posted by news.microsoft.com at 8/5/2003 3:48:21 PM
Is there anyway that I can change an application's basedirectory? I an hosting an Windows usercontrol in IE and the user control refers other assemblies, from those assemblies I want to change the basedirectory. Thanks, Rajan. ...more >>

Can ICorProfilerCallback be implemented in managed code?
Posted by Tony A. at 8/4/2003 10:25:27 PM
I've been looking into the CLR profiling interfaces for a project I'm working on, and I was wondering if it's possible at all to implement them in C# instead of unmanaged C++? I'd prefer to work in C# if possible, just for design reasons, but I'm thinking that it may not be possible to have the ...more >>

Protecting code
Posted by Sky Fly at 8/4/2003 8:34:46 PM
Hi, I know that when an .NET exe is run, the CLR loads the exe (along with dependent assemblies), compiles them to native code then runs the code. Assuming the assemblies are loaded from a remote inaccessible location, is it possible that during any of the stages of loading the exe into memo...more >>

Observing field variables
Posted by Rodrigo at 8/4/2003 2:00:16 PM
Hi! I need to handle a field that are into a class. I need=20 to be informed when this field variable change it value. I=20 need something like Property Set and Get. The problem is=20 that I need to do this from other class. I don=B4t known=20 previously the fields. I get the fields using Reflec...more >>

combining modules into an assembly
Posted by Tony Malandain at 8/4/2003 11:41:53 AM
Hi, I'm trying to build a single-file assembly from several netmodules. Wether I'm using csc /target:library assembly.cs /out:myassembly.dll /addmodule:module1.netmodule /addmodule:module2.netmodule.... or al module1.netmodule module2.netmodule... /target:library /out:myassembly.dll I ...more >>

Assembly Probing Problem
Posted by news.microsoft.com at 8/1/2003 1:16:27 PM
Is there anyway I can redirect assembly probing to look other folders other than Wwwroot when the call comes from a Windows user control hosted in IE which is running in client machine. I would really appreciate if somebody can find a solution to solve this problem. Thaks, Rajan. ...more >>


DevelopmentNow Blog