How to translate MS Windows OS version numbers into product names in .NET?

howto net os version VB: Public Function GetOSVersion() As String Select Case Environment.OSVersion.Platform Case PlatformID.Win32S Return “Win 3.1” Case PlatformID.Win32Windows Select Case Environment.OSVersion.Version.Minor Case 0 Return “Win95” Case 10 Return “Win98” Case 90 Return “WinME” Case Else Return “Unknown” End Select Case PlatformID.Win32NT Select Case Environment.OSVersion.Version.Major Case 3 Return “NT 3.51” Case 4 Return “NT … Read more

How do I find out which JAXP implementation is in use and where it was loaded from?

It is quite difficult to predict what concrete JAXP factory implementation will be loaded without actually creating an instance because the process for selecting an implementation. From the Official JAXP FAQ (Question 14): When an application wants to create a new JAXP DocumentBuilderFactory instance, it calls the staic method DocumentBuilderFactory.newInstance(). This causes a search for … Read more

How can I make my code diagnostic syntax node action work on closed files?

For the closed file issues, it’s our intent that all diagnostics will be reported, from either open or closed files. There is a user option for it in the preview at Tools\Options\Text Editor\C#\Advanced that you can toggle to include diagnostics in closed files. We hope to make this the default before VS 2015 is released. … Read more

IIS: Where can I find the IIS logs?

I think the default place for access logs is %SystemDrive%\inetpub\logs\LogFiles Otherwise, check under IIS Manager, select the computer on the left pane, and in the middle pane, go under “Logging” in the IIS area. There you will se the default location for all sites (this is however overridable on all sites) You could also look … Read more

tech