Re: Error calling Path.GetTempFileName(): The directory name is invalid
From: Jerry Pisk (jerryiii_at_hotmail.com)
Date: 06/13/04
- Next message: z. f.: "getting console input key stroke without blocking"
- Previous message: Andre: "Re: Any good code obfuscator?"
- In reply to: Glenn A. Harlan: "Re: Error calling Path.GetTempFileName(): The directory name is invalid"
- Next in thread: Glenn A. Harlan: "Re: Error calling Path.GetTempFileName(): The directory name is invalid"
- Reply: Glenn A. Harlan: "Re: Error calling Path.GetTempFileName(): The directory name is invalid"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 13 Jun 2004 00:45:11 -0700
Most likely it would be the ASPNET user. I'm not sure how to set that user's
environment (without writing code) but first check what the temp directory
is, Path.GetTempPath(). Check if the name is valid and the directory exists
and that ASPNET can write into it (but i think you'd get a different
exception if it was a permission issue).
Jerry
"Glenn A. Harlan" <gaharlan@hotmail.com> wrote in message
news:ZPqdnRU8kdN_K1bdRVn-ug@comcast.com...
> 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.
>>>
>>
>>
>>
>
- Next message: z. f.: "getting console input key stroke without blocking"
- Previous message: Andre: "Re: Any good code obfuscator?"
- In reply to: Glenn A. Harlan: "Re: Error calling Path.GetTempFileName(): The directory name is invalid"
- Next in thread: Glenn A. Harlan: "Re: Error calling Path.GetTempFileName(): The directory name is invalid"
- Reply: Glenn A. Harlan: "Re: Error calling Path.GetTempFileName(): The directory name is invalid"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|