I have an intermittent issue with some Windows 7.0 machines.
We are still running 2003 SBS until the upgrade finishes.
Users go into the Companyweb to get to ASPX applications.
Getting into the Companyweb has no problems.
When some W7 users click on certain ASPX application it errors saying there is a "Server Error in '/XXXXXX' Application.
That usually means a programming error.
The same ASPX application works fine on an XP machine using IE8, Firefox and Chrome.
Clicking on a list of individual links (in an email) on a W7 machine some work and some don't.
This issue started for one machine after a Windows Update on 11/11.
Whether it is because of the update or something more basic I have yet to determine.
In a program that fails, I have a block of code that looks for the machine IP address and machine name.
I use this for activity audit trails and username look ups.
It seems that the machine name on the W7 machines do not include the domain name like it does on XP.
In XP the IP would be 101.101.1.xxx and the machine name is Computer1.Domainname.local
In W7 (after the update?) the IP would be 101.101.1.xxx and the machine name is Computer1.
I have a code fix.
I can go through all the programs at a great expense of time and effort to modify the code. I don't want to.
Does anyone know of where the issue comes from and how to fix it?
Code showing the offending difference:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ Page Language="VB" Debug="true" %>
<%@Import Namespace="System.Net.DNS" %>
Dim host As System.Net.IPHostEntry
host = System.Net.Dns.GetHostByAddress (Context.Request.ServerVariables.Item ("REMOTE_HOST"))
dim machineName as string = host.HostName
lblBrowser.Text = Request.Browser.Browser & " " & Request.Browser.Type & "(" & Request.ServerVariables("remote_addr") & "::" & Left$(machineName, machineName.IndexOf(".")) & ")"
=== machineName.IndexOf(".") is where it fails - No '.' Domain name in machine name