Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code does not execute on Windows Service
Message
From
20/09/2010 01:48:35
 
 
To
20/09/2010 01:29:34
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01481890
Message ID:
01481944
Views:
22
>>Looking at this from 15K meters... hopefully you're not trying to get drive or volume serial numbers for the purpose of copy protection.
>
>No
>
>>I think in another branch/thread you said these machines where you're trying to get drive or volume serial numbers are running virtualized.
>
>Yes, and it was drive serial number I should have looked at in the first place but volume serial number.
>
>>When virtualized, you don't get a physical hard drive (you get a VHD file instead), you get whatever the VM decides to give you. I don't know the specifics for VMWare but that value could well be the same for all VMWare VMs.
>
>That would be ok.
>
>>Even when you're running on dedicated hardware there will be problems getting drive serial numbers. For example, my dev machine has 2 drives in hardware RAID1. Which one will be returned by a drive serial number function? Since February, when I built this machine I've had both drives fail (at different times) so neither drive serial number is the same as at the start. I'd be annoyed if software stopped working because of this.
>
>It is a good point. Thanks for mentioning it.
>
>>You might have better luck with a volume serial number, which I believe gets generated by Windows when the OS is installed. However, both this and the drive serial number can easily be duplicated if you simply copy the VM, and run it again on the same, or separate hardware.
>
>Correct
>
>>You could look into network adapter MAC addresses or other similar hardware parameters but they all have that same problem when virtualized.
>
>...or when the card changes
>
>>One thing that can help in some environments is just to use the machine's NetBIOS name. That must be unique on a locally routable LAN. It's something that's a PITA to change (especially for servers) and tends to stay the same regardless of hardware changes/upgrades/replacements.
>
>Ok
>
>Thanks for the input

So... if not for copy protection or licensing enforcement, why do you need this information?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform