Compiler executable file c:\..\v1.1.4322\csc.exe cannot be found.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

I'm getting some very strange problems with some C# code. We're running
an ASP.NET application on a local server in a DMZ. If I access it using
the internal address, the application works fine, every time. But, if I
access on it's public IP, from my office workstation, from home, over
the VPN, a test machine on ADSL, or whatever else you please, it fails.
But only about 60% of the time.

I have tried everything to pin this down. I'm fairly sure it's not the
software, because I've rolled back to earlier versions, installed the
same thing of different machines, etc. We've examined the network
interfaces (which seems to be the key to causing the problem) but we
just cannot find anything that apparently causes it.

If anyone has any ideas, I'd be extremely grateful. On the off chance I
find a solution, I'll post it here. No one else would seem to have had
the same error that I can find. The nearest is about user impersonation
through anonymous login, but I've covered that one already.

At the point at which it fails in my code, it is calling generated code
from a WSDL file to make a SOAP transaction against a web service...
Using Lutz Roeder's .Net Reflector, I'd say the framework is doing
something it's supposed to do:

(Top of the stack trace...)
if (!File.Exists(text2))
{
throw new InvalidOperationException(
SR.GetString("CompilerNotFound", new object[] { text2 })
);
}

But as the compiler _IS_ there, I don't see why it does this
specifically, and regularly from a particular entry point...

Any ideas world? Cheers,

mudge.

===============================================================

Compiler executable file
c:\windows\microsoft.net\framework\v1.1.4322\csc.exe cannot be found.

Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Compiler
executable file c:\windows\microsoft.net\framework\v1.1.4322\csc.exe
cannot be found.

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:

[InvalidOperationException: Compiler executable file
c:\windows\microsoft.net\framework\v1.1.4322\csc.exe cannot be found.]

System.CodeDom.Compiler.CodeCompiler.Compile(CompilerParameters
options, String compilerDirectory, String compilerExe, String
arguments, String& outputFile, Int32& nativeReturnValue, String
trueArgs) +470

System.CodeDom.Compiler.CodeCompiler.FromFileBatch(CompilerParameters
options, String[] fileNames) +548

System.CodeDom.Compiler.CodeCompiler.FromSourceBatch(CompilerParameters
options, String[] sources) +433

System.CodeDom.Compiler.CodeCompiler.FromSource(CompilerParameters
options, String source) +90

System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSource(CompilerParameters
options, String source) +37

System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns,
CompilerParameters parameters, Evidence evidence) +478

System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[]
xmlMappings, Type[] types, String defaultNamespace, Evidence evidence,
CompilerParameters parameters, Assembly assembly, Hashtable assemblies)
+2143

System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings,
Type[] types, String defaultNamespace, String location, Evidence
evidence) +137

System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[]
mappings, Type type) +193

System.Web.Services.Protocols.SoapClientType..ctor(Type type) +312

System.Web.Services.Protocols.SoapHttpClientProtocol

{my call is here, from generated code, from initParams from Page
Load...}

.



Relevant Pages

  • Re: Compiler executable file c:..v1.1.4322csc.exe cannot be found.
    ... most likely you are using default serialization code and impersonation. ... But as the compiler _IS_ there, I don't see why it does this ... options, String compilerDirectory, String compilerExe, String ... CompilerParameters parameters, Evidence evidence) +478 ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Letter to US Sen. Byron Dorgan re unpaid overtime
    ... Big-O notation isn't mathematics per se, it's computer science notation ... "length of the string". ... outrun something compiled and optimized by a good C compiler. ... > either general computing culture or culture outside computing. ...
    (comp.programming)
  • Re: [EGN] Hoisting Loop Invariants (Was: Re: [EGN] Numerical Accuracy)
    ... compiler out there somewhere that did as you claim. ... > the programmer has this knowledge, then the programmer should not use ... >> string in a loop, regardless of the blatant inefficiency of doing so. ...
    (comp.programming)
  • Re: Structured exception information
    ... Write_Output for different hardware will need need a corresponding ... version of the exception type; ... the messages are indeed string literals, ... The Ada compiler checks coverage. ...
    (comp.lang.ada)
  • Re: How to convert Infix notation to postfix notation
    ... and make all strings const save where the intent ... function whose contract is to change the string. ... the compiler "just" prevents the string ... try to do using the pointer you get. ...
    (comp.lang.c)