Find out how to use finalizers as a way to warn developers who use your custom types when they are garbage collected without having been disposed of correctly.
MSDN Magazine November 2007
View Complete Post
MSDN Magazine May 2004
Trying to remote debug ASP website from VS2010 Pro to Windows Server 2003 machine. Specifically, trying to debug a Web Service, but breakpoint says, "The breakpoint will not currently be hit. No symbols have been loaded for this document." This happens for all compiled code though. I have read this is due to missing PDB files and the work around is to manually copy them, as noted here. Problem is, I cannot find any PDB files for my project, except referenced libraries, which I can remote debug.
This is beyond frustrating. I migrated my code from VS2008 .Net3.5 to VS2010 .Net4.0 to take advantage of the inherent multithreading framework. Debugging works when using local host and was stable until deployment to test server.
Thanks in advance,
I'm new to HttpHandlers. I am writing an HttpHandler that reads uploaded files directly from the request stream to provide progress that can be queried using an AJAX request. For large files, this seems to be faster than having ASP.NET load the file contents into Request.Files and then streaming the file from there to wherever it goes (Linq to SQL into a VARBINARY column in an SQL Server database.)
My HttpHandler works perfectly when I'm debugging using the Visual Studio Development Server, but doesn't work otherwise. The application pool for this application in IIS 7 is set to run in Classic Mode, and the Handler Mappings screen in IIS says that I must manage managed handlers in system.web/httpHandlers.
I set up in my applications Web.config file.
<add verb="GET,POST" path="*.upload" type="Namespace.For.UploadHandler, AssemblyForUploadHandler"/>
It works great, so long as I don't debug with the "Use Local IIS Web server" option.
What else do I need to do to get this to work?
I'm finished with a part of my ASHX handler and need to test it against the software that'll be calling it using HTTP POST. The software required an https url so I created an internally hosted site in IIS and published the project there.
Question now is how do I do any debugging on the script to see what data is coming out of it before the data goes back into the software that's calling it? Do I set something on the project itself to be able to step into the published DLL?
Justin Marks shows how to use the IntelliTrace feature coming with Visual Studio 2010 Ultimate, which gives developers powerful new debugging tools to "turn up the dial" and collect the complete execution history of an application, get deeper levels of information and quickly find bugs.
MSDN Magazine April 2010
In Visual C++ 10 and the Microsoft .NET Framework 4, Microsoft is introducing new libraries and runtimes to significantly ease the process of expressing parallelism in your code base, together with new tool support for performance analysis and debugging of parallel applications. In this article, you will learn about debugging support in Visual Studio 2010, much of which is focused on task-based programming models.
Stephen Toub, Daniel Moth
MSDN Magazine September 2009
Exceptions in .NET are the fundamental mechanism by which errors and other exceptional conditions are communicated. This month's column provides information about how to aggregate exceptions to help manage a variety of scenarios in which multiple exceptions might result from one operation, including scenarios involving parallelism and concurrency.
MSDN Magazine August 2009
In this month's installment, Stephen Toub examines some techniques for enforcing dependencies in the running order of asynchronous operations and builds a DependencyManagement class to help.
MSDN Magazine April 2009
This month we demonstrate how you can use the ThreadPool to support ordered execution without having to build custom thread pools yourself.
MSDN Magazine February 2009
Stephen Toub shows you how to add round-robin scheduling support on top of the ThreadPool for more granular processing control.
MSDN Magazine January 2009
This month we explain how pseudo variables and format specifiers provide a wealth of information for use in debugging.
MSDN Magazine December 2008
This month: memory access issues in multi-core systems and diagnosing and avoiding false sharing in your parallel computing applications.
Stephen Toub, Igor Ostrovsky, and Huseyin Yildiz
MSDN Magazine October 2008
In this month's installment of .NET Matters, columnist Stephen Toub answers reader questions concerning asynchronous I/O .
MSDN Magazine July 2008
This month, a better design-time experience for Web apps, Scott Guthrie's blog, extending Extend Lutz Roeder's Reflector, and more.
MSDN Magazine March 2008
This month Stephen Toub discusses asynchronous stream processing.
This month Stephen Toub explains how to make the most of dual processors when running encryption and compression tasks.
MSDN Magazine February 2008
The author creates a managed wrapper to use the new IFileOperations interface in Windows Vista from managed code.
MSDN Magazine December 2007