473,406 Members | 2,387 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,406 software developers and data experts.

CS0016 Error suddenly happened and persist

Yesterday, all my ASP.NET running fine, at least this error didn't
raise. Today, I turned on the PC at the morning and receive this error:

Compiler Error Message: CS0016: Could not write to output file
'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\flexnewsdotnet\36c8c83f\1ce438d6\-ognayiy.dll' -- 'Access is denied.'

I checked the permission for the ASPNET account in Temporary ASP.NET
Files folder and Temp folder, it won't work. I tried to delete the
content in Temporary ASP.NET Files, I can't, then I notice there's a
process named w3wp.exe running, I killed it and I can delete the folder
content.

But the problem still persist, I reset the PC over and over, still the
same...

Should I reinstall ASP.NET, I think it won't help... there's must be
some reason and fix around, please help...
Nov 18 '05 #1
3 1504
Hi,

if the process is w3wp.exe, you are using Windows Server 2003, right? If
that's the case, unless you haven't changed default settings) the user
ASP.NET runs under is NETWORK SERVICE and you need to give permissions to
the Temporary ASp.NET files for this user.

Between the two days, was there any updates to the machine like from Windows
update or something?

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke

"FrzzMan[" <"FrzzMan["@]vnOCzone.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Yesterday, all my ASP.NET running fine, at least this error didn't
raise. Today, I turned on the PC at the morning and receive this error:

Compiler Error Message: CS0016: Could not write to output file
'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\flexnewsdotnet\36c8c83f\1ce438d6\-ognayiy.dll' -- 'Access is denied.'
I checked the permission for the ASPNET account in Temporary ASP.NET
Files folder and Temp folder, it won't work. I tried to delete the
content in Temporary ASP.NET Files, I can't, then I notice there's a
process named w3wp.exe running, I killed it and I can delete the folder
content.

But the problem still persist, I reset the PC over and over, still the
same...

Should I reinstall ASP.NET, I think it won't help... there's must be
some reason and fix around, please help...

Nov 18 '05 #2
Teemu Keiski wrote:
Hi,

if the process is w3wp.exe, you are using Windows Server 2003, right? If
that's the case, unless you haven't changed default settings) the user
ASP.NET runs under is NETWORK SERVICE and you need to give permissions to
the Temporary ASp.NET files for this user.

Between the two days, was there any updates to the machine like from Windows
update or something?


Yes the OS is WS2k3 Enterprise, but it's trial version, btw I don't
think it's because of the OS is the "trial"...

I uninstall IIS, ASP.NET and reinstall it... it run fine, well, until I
restart the machine...

Can't understand this thing... why did it mess everything up???

The permissions are all correct I'm sure, but I don't know why it didn't
work...
Nov 18 '05 #3
Teemu Keiski wrote:
Hi,

if the process is w3wp.exe, you are using Windows Server 2003, right? If
that's the case, unless you haven't changed default settings) the user
ASP.NET runs under is NETWORK SERVICE and you need to give permissions to
the Temporary ASp.NET files for this user.

Between the two days, was there any updates to the machine like from Windows
update or something?


I noticed something, the application run fine until I changed something
in the code. When I rebuild the project, it work fine. But when I reopen
it in browser, the error raised.

In the Task Manager Process List, there're two w3wp.exe process still
running, it keep running even when I close all the applications. Maybe
this is the problem...

One process owned by NETWORK SERVICE, and one owned by System. Is it
normal behavior to leave them running forever? Even I can not make
change to the temp directory if I didn't kill w3wp.exe process owned by
NETWORK SERVICE.

So someone here please help, do some change to your project, rebuild it
and open the application in the browser, then open Task Manager to see
if w3wp.exe still running? If not, then maybe I have to reinstall the OS :(
Nov 18 '05 #4

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

Similar topics

1
by: Vikram | last post by:
I have suddenly started getting this errorin all my ASP.NET applications when I try to open any aspx page. Compiler Error Message: CS0016: Could not write to output file...
1
by: Douglas | last post by:
Hi, Can anyone help with the following error message I get returned to my browser when I try to run my asp.net app, please? It's written in c# and used to run ok until quite recently. I've checked...
0
by: cycloptic | last post by:
Hello, I have a fairly new install of Windows XP Pro SP1 with current patches (not SP2 as it is not certified for our network yet) with a local IIS server on the same machine. I have Visual...
1
by: RedEagle | last post by:
Hi all, I have the following problem with ASP.NET running on Windows 2003. My configuration is: 1) Windows 2003 Server Standard 2) ASP.NET running in IIS5 Isolation mode (aspnet_wp.exe is alive...
10
by: RedEagle | last post by:
Hi All! Do you remember me? I am that desperate who had this error for a while: --- Compilation Error Description: An error occurred during the compilation of a resource required to service...
1
by: michelevirgilio | last post by:
Hi, some hours ago my .net framework has stopped working, WITHOUT ANY REASON: no new installations, etc. Now every aspx page give me the error: Description: An error occurred during the...
0
by: IKdev | last post by:
Hi all, I have win2003 server and NET 1.1 framework. Created simple ASP .NET app with one page that has button and a label. When trying to run got the CS0016 error (see below). My temp env....
1
by: ghawadi.B | last post by:
Hello Developers, When I started a new C# Web Application project using Ms Visual Studio 2003 and browse the page it gives me the following error message! How can I resolve this problem? I have...
4
by: John | last post by:
Ok, I give up. I have an XP SP2 development system that has both asp.net v1.1.4322 and v2.0.50727 loaded on it. When I try to run my web site in debug mode, I get error CS0016 as follows: ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.