Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Cassini vs2008 redistributable wont install if windows\temp does not exist
dombat
#1 Posted : Wednesday, December 1, 2010 2:48:44 AM(UTC)
Groups: Member
Joined: 11/18/2010(UTC)
Posts: 13
Location: UK


I have found that if "c:Windows\temp" does not exist, then the vs2008 cassini redistributable won't install.

It seems to ignore the TEMP environment variable.

If TEMP does not exist, you get the error and event log message:

Service cannot be started. System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\WINDOWS\TEMP\haab62bw.tmp'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at System.CodeDom.Compiler.TempFileCollection.EnsureTempNameCreated()
at System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension, Boolean keepFile)
at System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension)
at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)...
Ultidev Team
#2 Posted : Wednesday, December 1, 2010 5:18:26 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi there!

ASP.NET code complier uses TEMP directory to generate binary assemblies from ASPX files and other web application assets. If Temp folder is missing, it can't continue. Unfortunately it is impossible for us to program around problems caused by random something being broken in the system - certain level of system integrity has to be assumed.

Here's where system (not user) temp folder path is specified:


Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
dombat
#3 Posted : Wednesday, December 1, 2010 5:59:26 AM(UTC)
Groups: Member
Joined: 11/18/2010(UTC)
Posts: 13
Location: UK

Ah thanks, that's interesting.

This was a clean XP install on MS Virtual PC, so perhaps it's an issue with a virtual computer and not very "real world" as I've never seen a computer without a c:\windows\temp !
Ultidev Team
#4 Posted : Wednesday, December 1, 2010 12:42:20 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Actually, clean XP VM should be perfect for testing - we do that all the time. See if you can create another VM and whether it will have same problem. But the bottom line is that if system environment variable states that TEMP is at c:\windows\temp, the folder must exist. Otherwise many other bad things are likely to happen.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.