Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.Net and IIS problem

Status
Not open for further replies.

NoCoolHandle

Programmer
Apr 10, 2003
2,321
US
Hi, I have just reciently recompiled a .NEt web app (which still runs fine on my dev machine) and the Web Server that I have been hosting the site on, now fails to run any aspx page..

The key parts of the error seem to be ..
Exception Details:.... \cygtlmbj.cmdline
and
....framework\v1.1.4322\vbc.exe"
(full error at bottom of post)


Any Clues greatly appreciated..

I have tired restarting services, servers and reinstalling the framework 1.1 files. At this point I am thinking of uninstalling and reinstalling iis.. (YUK don't want to do this)

Rob
PS full details
Exception Details:
System.Runtime.InteropServices.ExternalException: Cannot
execute a program. The command being executed
was "f:\winnt\microsoft.net\framework\v1.1.4322\vbc.exe"
@"F:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\family\3425fb56\9af85b02\cygtlmbj.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 "f:\winnt\microsoft.net\framework\v1.1.4322\vbc.exe"
@"F:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\family\3425fb56\9af85b02\cygtlmbj.cmdline".]

System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpe
rsonated(IntPtr userToken, String cmd, String currentDir,
TempFileCollection tempFiles, String& outputName, String&
errorName, String trueCmdLine) +2036
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.Compil
er.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

.


 
For anyone who finds or sees this error (there were 3 instances I found on the net, but with no resolution) the problem was permissions.

The strange thing was that the problem didn't show up until I recompiled the app. I had run the iis sercurity lockdown tool on my server with the latest round of attacks and it's effects were still prevelant after uninstalling and reinstalling iis.

When I ran it again (just to secure the site), it asked if I wanted to uninstall it, and when I did, the web site started working again.

For what it is worth..

Hope it saves someone else some frustration.

Rob
 
have you try aspnet_regiis -i to reinstall them all in iis
 
I have tired restarting services, servers and reinstalling the framework 1.1 files. At this point I am thinking of uninstalling and reinstalling iis.. (YUK don't want to do this)

It was all about permissons and none of the normal .net install options did anything.. yes I ran aspnet_regiis -i but it still refused to run. (there is another asp install exe that I had run as well but that didn't work either. - I just can't remember what it was now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top