473,326 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Network Service Permissions on Temporary ASP.Net Files?

I'm having problems with installation of a Web app on my Win 2003 server.

I copy up the app configure the virtual. But when I access any ASPX pages I
now get:

CS0016: Could not write to output file
'd:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\company_mywebapp\e792bb5e\ed91474e\nupdhhtj. dll' -- 'Access is denied.
'

This appears to have to do with how IIS 6's Impersonation is configured. If
I change the AppPool configuration to using 'Local System' account rather
than 'Network Service' then the app runs fine.

Now, I've checked the permissions on the folder in the above errror message
and I even went as far as giving Everyone full access to the Temporary
ASP.Net Files folder, but the app will simply not run with the default
settings throwing the above error.

What permission requirements are there to make this work? Any ideas?

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web

Nov 17 '05 #1
2 3338
Hi Rick,

You've probably done this already, but I'm just checking whether you granted
full permissions on the Temp folder to the NETWORK SERVICE user account in .NET
Framework 1.1?

Apparently ASP.NET uses the Temp folder to generate files before they are
copied to the other Temporary folder:

PRB: CS0013 or CS0016 Compilation Errors in ASP.NET Web Applications

http://support.microsoft.com/default...b;en-us;825791

Ken

--
Microsoft MVPs have a question for *you*: Are you patched against the Worm?
http://www.microsoft.com/security/se...s/ms03-026.asp

"Rick Strahl [MVP]" <ri********@hotmail.com> wrote in message
news:O6**************@tk2msftngp13.phx.gbl...
I'm having problems with installation of a Web app on my Win 2003 server.

I copy up the app configure the virtual. But when I access any ASPX pages I
now get:

CS0016: Could not write to output file
'd:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\company_mywebapp\e792bb5e\ed91474e\nupdhhtj. dll' -- 'Access is denied.
'

This appears to have to do with how IIS 6's Impersonation is configured. If
I change the AppPool configuration to using 'Local System' account rather
than 'Network Service' then the app runs fine.

Now, I've checked the permissions on the folder in the above errror message
and I even went as far as giving Everyone full access to the Temporary
ASP.Net Files folder, but the app will simply not run with the default
settings throwing the above error.

What permission requirements are there to make this work? Any ideas?

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web


Nov 17 '05 #2
Thanks Ken,

Definitely didn't have this set. Just tried setting it quickly and now I get
'Application unavailable', which is worse yet <g>... switching back to
System runs the app fine.

I'll have to test this locally. I've been doing this over a remote
connection to the server and it's a bit painful this way <g>... app runs for
hte moment, but with a less than optimal security environment.

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web
"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:uQ**************@TK2MSFTNGP09.phx.gbl...
Hi Rick,

You've probably done this already, but I'm just checking whether you granted full permissions on the Temp folder to the NETWORK SERVICE user account in ..NET Framework 1.1?

Apparently ASP.NET uses the Temp folder to generate files before they are
copied to the other Temporary folder:

PRB: CS0013 or CS0016 Compilation Errors in ASP.NET Web Applications

http://support.microsoft.com/default...b;en-us;825791

Ken

--
Microsoft MVPs have a question for *you*: Are you patched against the Worm? http://www.microsoft.com/security/se...s/ms03-026.asp

"Rick Strahl [MVP]" <ri********@hotmail.com> wrote in message
news:O6**************@tk2msftngp13.phx.gbl...
I'm having problems with installation of a Web app on my Win 2003 server.

I copy up the app configure the virtual. But when I access any ASPX pages I now get:

CS0016: Could not write to output file
'd:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\company_mywebapp\e792bb5e\ed91474e\nupdhhtj. dll' -- 'Access is denied. '

This appears to have to do with how IIS 6's Impersonation is configured. If I change the AppPool configuration to using 'Local System' account rather
than 'Network Service' then the app runs fine.

Now, I've checked the permissions on the folder in the above errror message and I even went as far as giving Everyone full access to the Temporary
ASP.Net Files folder, but the app will simply not run with the default
settings throwing the above error.

What permission requirements are there to make this work? Any ideas?

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Stanley J, Mroczek | last post by:
My disk was replaced and i reload all my software. I think that i named my computer best-si-01 instead of BEST-SI-01 and thats my error? Login failed for user 'NT AUTHORITY\NETWORK SERVICE'....
10
by: MHenry | last post by:
Hi, We were going merrily along for 6 years using this database to record all client checks that came into our office, including information about what the checks were for. Suddenly, network...
11
by: TheBurgerMan | last post by:
Hi all. I am using W2K3, .NET2 on a machine running AD and Exchange. I started getting the message below last week. I googled the error and not much was returned, but I did find this;...
1
by: Sudha | last post by:
Hi All, I've a requirement to call a web service from an ASP page. As we have only two options, using SOAP Toolkit 3.0 and XMLHttp object, which are not upto my requirement, I thought I will...
3
by: Miriam | last post by:
Hello, I created a Windows Service in VB.NET, which is to purge files periodically in the local system and also in the shared network drive. Here is my problem: 1. If I set the “Account”...
2
by: Michael | last post by:
We have an ASP.NET 2.0 web application running on a Windows 2003 domain controller. Part of that application needs to read and write files from and to a network share ( living on a MAC Xserveraid)...
4
by: carson | last post by:
I have written two windows services: - service A does some crunching of local data files and uploads them to a central processing computer via http. - service B monitors a manifest file on a...
5
by: | last post by:
Is it advisable to store my own data as XML in the folder returned by HttpRuntime.CodeGenDir? (i.e. in "Temporary ASP.NET Files") Each web service on the server must try to read its own cached...
0
by: yoozioo | last post by:
hello, This year I'm learning C# at school and now we focus on web services. I created and published a web service which contains a method that calls another web service written by my class...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.