VB 6.0 / ASP (not .NET) web application that runs in a windows server 2003 / IIS environment with sql 2005 server.There is a c/c++ component (exe/service) that runs on the server.
Customer would like to run in a windows clustered environment. Problems occur due to use of windows API GetComputerName. This pulls the actual server name, not the "alias" clustered name.
The c/c++ component was fixed by setting a property in windows for that exe which forces the getcomputername call to return the network name, which in this case is the alias cluster name.
The VB/ASP portion also has calls to getcomputername. Is there some setting, similar to how you can define a c/c++ exe, where you can force getcomputername to use the network name?
What we see is when the webpage login screen loads, where the version/feature info should be, there is an error stating: method ~ of object ~ not found. If we manually change the activecomputername reg key to be the alias clustername, this error goes away. Cant use this as a longterm fix because some windows process comes along and reverts this key value back to the correct name.
Does anyone have suggestions for ruuning vb apps in a clustered env? I'd prefer to not have to change the code, and would be semi-shocked if an app had to be written to be cluster-aware.
Thanks!
Update 7/31/2009
I was wondering if there was a way to tell IIS (or the vb assigned to the website) to use the network node name instead of the local machine name via the MS Cluster admin tool. I think that is where my disconnect is occuring with everyone's suggestions thus far. Again, I was able to add the c/c++ application in the cluster admin tool and configure that to use the network node name without modifying any code. Is there some way to do the same thing for the VB/ASP that runs in IIS. Does IIS have to be configured for clustering?