Asp – IIS7 asp.net error while accessing webpage . “Cannot execute a program”

asp.netiis-7

I am getting the following error on accesign an application.
The app is installed on IIS7 windows server 2008

Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework\v3.5\vbc.exe" /noconfig @"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\entitymanager\fc119101\f785f7e5\ugj1_w_e.cmdline".

Any help is much appreciated

thanks

Best Answer

Most likely there is a permissons issue somewhere. Does this KB apply to your situation?

http://support.microsoft.com/kb/315904

Note, I know this KB references csc.exe, but it's still basicaly the same message, seeing as csc.exe is the c# compiler and vbc.exe is the VB.net complier.