473,593 Members | 2,841 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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(t ext2))
{
throw new InvalidOperatio nException(
SR.GetString("C ompilerNotFound ", 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\micr osoft.net\frame work\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.InvalidO perationExcepti on: Compiler
executable file c:\windows\micr osoft.net\frame work\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:

[InvalidOperatio nException: Compiler executable file
c:\windows\micr osoft.net\frame work\v1.1.4322\ csc.exe cannot be found.]

System.CodeDom. Compiler.CodeCo mpiler.Compile( CompilerParamet ers
options, String compilerDirecto ry, String compilerExe, String
arguments, String& outputFile, Int32& nativeReturnVal ue, String
trueArgs) +470

System.CodeDom. Compiler.CodeCo mpiler.FromFile Batch(CompilerP arameters
options, String[] fileNames) +548

System.CodeDom. Compiler.CodeCo mpiler.FromSour ceBatch(Compile rParameters
options, String[] sources) +433

System.CodeDom. Compiler.CodeCo mpiler.FromSour ce(CompilerPara meters
options, String source) +90

System.CodeDom. Compiler.CodeCo mpiler.System.C odeDom.Compiler .ICodeCompiler. CompileAssembly FromSource(Comp ilerParameters
options, String source) +37

System.Xml.Seri alization.Compi ler.Compile(Ass embly parent, String ns,
CompilerParamet ers parameters, Evidence evidence) +478

System.Xml.Seri alization.TempA ssembly.Generat eAssembly(XmlMa pping[]
xmlMappings, Type[] types, String defaultNamespac e, Evidence evidence,
CompilerParamet ers parameters, Assembly assembly, Hashtable assemblies)
+2143

System.Xml.Seri alization.TempA ssembly..ctor(X mlMapping[] xmlMappings,
Type[] types, String defaultNamespac e, String location, Evidence
evidence) +137

System.Xml.Seri alization.XmlSe rializer.FromMa ppings(XmlMappi ng[]
mappings, Type type) +193

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

System.Web.Serv ices.Protocols. SoapHttpClientP rotocol

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

May 22 '06 #1
2 7030
most likely you are using default serialization code and impersonation. the
first time you serialize, or deserialize an object, .net uses reflection to
determine the member to serizalize, generates code (so early binding instead
of late binding can be used), compile the code, and load the module.

this means the thread that first calls serialization must have the proper
permissions to the temp dirs used to compile (as only javascript supports in
memory compiles, all other compiler write to disk first).

you have three choices,

1) give everone permission to the temp folders (not the best)
2) before calling serialzation revert to the asp.net account, then restore
impersonation after serialzation.
3) do a dummy serialization of your objects in the application onload.

-- bruce (sqlwork.com)

