473,892 Members | 1,429 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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 "impersonat or" 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\mic rosoft.net\fram ework\v1.1.4322
\csc.exe" /noconfig
@"C:\WINDOWS\Mi crosoft.NET\Fra mework\v1.1.432 2\Temporary
ASP.NET Files\order system web csharp\8ca5eae6 \8a7b6687
\bjwjj_c0.cmdli ne".
Description: An unhandled exception occurred during
compilation using the
CodeDomProvider 'Microsoft.CSha rp.CSharpCodePr ovider'.
Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details:
System.Runtime. InteropServices .ExternalExcept ion: Cannot
execute a program. The command being executed
was "c:\windows\mic rosoft.net\fram ework\v1.1.4322
\csc.exe" /noconfig
@"C:\WINDOWS\Mi crosoft.NET\Fra mework\v1.1.432 2\Temporary
ASP.NET Files\order system web csharp\8ca5eae6 \8a7b6687
\bjwjj_c0.cmdli ne".

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:
[ExternalExcepti on (0x5): Cannot execute a program. The
command being executed
was "c:\windows\mic rosoft.net\fram ework\v1.1.4322
\csc.exe" /noconfig
@"C:\WINDOWS\Mi crosoft.NET\Fra mework\v1.1.432 2\Temporary
ASP.NET Files\order system web csharp\8ca5eae6 \8a7b6687
\bjwjj_c0.cmdli ne".]
System.CodeDom. Compiler.Execut or.ExecWaitWith CaptureUnimpe
rsonated(IntPtr userToken, String cmd, String currentDir,
TempFileCollect ion tempFiles, String& outputName, String&
errorName, String trueCmdLine) +2050
System.CodeDom. Compiler.Execut or.ExecWaitWith Capture
(IntPtr userToken, String cmd, String currentDir,
TempFileCollect ion tempFiles, String& outputName, String&
errorName, String trueCmdLine) +260
System.CodeDom. Compiler.CodeCo mpiler.Compile
(CompilerParame ters options, String compilerDirecto ry,
String compilerExe, String arguments, String& outputFile,
Int32& nativeReturnVal ue, String trueArgs) +383
System.CodeDom. Compiler.CodeCo mpiler.FromFile Batch
(CompilerParame ters options, String[] fileNames) +548
System.CodeDom. Compiler.CodeCo mpiler.FromDomB atch
(CompilerParame ters options, CodeCompileUnit[] ea) +428
System.CodeDom. Compiler.CodeCo mpiler.FromDom
(CompilerParame ters options, CodeCompileUnit e) +90
System.CodeDom. Compiler.CodeCo mpiler.System.C odeDom.Compil
er.ICodeCompile r.CompileAssemb lyFromDom
(CompilerParame ters options, CodeCompileUnit e) +37
System.Web.Comp ilation.BaseCom piler.GetCompil edType() +227

----------------------------------------------------------
----------------------
Version Information: Microsoft .NET Framework
Version:1.1.432 2.573; ASP.NET Version:1.1.432 2.573
Nov 15 '05 #1
1 3643
Did you created the virtual directory as an application?
"Chris" <cb******@visio nds.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 "impersonat or" 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\mic rosoft.net\fram ework\v1.1.4322
\csc.exe" /noconfig
@"C:\WINDOWS\Mi crosoft.NET\Fra mework\v1.1.432 2\Temporary
ASP.NET Files\order system web csharp\8ca5eae6 \8a7b6687
\bjwjj_c0.cmdli ne".
Description: An unhandled exception occurred during
compilation using the
CodeDomProvider 'Microsoft.CSha rp.CSharpCodePr ovider'.
Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details:
System.Runtime. InteropServices .ExternalExcept ion: Cannot
execute a program. The command being executed
was "c:\windows\mic rosoft.net\fram ework\v1.1.4322
\csc.exe" /noconfig
@"C:\WINDOWS\Mi crosoft.NET\Fra mework\v1.1.432 2\Temporary
ASP.NET Files\order system web csharp\8ca5eae6 \8a7b6687
\bjwjj_c0.cmdli ne".

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:
[ExternalExcepti on (0x5): Cannot execute a program. The
command being executed
was "c:\windows\mic rosoft.net\fram ework\v1.1.4322
\csc.exe" /noconfig
@"C:\WINDOWS\Mi crosoft.NET\Fra mework\v1.1.432 2\Temporary
ASP.NET Files\order system web csharp\8ca5eae6 \8a7b6687
\bjwjj_c0.cmdli ne".]
System.CodeDom. Compiler.Execut or.ExecWaitWith CaptureUnimpe
rsonated(IntPtr userToken, String cmd, String currentDir,
TempFileCollect ion tempFiles, String& outputName, String&
errorName, String trueCmdLine) +2050
System.CodeDom. Compiler.Execut or.ExecWaitWith Capture
(IntPtr userToken, String cmd, String currentDir,
TempFileCollect ion tempFiles, String& outputName, String&
errorName, String trueCmdLine) +260
System.CodeDom. Compiler.CodeCo mpiler.Compile
(CompilerParame ters options, String compilerDirecto ry,
String compilerExe, String arguments, String& outputFile,
Int32& nativeReturnVal ue, String trueArgs) +383
System.CodeDom. Compiler.CodeCo mpiler.FromFile Batch
(CompilerParame ters options, String[] fileNames) +548
System.CodeDom. Compiler.CodeCo mpiler.FromDomB atch
(CompilerParame ters options, CodeCompileUnit[] ea) +428
System.CodeDom. Compiler.CodeCo mpiler.FromDom
(CompilerParame ters options, CodeCompileUnit e) +90
System.CodeDom. Compiler.CodeCo mpiler.System.C odeDom.Compil
er.ICodeCompile r.CompileAssemb lyFromDom
(CompilerParame ters options, CodeCompileUnit e) +37
System.Web.Comp ilation.BaseCom piler.GetCompil edType() +227

----------------------------------------------------------
----------------------
Version Information: Microsoft .NET Framework
Version:1.1.432 2.573; ASP.NET Version:1.1.432 2.573

Nov 15 '05 #2

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

Similar topics

5
5054
by: BJ | last post by:
The application I have been developing is great except one flaw. When Windows NT shuts down, it doesn't send the Event to my application (if it did, it would close all of the open forms and kill an activity flag I create on launch) and an error comes up that says "Cannot Quit". I have no idea where this error is coming from as I did put it in there. I am unsure if this is because of the hidden form which has a bunch of timers on it (I...
1
2848
by: Andreas Poller | last post by:
Hello, I have the following problem: I have a class deriving from ICustomTypeDescriptor: public __gc class TPropertyBag : public ICustomTypeDescriptor { private: ...
0
2138
by: Mr.KisS | last post by:
Hello. I'm under Windows XP PRO SP1, IIS 5.1 ans SQL SERVER 2005 Express. When i try to open a connexion with : <connectionStrings> <add name="AppCnxStr" connectionString="Server=KLEO\SQLEXPRESS;Integrated Security=True;Database=C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\wizou.mdf" providerName="System.Data.SqlClient" />
2
10654
by: Mr.KisS | last post by:
Hello. I'm under Windows XP PRO SP1, IIS 5.1 ans SQL SERVER 2005 Express. When i try to open a connexion with : <connectionStrings> <add name="AppCnxStr" connectionString="Server=KLEO\SQLEXPRESS;Integrated Security=True;Database=C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\wizou.mdf" providerName="System.Data.SqlClient" />
1
1861
by: Dgates | last post by:
This request might belong in a "SQL"-related newsgroup, but it's such a pain using Agent to subscribe to a new group (and download its 50,000 messages!) just to ask one question. So, since it deals with an ASP.NET app, I thought I'd ask here. ============================================== I am using Web Data Adminstrator, which I downloaded recently from the Microsoft site. I get an error when I create tables or columns:
7
12189
by: Mathew Butler | last post by:
I'm investigating an issue I have when pulling data back from MS access I'm retrieving all rows from a column in a table of 5000 rows - accessing a column of type "memo" ( can be 65353 character long) . I'm pulling the data back using ODBC. Details are: Microsoft Access Driver 4.00.6306.00 Jet 4.0 release level that is currently installed (Msjet40.dll ) "Microsoft Jet Engine Library" 4.0.9025.0 After 291 rows are retreived I am...
15
28842
by: Bjorn Jensen | last post by:
Hi! An beginner question: Pleas help me with this (-: Error (the arrow points on the s in sqrt) ===== tal.java:6: cannot find symbol symbol : method sqrt(int) location: class tal System.out.println(i + ": " + sqrt(4));
0
2533
by: drewmania001 | last post by:
When trying to setup relplication for SQL i am getting the following error. "The system cannot find the path specified" The problem is when trying to run: sp_adddistributiondb line 434: RAISERROR (14113, 16, -1, @osql_cmd, 'instdist.out') The details... MSDE2 SP3 Win 2003 STANDARD edition
3
8817
blazedaces
by: blazedaces | last post by:
Hello, it's been a while since I posted on these forums. My issue I think isn't as much in my code as it's in the syntax and structure in references other packages. I'll get straight to it then: There's a package called "randomX" which, while I don't know if you care to know, has a program that accesses a site called hotbits to produce true random numbers based on radioactive decay. You can look it up if you're any interested. Anyway,...
0
9830
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9644
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
8018
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
7172
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
5857
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6065
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4279
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3288
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.