ASP on Windows 2003

I'm trying to run an aspx on a 2003 server and get the error "BC30138: Unable to create temp file in path 'C:\WINDOWS\TEMP'"

we tried giving ASPNET account access to 'C:\WINDOWS\TEMP' but no luck there. Any ideas on this ?

Thanks!

[239 byte] By [Joei22] at [2008-2-10]
# 1

Hi Joie22,

the process modell changed with IIS6 on Win2003 so you will see your code is executed by a process called w3wp.exe. By default is is executed as "Network service".

Have a look in IIS Manager: you will see "Application Pools". This is the place where you create "applications" which can be given an identity (windows account) to run in. Create a new one if "Network Service" is no good default for you and attach you web site or web app with that new app pool. Scan the property pages of the site or app and you will find the "Application pool" combo box to select your pool.

Another question: why is C:\windows\temp used? That might not be a good place for storing/reading data when implementing a web app. Maybe you should move to a place not in such a security critical directory like the OS directory Smile

HTH,
SvenC

SvenC at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified