When do links load?

I wrote a program that references Microsoft.Web.Administration.dll, which is missing from Windows Server 2003.

The program checks os and does not refer to dll if os is 2003.

if(OSVersion == WindowsServer2003)
    //do the job without referencing the Microsoft.Web.Administration.<br>
else if(OSVersion == WindowsServer2008)
   //reference the Microsoft.Web.Administration.dll file.<br>

When I tested this program on Windows Server 2003, an error occurred stating that the Microsoft.Web.Administration.dll file could not be found.
But when I split the if-else block into two different methods, as shown below, and the error did not occur.

if(OSVersion == WindowsServer2003)
   //do the job without referencing the Microsoft.Web.Administration.<br>
else if(OSVersion == WindowsServer2008)
   //DoIt2008Style();

So, I wanted to know more about the download time of the link file. could you point me some resources?

+5
source share
1 answer
+5

All Articles