Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 23, 2012 02:15 AM by css-chlukito
Nov 15, 2012 06:27 PM|LINK
Greetings. We're migrating a 32 bit web application from a Windows 2003 32bits server to Windows 2008 R2 64bits.
We rebuilt the web application as x64 and redeployed it.
Our application calls some java from a command prompt. If we run the application in 32 bits mode, it works fine, open a 32bit cmd window and we see the java output.
When we compile the application and take out the "Allow32BitsApplication" setting in the application pool, the command prompt isn't called anymore...
We call a basic :
What puzzle us is that if we run the website straight from IIS, on the 64bits machine, we clearly see the application is in 64bits and not *32. As soon as it hits the line above it opens a 32 bits cmd ............. and complains as it can't run our 64bits
Does anyone know if there's a setting somewhere to fix that problem or help troubleshoot it ?
Thank you very much.
Nov 22, 2012 02:51 PM|LINK
see if this helps..
Nov 23, 2012 02:15 AM|LINK
Please take a look at below forum, it show you code that provide correct path for accesing 64 bit command prompt.
private string Determine_System_Folder()
if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.System) + @"\cmd.exe"))
return Environment.GetFolderPath(Environment.SpecialFolder.System) + "\\";
else if (File.Exists(Environment.ExpandEnvironmentVariables("%systemroot%\\sysnative") + @"\cmd.exe"))
return Environment.ExpandEnvironmentVariables("%systemroot%\\sysnative") + "\\";
Hope this can help you.