I'm developing an ASP.NET application to run on Win2K
server with IIS 5.1, which has run perfectly happily in
various development, test and staging environments. I've
recently deployed it on one of our production servers and
I'm getting an intermittent 'Access is denied' error when
pages are loading. The file being accessed is an xml
globalisation file that is used to load the text for the
page according to the language settings of the browser.
I've tried a sledgehammer approach of granting 'Everyone'
full control of the file and the folder it is in, to no
avail. I've also tried removing Temporary ASP.NET Files
from the indexing service, as I've seen that suggested as
a solution in various places. Again this didn't work (the
indexing service is set to 'Manual' on the server anyway).
All the pages load fine when I'm logged onto the server
via terminal services client, using an administrative
account. Also, strangely, I can access the site from my
own machine for a while after I've accessed it from the
server - almost as if something has been reset.
I've got integrated security switched on with no anonymous
access as it is an intranet app.
Any suggestions as to the cause of the problem would be
greatly appreciated...
Thanks in advance.
David. 5 1675
Check your settings of how you are opening the file up.
Make sure you don't have an exclusive lock on the file.
Also make sure you are closing the stream when you are
done with it.
Keith -----Original Message----- I'm developing an ASP.NET application to run on Win2K server with IIS 5.1, which has run perfectly happily in various development, test and staging environments. I've recently deployed it on one of our production servers
andI'm getting an intermittent 'Access is denied' error
whenpages are loading. The file being accessed is an xml globalisation file that is used to load the text for the page according to the language settings of the browser.
I've tried a sledgehammer approach of
granting 'Everyone'full control of the file and the folder it is in, to no avail. I've also tried removing Temporary ASP.NET Files from the indexing service, as I've seen that suggested
asa solution in various places. Again this didn't work
(theindexing service is set to 'Manual' on the server
anyway). All the pages load fine when I'm logged onto the server via terminal services client, using an administrative account. Also, strangely, I can access the site from my own machine for a while after I've accessed it from the server - almost as if something has been reset.
I've got integrated security switched on with no
anonymousaccess as it is an intranet app.
Any suggestions as to the cause of the problem would be greatly appreciated...
Thanks in advance.
David. .
Hi Keith,
Thanks for your swift response.
The application uses the Load method of the XmlDocument
class to load the file (the name and location of which is
specified by the parameter to the Load method). This class
doesn't appear to have an explicit close method.
I find it difficult to believe that it's a problem with
the code itself as it runs ok on other machines. I would
have thought it's more likely to be an environment
problem - possibly with IIS.
Unfortunately, the problem didn't go away over the
weekend, so any further suggestions would be appreciated...
Thanks,
David. -----Original Message----- Check your settings of how you are opening the file up. Make sure you don't have an exclusive lock on the file.
Also make sure you are closing the stream when you are done with it.
Keith
-----Original Message----- I'm developing an ASP.NET application to run on Win2K server with IIS 5.1, which has run perfectly happily in various development, test and staging environments. I've recently deployed it on one of our production servers andI'm getting an intermittent 'Access is denied' error whenpages are loading. The file being accessed is an xml globalisation file that is used to load the text for the page according to the language settings of the browser.
I've tried a sledgehammer approach of granting 'Everyone'full control of the file and the folder it is in, to no avail. I've also tried removing Temporary ASP.NET Files from the indexing service, as I've seen that suggested asa solution in various places. Again this didn't work (theindexing service is set to 'Manual' on the server anyway). All the pages load fine when I'm logged onto the server via terminal services client, using an administrative account. Also, strangely, I can access the site from my own machine for a while after I've accessed it from the server - almost as if something has been reset.
I've got integrated security switched on with no
anonymousaccess as it is an intranet app.
Any suggestions as to the cause of the problem would be greatly appreciated...
Thanks in advance.
David. . .
Hi David,
I agree with you that this issue should not be caused by the code since it
runs fine on the other machines.
Based on my research and experience, this issue should be a permission
issue. Please try to impersonating a local administrator User for All the
Requests of an ASP.NET Application. Please refer to the following article
for the detailed information.
INFO: Implementing Impersonation in an ASP.NET Application http://support.microsoft.com/default...b;en-us;306158
I hope it helps.
Best regards,
Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Is the file local to the server or are you getting at the file through a UNC
path?
Jeff
"Jacob Yang [MSFT]" <ji***@online.microsoft.com> wrote in message
news:vM**************@cpmsftngxa06.phx.gbl... Hi David,
I agree with you that this issue should not be caused by the code since it runs fine on the other machines.
Based on my research and experience, this issue should be a permission issue. Please try to impersonating a local administrator User for All the Requests of an ASP.NET Application. Please refer to the following article for the detailed information.
INFO: Implementing Impersonation in an ASP.NET Application http://support.microsoft.com/default...b;en-us;306158
I hope it helps.
Best regards,
Jacob Yang Microsoft Online Partner Support Get Secure! ¨C www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights.
Just thought I'd post the answer to this so that everyone
can benefit...
The problem was resolved by changing a setting in the
machine.config file. The userName attribute in the
processModel section was set to 'machine' - I changed it
to be 'system' and it worked fine.
I think there's a knowledge-base article on this issue as
I had already made this change on another of our servers.
Unfortunately I haven't got the article reference.
Thanks to all those who responded to my post.
David. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Steve |
last post by:
Hi,
Yesterday I signed up for another dedicated linux server with the hosting
company I use and I am having problems getting MySQL 4.1.3 working on it.
I've tried just about everything I can...
|
by: vincentw56 |
last post by:
This is the first time I have tried this. What we have is a com object the
generates keys. A developer here wrote a .Net wrapper in C# for this com
object. I am trying to call her dll wrapper...
|
by: Fabian von Romberg |
last post by:
Hi, I have installed Sql Reporting Services on 2 machines, one is WIN 2000
PRO and the other one is WIN 2000 ADV. SERVER. When I try to access a
report using the webbrowser, I get the following...
|
by: Raterus |
last post by:
I'm just throwing this error out for my sanity, I've seen posts about this, but never solutions.
I'm using VS.NET 2003, Framework 1.1, and I'm getting a random error about every 1 out of 10 times...
|
by: ASP.Confused |
last post by:
The old message looked a little stale, so I am re-posting it here. Anybody
have any ideas of what I could do?!? The previous responses to this
question are below. If you want to look at the...
|
by: Brad |
last post by:
After compiling my asp.net project I'm receiving a "BC31011 - Access is
denied" error when attempting to run or debug. The only thing that seems to
resolve problem is IISReset. After a reset my...
|
by: Ron Weldy |
last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net
files. On my workstation I have a share set up to the folder where the web
files reside. I am just doing quick and dirty...
|
by: Shailesh Humbad |
last post by:
I figured out what was causing the "Access is Denied" error when
calling functions from referenced DLLs in my service. I've tried to
be very detailed, so bear with me.
It turns out that...
|
by: Jeremy Ames |
last post by:
I am trying to move an application from my system to a new test system. I really should have tried an easier program first, but I didn't really have a chance. My application was originally written in...
|
by: Andy |
last post by:
Thanks Peter,
I thought I'd give an update on this problem. My application had 2
assemblies that contained classed for the Data access and business
logic layer. It was on one of them that I was...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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,...
|
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...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
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...
| |