c#

c#

WebFileManager updated

I updated the WebFileManager CodeProject article with some enhancements. It now supports zipping files and column sorting: I included both the code-behind and inline code versions of the page in the solution archive this time. There’s also a new dependency on SharpZipLib, assuming you want the remote file zipping

By Jeff Atwood ·
Comments

c#

Populate your AssemblyInfo

All too often, I download sample code with AssemblyInfo files that look like this: // // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // [assembly: AssemblyTitle("")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("

By Jeff Atwood ·
Comments

.net

Process.Start and Impersonation

Did you know that Process.Start always uses the security context of the parent ASP.NET process? I just found this out the hard way; Using Process.Start on “whoami.exe” always returns the ASPNET worker process no matter what I do. Some searching turned up this entry in Scott’

By Jeff Atwood ·
Comments

vb.net

VB.NET vs C#, round two

I saw on Dan Appleman’s blog that a new version of his Visual Basic.NET or C#: Which to Choose? is available, reflecting the latest changes in VS.NET 2005. I immediately bought a copy from Lockergnome, apparently the only vendor that allows instant eBook downloads after purchase.* There

By Jeff Atwood ·
Comments

c#

Net.WebClient and GZip

The Net.WebClient class doesn’t support HTTP compression, e.g., when you add the Accept-Encoding: gzip,deflate header to your request: Dim wc As New Net.WebClient '-- google will not gzip the content if the User-Agent header is missing! wc.Headers.Add("User-Agent", strHttpUserAgent) wc.

By Jeff Atwood ·
Comments

vb.net

VB vs. C# - FIGHT!

If I see one more blog entry complaining about VB's verbosity, or the elitism of C# developers, I think I'm gonna puke. Why can't we all just get along? Part of what makes the .NET Runtime unique is that it offers you a choice

By Jeff Atwood ·
Comments

c#

Debugging ASPNET_WP in Production

One of our production web servers keeps deadlocking the ASPNET_WP process, like so: aspnet_wp.exe (PID: 3588) was recycled because it was suspected to be in a deadlocked state. It did not send any responses for pending requests in the last 180 seconds. This is painful. It means

By Jeff Atwood ·
Comments