Assembly redirection in .NET

by rahul 11/5/2011 5:30:16 PM
In this blog post, I'll discuss some of the techniques that you can use for loading the assemblies in .NET and troubleshoot the loading process in case you get stuck. Basically, you will learn… How to rename an assembly and still be able to load it How to redirect to a specific version How to use two different versions of the DLL in the same application How to use fusion log and troubleshoot while doing the above exercise Without further ado, and scaring you with the mumbo jum... [More]


“HTTP 404.17 – Not Found” on Win7 for Web Site that was build with .net 3.0 as the target framework

by vivek 5/25/2010 9:11:04 AM
Let me confess, I had to cook this up to give you this example. It happened to my colleague some days back when he developed a simple WCF application on Windows Server 2003 using VS2003. He selected “Target Framework 3.0” in the Property Page of that Web Site. He then deployed the application on his Win7 machine which has VS2010 with .net 4.0 installed. He fires the Web Site http://localhost/Service.svc and he gets “HTTP 404.17 – Not Found” when running the Web Site under Classic .NET AppPool.... [More]


Did you know: How IIS 6.0 handles Custom Errors when aspnet_isapi.dll is mapped as a wildcard extension?

by vivek 3/23/2010 7:33:34 AM
Sometime back I came across a very good question on ServerFault and I thought of doing some research to understand how IIS handles Custom Errors setting when all requests are passed through aspnet_isapi.dll. Here is a brief background: Scenario 1: We have a Wildcard mapping configured for aspnet_isapi.dll with “Verify that file exists” unchecked. We also have Custom Errors configured for 404. We have configured it as a URL and the path is /404/. Remember the path 404 does not exists in ww... [More]


“HTTP Error 500.19 - Internal Server Error” in IIS 7 / 7.5

by Vivek 12/15/2009 8:27:00 AM
I was testing a simple WCF application deployed on my IIS 7.5 machine. This was working fine on my development Windows 7 IIS 7.5 client machine but as soon as I deployed it on my Windows Server 2008 R2 IIS 7.5 machine the application threw the following error: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Here’s what we need to keep in mind. Check the error code 0x80070032. You wi... [More]


Programming “gotcha” when you code for Vista and beyond!

by rahul 2/7/2009 10:49:29 PM
If you blog, and haven’t used any of my plug-ins for Windows Live Writer, may be you should. In this post though, the agenda is not to push you to install the plug-ins but tell you about my experience with Application.StartupPath and how problematic it could be!!! Well, it all started when I decided to write a few plug-ins for my favorite Windows Live Writer. The SDK was easily available, and I found that any new plug-in was required to be installed in the Plug-in folder inside WLW Installation... [More]


LINQ Performance - Part 1 - LINQ to Collection

by rahul 1/27/2009 2:30:23 PM
There are multiple benchmarking results already out there for LINQ. The reason why I am doing this again is the because I have heard multiple times that the latest version of LINQ contains a lot of improvements. My current configuration is... Windows Server 2008 Enterprise SP 1Visual Studio 2008 SP14GB RAM System.Core version 3.5.30729.1 In this post, I will take a look at the results ONLY from LINQ to Collection (An array of strings). You can play around with the code and post other findings (... [More]


Timepass... Fix the code...

by rahul 1/27/2009 12:22:07 PM
Create a C# Console application, and paste the following code in the Main method... for (int i = 0; i < 5; i++) { //Generating a Random number between 0 and 100000 int intRandomElement; Random r = new Random(); intRandomElement = r.Next(1, 100000); Console.WriteLine(intRandomElement); }   If you run this code in debug mode, you should be able to get the output as expected. But if y... [More]


Tags: , ,

.NET | C# | Timepass

Explaining Delegates in C# - Part 7 (Asynchronous Callback - Way 4)

by rahul 1/25/2009 2:07:00 PM
This is the final part of the series that started with... Callback and Multicast delegates Events One more Event Asynchronous Callback - Way 1 - BeginInvoke > EndInvoke Asynchronous Callback - Way 2 - BeginInvoke > AsyncWaitHandle.WaitOne(x) > EndInvoke > AsynWaitHandle.Close() Asynchronous Callback - Way 3 - BeginInvoke > Poll for result's IsCompleted > EndInvoke In this scenario, if we go with the husband-wife-kiddo analogy, I will need to introduce another guy! No no... [More]


Explaining Delegates in C# - Part 6 (Asynchronous Callback - Way 3)

by rahul 1/23/2009 4:14:56 PM
By now, I have shown the following usages of delegates...     Callback and Multicast delegates    Events    One more Event    Asynchronous Callback - Way 1 - BeginInvoke > EndInvoke    Asynchronous Callback - Way 2 - BeginInvoke > AsyncWaitHandle.WaitOne(x) > EndInvoke > AsynWaitHandle.Close() In this part, we will take a look at how you could use polling to figure out if the Asynchronous call is complete. So,... [More]


Explaining Delegates in C# - Part 5 (Asynchronous Callback - Way 2)

by rahul 1/22/2009 11:40:21 AM
In this part of making asynchronous programming with delegates, we will talk about a different way, which is a little better than Way 1. In the previous post, it was like a husband telling his wife... You know honey, I have a lot of work to do. Why don't you help me up by doing something that you can do pretty well . In the meantime, I will take care of some other stuff. As soon as I am done, I promise I will pick you up. Notice that, although it looks like a good way of getting the work done, i... [More]


Rahul Soni

Rahul Soni  Twitter

 LinkedIn

 Facebook

 Email me



Vivek Kumbhar

Vivek Kumbhar  Twitter

 LinkedIn

 Facebook

 Email me


Stack Exchange

profile for Vivek at Server Fault, Q&A for system administrators and IT professionals

profile for Rahul Soni at Stack Overflow, Q&A for professional and enthusiast programmers

Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

All Items
Sign in

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2012, Rahul Soni

Powered by BlogEngine.NET 1.4.5.0