I've just deployed this application to our development server and now I'm getting the following error when I try and load ANY page. It has been working fine all day until I made a small change; specifically, it uses impersonation in code (not in the web.config)
and I changed the credentials. It also works fine on my local server. I tried reverting the change, no luck. I've done some research but since it seems like a pretty generic exception I haven't turned up anything.
I'm pretty stumped on this right now. Any help would be appreciated.
Thanks!
Server Error in '/mile' Application.
The directory name is invalid
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.ComponentModel.Win32Exception: The directory name is invalid
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:
[Win32Exception (0x80004005): The directory name is invalid]
[ExternalException (0x80004005): Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\mile\fe49c2ab\e498d378\00c0dxjv.cmdline".]
System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +6043905
System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +122
Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeReturnValue, String trueArgs) +261
Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames) +474
Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) +193
System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames) +25
System.Web.Compilation.AssemblyBuilder.Compile() +961
System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +222
System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +9041622
System.Web.Compilation.BuildManager.CompileGlobalAsax() +44
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +265
[HttpException (0x80004005): Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\mile\fe49c2ab\e498d378\00c0dxjv.cmdline".]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +62
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +421
System.Web.Compilation.BuildManager.CallAppInitializeMethod() +31
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +605
[HttpException (0x80004005): Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\mile\fe49c2ab\e498d378\00c0dxjv.cmdline".]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9013676
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256
Yep, directory exists. That's the folder the application is deployed into. Also logged into the server and made sure it was still recognized as an application in IIS.
Update: I've just created a basic HTML file in the application folder - just vanilla HTML, no ASP, no Java, nothing. I get the same result.
Very good idea! That happened to me before, too, and this time there was an additional web.config in one of the subdirectories. Got rid of it and sadly still having the same problem. Good thought, though.
Because the program is installed in the different path, so you can't find that.
You can correct the path and try again.
Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\mile\fe49c2ab\e498d378\00c0dxjv.cmdline".]
Please mark the replies as answers if they help or unmark if not.
I don't understand. What path should I correct and where?
Hua-Jun Li - MSFT
Hi,
Because the program is installed in the different path, so you can't find that.
You can correct the path and try again.
Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\mile\fe49c2ab\e498d378\00c0dxjv.cmdline".]
DrRetro
Member
6 Points
5 Posts
"The directory name is invalid" Exception on deployment server.
Mar 15, 2012 07:52 PM|LINK
Hi all,
I've just deployed this application to our development server and now I'm getting the following error when I try and load ANY page. It has been working fine all day until I made a small change; specifically, it uses impersonation in code (not in the web.config) and I changed the credentials. It also works fine on my local server. I tried reverting the change, no luck. I've done some research but since it seems like a pretty generic exception I haven't turned up anything.
I'm pretty stumped on this right now. Any help would be appreciated.
Thanks!
Server Error in '/mile' Application.
The directory name is invalid
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.ComponentModel.Win32Exception: The directory name is invalid
Source Error:
Stack Trace:
newbiefreak
Member
468 Points
214 Posts
Re: "The directory name is invalid" Exception on deployment server.
Mar 15, 2012 08:08 PM|LINK
have you checked the "mile" directory exist on your server ?
may be you didnt create while uploading your application
DrRetro
Member
6 Points
5 Posts
Re: "The directory name is invalid" Exception on deployment server.
Mar 15, 2012 08:11 PM|LINK
Yep, directory exists. That's the folder the application is deployed into. Also logged into the server and made sure it was still recognized as an application in IIS.
Update: I've just created a basic HTML file in the application folder - just vanilla HTML, no ASP, no Java, nothing. I get the same result.
newbiefreak
Member
468 Points
214 Posts
Re: "The directory name is invalid" Exception on deployment server.
Mar 15, 2012 08:29 PM|LINK
there is a possibility that you might have uploaded 2 web config file ...
this happened to me once because of multiple web config files were uploaded by mistake
DrRetro
Member
6 Points
5 Posts
Re: "The directory name is invalid" Exception on deployment server.
Mar 15, 2012 08:35 PM|LINK
Very good idea! That happened to me before, too, and this time there was an additional web.config in one of the subdirectories. Got rid of it and sadly still having the same problem. Good thought, though.
newbiefreak
Member
468 Points
214 Posts
Re: "The directory name is invalid" Exception on deployment server.
Mar 15, 2012 08:37 PM|LINK
i m glad that it helped else you might have to go through whole coding part and that is alot timing taking procedure
take care
DrRetro
Member
6 Points
5 Posts
Re: "The directory name is invalid" Exception on deployment server.
Mar 15, 2012 08:41 PM|LINK
Actually, that didn't fix it. Thanks for the help, though.
Hua-Jun Li -...
All-Star
75950 Points
5608 Posts
Re: "The directory name is invalid" Exception on deployment server.
Mar 22, 2012 12:20 PM|LINK
Hi,
Because the program is installed in the different path, so you can't find that.
You can correct the path and try again.
Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\mile\fe49c2ab\e498d378\00c0dxjv.cmdline".]
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
DrRetro
Member
6 Points
5 Posts
Re: "The directory name is invalid" Exception on deployment server.
Apr 30, 2012 06:56 PM|LINK
I don't understand. What path should I correct and where?
msolcia
Member
2 Points
1 Post
Re: "The directory name is invalid" Exception on deployment server.
Oct 12, 2012 09:39 AM|LINK
I have same problem randomly. Do you have found the solution?
Thanks in advance.
Massimo