Re: Error calling Path.GetTempFileName(): The directory name is invalid

From: Glenn A. Harlan (gaharlan_at_hotmail.com)
Date: 06/13/04


Date: Sat, 12 Jun 2004 22:07:37 -0400

Wouldn't that be the ASPNET user?
If so how do I set the environment for that User?

Jerry Pisk wrote:
> Because your TEMP or TMP environment variable (for your web site's account)
> is an invalid directory name?
>
> Jerry
>
> "Glenn A. Harlan" <gaharlan@hotmail.com> wrote in message
> news:HpednTP-kOD1yVfd4p2dnA@comcast.com...
>
>>Why am I receiving the below error when calling - Path.GetTempFileName()
>>
>>
>>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.IO.IOException: The directory name is invalid.
>>
>
>
>