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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CodeDom temp file locations 1

Status
Not open for further replies.

kettch

Programmer
Mar 5, 2001
110
US
How do I change the location that the codedom uses to store it's temp files? I tried setting the CompilerParameters.TempFiles property to New TempFileCollection(<path>, False) but it doesn't seem to change anything.


What am I doing wrong?

Thanks...
 
To clarify, I am trying to move this so that I can get around this error, which is something about permissions?

Code:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll

Additional information: File or assembly name 5txjsfmy.dll, or one of its dependencies, was not found.
 
What kind of project is this running in? ASP.NET?

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
OK, now I'm annoyed. I set all of the permissions on that folder to Everyone/Full and it still doesn't work.

And it's a winforms app
 
the weird filename is the random name given to the temp files created by the compiler. Never mind on that. There was an error being generated, so it didn't actually compile.

That brings up a new issue, how does one add a reference to an interface using the codedom? as in :

Code:
public class SomeClass Implements ISomeInterface

apparently I was doing it wrong and that is why I was getting the error.
 
There are some things that the Code DOM just doesn't do. This might be one of them.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
It works if you do a

Code:
.BaseType.Add(<any type usually object>)
.BaseType.Add(<interface to add>)

the first becomes an "Inherits" and the second becomes "Implements"

At least it works :D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top