By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,017 Members | 1,169 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,017 IT Pros & Developers. It's quick & easy.

"Cannot run program" error with Web, Web Services apps.

P: n/a
I built small C# Web and Web Service applications in a
training class last week. The applications worked in the
class, but when I tried to run them again over the
weekend, they both bombed. Instead of getting my Web
page, or the Web Service page, I get a page full of error
text (below).

I am hoping the anwser will be obvious to someone.

I've tried a few things to address the problem, including
adding an "impersonator" identity to machine.config, and
web.config, and trying to figure out how the
PublicKeyToken works. Neither has led to success.

Thanks for any suggestions.

Error text:

Server Error in '/Order System Web CSharp' Application.
----------------------------------------------------------
----------------------

Cannot execute a program. The command being executed
was "c:\windows\microsoft.net\framework\v1.1.4322
\csc.exe" /noconfig
@"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tem porary
ASP.NET Files\order system web csharp\8ca5eae6\8a7b6687
\bjwjj_c0.cmdline".
Description: An unhandled exception occurred during
compilation using the
CodeDomProvider 'Microsoft.CSharp.CSharpCodeProvider'.
Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details:
System.Runtime.InteropServices.ExternalException: Cannot
execute a program. The command being executed
was "c:\windows\microsoft.net\framework\v1.1.4322
\csc.exe" /noconfig
@"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tem porary
ASP.NET Files\order system web csharp\8ca5eae6\8a7b6687
\bjwjj_c0.cmdline".

Source Error:

An unhandled exception was generated during the execution
of the current web request. Information regarding the
origin and location of the exception can be identified
using the exception stack trace below.

Stack Trace:
[ExternalException (0x5): Cannot execute a program. The
command being executed
was "c:\windows\microsoft.net\framework\v1.1.4322
\csc.exe" /noconfig
@"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tem porary
ASP.NET Files\order system web csharp\8ca5eae6\8a7b6687
\bjwjj_c0.cmdline".]
System.CodeDom.Compiler.Executor.ExecWaitWithCaptu reUnimpe
rsonated(IntPtr userToken, String cmd, String currentDir,
TempFileCollection tempFiles, String& outputName, String&
errorName, String trueCmdLine) +2050
System.CodeDom.Compiler.Executor.ExecWaitWithCaptu re
(IntPtr userToken, String cmd, String currentDir,
TempFileCollection tempFiles, String& outputName, String&
errorName, String trueCmdLine) +260
System.CodeDom.Compiler.CodeCompiler.Compile
(CompilerParameters options, String compilerDirectory,
String compilerExe, String arguments, String& outputFile,
Int32& nativeReturnValue, String trueArgs) +383
System.CodeDom.Compiler.CodeCompiler.FromFileBatch
(CompilerParameters options, String[] fileNames) +548
System.CodeDom.Compiler.CodeCompiler.FromDomBatch
(CompilerParameters options, CodeCompileUnit[] ea) +428
System.CodeDom.Compiler.CodeCompiler.FromDom
(CompilerParameters options, CodeCompileUnit e) +90
System.CodeDom.Compiler.CodeCompiler.System.CodeDo m.Compil
er.ICodeCompiler.CompileAssemblyFromDom
(CompilerParameters options, CodeCompileUnit e) +37
System.Web.Compilation.BaseCompiler.GetCompiledTyp e() +227

----------------------------------------------------------
----------------------
Version Information: Microsoft .NET Framework
Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Did you created the virtual directory as an application?
"Chris" <cb******@visionds.com> escribió en el mensaje
news:05****************************@phx.gbl...
I built small C# Web and Web Service applications in a
training class last week. The applications worked in the
class, but when I tried to run them again over the
weekend, they both bombed. Instead of getting my Web
page, or the Web Service page, I get a page full of error
text (below).

I am hoping the anwser will be obvious to someone.

I've tried a few things to address the problem, including
adding an "impersonator" identity to machine.config, and
web.config, and trying to figure out how the
PublicKeyToken works. Neither has led to success.

Thanks for any suggestions.

Error text:

Server Error in '/Order System Web CSharp' Application.
----------------------------------------------------------
----------------------

Cannot execute a program. The command being executed
was "c:\windows\microsoft.net\framework\v1.1.4322
\csc.exe" /noconfig
@"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tem porary
ASP.NET Files\order system web csharp\8ca5eae6\8a7b6687
\bjwjj_c0.cmdline".
Description: An unhandled exception occurred during
compilation using the
CodeDomProvider 'Microsoft.CSharp.CSharpCodeProvider'.
Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details:
System.Runtime.InteropServices.ExternalException: Cannot
execute a program. The command being executed
was "c:\windows\microsoft.net\framework\v1.1.4322
\csc.exe" /noconfig
@"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tem porary
ASP.NET Files\order system web csharp\8ca5eae6\8a7b6687
\bjwjj_c0.cmdline".

Source Error:

An unhandled exception was generated during the execution
of the current web request. Information regarding the
origin and location of the exception can be identified
using the exception stack trace below.

Stack Trace:
[ExternalException (0x5): Cannot execute a program. The
command being executed
was "c:\windows\microsoft.net\framework\v1.1.4322
\csc.exe" /noconfig
@"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tem porary
ASP.NET Files\order system web csharp\8ca5eae6\8a7b6687
\bjwjj_c0.cmdline".]
System.CodeDom.Compiler.Executor.ExecWaitWithCaptu reUnimpe
rsonated(IntPtr userToken, String cmd, String currentDir,
TempFileCollection tempFiles, String& outputName, String&
errorName, String trueCmdLine) +2050
System.CodeDom.Compiler.Executor.ExecWaitWithCaptu re
(IntPtr userToken, String cmd, String currentDir,
TempFileCollection tempFiles, String& outputName, String&
errorName, String trueCmdLine) +260
System.CodeDom.Compiler.CodeCompiler.Compile
(CompilerParameters options, String compilerDirectory,
String compilerExe, String arguments, String& outputFile,
Int32& nativeReturnValue, String trueArgs) +383
System.CodeDom.Compiler.CodeCompiler.FromFileBatch
(CompilerParameters options, String[] fileNames) +548
System.CodeDom.Compiler.CodeCompiler.FromDomBatch
(CompilerParameters options, CodeCompileUnit[] ea) +428
System.CodeDom.Compiler.CodeCompiler.FromDom
(CompilerParameters options, CodeCompileUnit e) +90
System.CodeDom.Compiler.CodeCompiler.System.CodeDo m.Compil
er.ICodeCompiler.CompileAssemblyFromDom
(CompilerParameters options, CodeCompileUnit e) +37
System.Web.Compilation.BaseCompiler.GetCompiledTyp e() +227

----------------------------------------------------------
----------------------
Version Information: Microsoft .NET Framework
Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.