How to check if client computer is running a 32-bit or 64-bit OS in ASP.NET 3.5?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no way to reliably determine whether a client runs a 64 bit operating system or a 32 bit one. What if the client is not a full blown computer at all?
All you can do without running any platform specific code on the client is to trust the user agent string passed by the browser. Some browsers, like Internet Explorer, do in fact send this clue in the user agent string.
For instance, 64-bit IE will send “Win64; x64” as part of the user agent string and 32-bit IE running on a 64-bit edition of Windows will send “WOW64” as part of it.