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

From: Jerry Pisk (jerryiii_at_hotmail.com)
Date: 06/13/04


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.
>>>
>>
>>
>>
>



Relevant Pages

  • Re: Error calling Path.GetTempFileName(): The directory name is invalid
    ... Most likely it would be the ASPNET user. ... environment but first check what the temp directory ... > If so how do I set the environment for that User? ... > Jerry Pisk wrote: ...
    (microsoft.public.dotnet.general)
  • Re: Bluebeam PDF printer files?
    ... You need to look for *.PSB files. ... BlueBeam printer. ... The default location is in your temp directory ... specified in the environment of Windows. ...
    (comp.cad.solidworks)
  • RE: ASP.NET Certificate Problem on Windows 2003
    ... it doesn't work only in ASP.NET environment. ... i've granted permissions on the store to ASPNET user. ... make it work in Windows 2K environment. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Access to path **** denied.
    ... It seems like IIS ... cant create a temp directory. ... I also added the ASPNET user to the ...
    (microsoft.public.dotnet.framework.aspnet.security)