"mudge" <mw****@hotmail .com> wrote in message
news:11******** **************@ j55g2000cwa.goo glegroups.com.. .
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(t ext2))
{
throw new InvalidOperatio nException(
SR.GetString("C ompilerNotFound ", 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\micr osoft.net\frame work\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.InvalidO perationExcepti on: Compiler
executable file c:\windows\micr osoft.net\frame work\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:

[InvalidOperatio nException: Compiler executable file
c:\windows\micr osoft.net\frame work\v1.1.4322\ csc.exe cannot be found.]

System.CodeDom. Compiler.CodeCo mpiler.Compile( CompilerParamet ers
options, String compilerDirecto ry, String compilerExe, String
arguments, String& outputFile, Int32& nativeReturnVal ue, String
trueArgs) +470

System.CodeDom. Compiler.CodeCo mpiler.FromFile Batch(CompilerP arameters
options, String[] fileNames) +548

System.CodeDom. Compiler.CodeCo mpiler.FromSour ceBatch(Compile rParameters
options, String[] sources) +433

System.CodeDom. Compiler.CodeCo mpiler.FromSour ce(CompilerPara meters
options, String source) +90

System.CodeDom. Compiler.CodeCo mpiler.System.C odeDom.Compiler .ICodeCompiler. CompileAssembly FromSource(Comp ilerParameters
options, String source) +37

System.Xml.Seri alization.Compi ler.Compile(Ass embly parent, String ns,
CompilerParamet ers parameters, Evidence evidence) +478

System.Xml.Seri alization.TempA ssembly.Generat eAssembly(XmlMa pping[]
xmlMappings, Type[] types, String defaultNamespac e, Evidence evidence,
CompilerParamet ers parameters, Assembly assembly, Hashtable assemblies)
+2143

System.Xml.Seri alization.TempA ssembly..ctor(X mlMapping[] xmlMappings,
Type[] types, String defaultNamespac e, String location, Evidence
evidence) +137

System.Xml.Seri alization.XmlSe rializer.FromMa ppings(XmlMappi ng[]
mappings, Type type) +193

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

System.Web.Serv ices.Protocols. SoapHttpClientP rotocol

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

May 22 '06 #2
Hi Bruce,

Thanks for that. This does sort of make sense. But the one thing that
is still bugging me is why this doesn't consistently fail. From what
you say here, I would expect the system to fail each and every time,
whereas it has about a 40/60 successs/failure rate...

I'm afraid I've not had a chance to try out what you suggest yet, but I
will do as soon as I get a free moment.

Cheers,

mudge

May 24 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
6682
by: Chris Mantoulidis | last post by:
Out of curiosity, I wanted to test executable file sizes of the same program from different compilers... The 2 compilers I tested (both old, on purpose) were Borland C++ 3.1 and DJGPP 2.03... The program was nothing but a simple hello world program using the iostream header file... I compiled and linked (both copies) with those 2 different
3
1380
by: Gary Ferland | last post by:
Greetings, I have a large console C code that is compiled every night by the master machine that hosts the source. I have a number of slave machines that then make copies of the executable on their own disk, and run a series of tests. The code is built with VS2005 rc on the master and each of the slave machines has its own copy of VS2005 rc although they simply copy the exe file to their own space. These tests take a full day, and the...
9
1715
by: Azeem M. Suleman | last post by:
Hello, I need to use Csharp compiler and an interpretor. In my application user will use the application and application will write CSharp code on backend. But now i don't need to reinvent the wheel, just need to know how i can give user an option to build the project which will compile and make an executable file. thanks.
4
5406
by: james margey | last post by:
Hi to all, I have spent 3 days at this error and i have two days to go for a deadline, and i am about to go off my nut, the reason being: Microsoft dont seem to be able to provide a solution, I have trawled the web and the few that have the same error have not being provided a fix. This error occurs if i make the slightest change in my project. If i REBUILD my project no error occurs. So i keep having to rebuild my project - this is not...
28
20509
by: Tim Daneliuk | last post by:
I have a program wherein I want one behavior when a file is set as executable and a different behavior if it is not. Is there a simple way to determine whether a given named file is executable that does not resort to all the lowlevel ugliness of os.stat() AND that is portable across Win32 and *nix? Thanks, ---------------------------------------------------------------------------- Tim Daneliuk tundra@tundraware.com PGP Key: ...
30
2945
by: lovecreatesbea... | last post by:
K&R says the following in the preface to the first edition, "... the C compiler, and ... are written in C." I'm wondering, does it say even the first / original C compiler was written in C?
3
3437
by: Rene | last post by:
Hello to all! For a long time I have been "fighting" a problem compiling an OpenGL program which uses GLUT. First I have put a question in a Watcom group (I want to use this compiler) to which I got no reply, in an OpenGL group somebody recommended me to use Visual C++ which I did. That worked OK but I do would like to use Watcom. In the meantime I found solutions to several of the errors I got but one is left which I cannot find a...
41
18134
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
2
10827
by: meskeleton | last post by:
Hello everyone... I am new to this community so m sorry if this is not the place for this post... I uploaded my site (built in 3.5 framework) to the server which does not have 3.5 but 2.0. I uploaded the System.Core.dll file in the bin folder of the wwwroot/ folder. but doesn't help either... Now when i access my home page, I get this erro saying 'Compiler executable file csc.exe cannot be found.'
0
7936
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6646
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5738
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5402
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3893
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2383
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1469
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.