Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CSharp Web Sample Application Error
Message
From
24/11/2003 01:38:34
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
CSharp Web Sample Application Error
Miscellaneous
Thread ID:
00852867
Message ID:
00852867
Views:
55
I built the CSharp Web and Web Service sample applications in the class that Kevin McNeish taught here in KC last week. At that time, the applications worked. However, now they do not.

Whenever I run the application I get a Web page full of error messages (listed below) instead of my own web page or the web service page. Both applications generate no errors when built.

What has changed with my system since I took the class? I upgraded the RAM, I uninstalled and reinstalled VS.NET (due to this problem), and not much else that I can think of.

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

Below is the error text. I am hoping the anwser will be obvious to someone:

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\Temporary 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\Temporary 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\Temporary ASP.NET Files\order system web csharp\8ca5eae6\8a7b6687\bjwjj_c0.cmdline".]
System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(IntPtr userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +2050
System.CodeDom.Compiler.Executor.ExecWaitWithCapture(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.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromDom(CompilerParameters options, CodeCompileUnit e) +37
System.Web.Compilation.BaseCompiler.GetCompiledType() +227

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
Christopher Bohling, Consultant
http://www.ChristopherBohling.com
Next
Reply
Map
View

Click here to load this message in the networking platform