CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting
3 Months Free and Free Setup - ASP.NET Web Hosting



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 12/11/2004 9:10:27 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 41 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
brandonc
Asp.Net User
Strange Access Denied Error12/11/2004 9:10:27 PM

0/0

Ok...I'm having the oddest error and it just started today.

I have build a simple WebControl, it is an image gallery. It simply reads an XML file and renders some HTML based on the XML content. It has been functioning fine. Today, out of nowhere, the m control gets an "Access Denied" exception when on the XmlDocument.Load method. All the approriate file permissions have been granted.

To make things more interesting, if I do an XmlDocument.Load and load the same xml document from an ASPX page, in the same application, the document gets loaded just fine. From within the context of a WebControl, you get access denied.

It doesn't matter what web application you try this from, XmlDocument.Load will always fail from within the WebControl but works from an ASPX or ASCX. Granting file access permissions to system,iuser,machine,and so on, doesn't help either.

I even created a brand new WebControl on the odd chance I did something within the source to cause this, and I still have the problem.

I am using Windows XP Pro SP2. I have auto updates turned on. Could a windows updated be causing this odd security problem? Any advice is helpful.

Here is the exception.....

Access to the path "C:\projects\TechnicalLeverage.TinyGal\TechnicalLeverage.TinyGalSample" is denied.
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.UnauthorizedAccessException: Access to the path "C:\projects\TechnicalLeverage.TinyGal\TechnicalLeverage.TinyGalSample" is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Source Error:


Line 23: End If
Line 24:
Line 25: _XMLDoc.Load(path)
Line 26: End If
Line 27:


Source File: C:\projects\TechnicalLeverage.TinyGal\TechnicalLeverage.WebControls.TinyGal\GalleryController.vb Line: 25

brandonc
Asp.Net User
Re: Strange Access Denied Error12/11/2004 9:41:41 PM

0/0

well...disregard my message. It appears I made a mistake and never appended a filename to the end of the path...duh :)
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Handbook of Attachment: Theory, Research, and Clinical Applications Authors: Jude Cassidy, Phillip R. Shaver, Pages: 925, Published: 2002
Access Denied: The Practice and Policy of Global Internet Filtering Authors: Ronald Deibert, John G. Palfrey, Rafal Rohozinski, Jonathan Zittrain, Pages: 449, Published: 2008
.NET Development Security Solutions Authors: John Paul Mueller, Mueller, Pages: 472, Published: 2003
Disaster Planning and Recovery Pack Authors: TechRepublic, Incorporated, TechRepublic (Firm, TechRepublic, Pages: 180, Published: 2004
Managing Windows NT Logons: A Guide for Administrators. Authors: Kathy Ivens, Pages: 224, Published: 2000
The Strange Death of Vincent Foster: An Investigation Authors: Christopher Ruddy, Pages: 320, Published: 2002
The Woodlanders Authors: Thomas Hardy, Pages: 336, Published: 1996
Problematic Communication: The Construction of Invisible Walls Authors: C. David Mortensen, Pages: 245, Published: 1994
Breaking Point Authors: Alex Flinn, Pages: 256, Published: 2003
Managing NFS and NIS Authors: Hal Stern, Mike Eisler, Ricardo Labiaga, Pages: 600, Published: 2001

Web:
Re: Weird Access Denied Error: msg#00134 The specific error message is: Access to the path "C:\folder\folderToDelete" is denied. We've tried many permutations, going so far as to grant Everyone ...
strange Access Denied runtime error - Community for Webmasters ... strange Access Denied runtime error JavaScript Forum. ... Now I'm getting a runtime error that reads "Access Denied" and it is pointing to ...
Strange problem:Access denied error - ASP.NET Forums Re: Strange problem:Access denied error. 08-16-2007, 9:37 AM. Contact ... Re: Strange problem:Access denied error. 08-16-2007, 10:12 AM. Contact ...
Random Access Denied error in RS2005 SP1 with Forms Auth - TechNet ... Oct 15, 2008 ... We are facing a very strange "access denied" problem with Forms ... At one instance it throws the error and at the next instance it just ...
Strange access denied problem : 1045, denied, access ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) .... I did find a strange line in mysqld.log which I had missed: ...
Strange access denied issue I receive the error: 'action install wim image failed with exit code 5' after formatting of the drive. So still an access denied error, strange enough if I ...
Windows XP Sp3 Access Denied Error « Memoirs and Musings of Loki ... It is strange behavior. The access denied is happening for most images ... Definitely a strange error, indeed, Tim! I can’t say that anything comes to mind ...
strange access denied in ADMT v3 - Server Migration strange access denied in ADMT v3, Server Migration, Windows 2000 // 2003, Exchange mail ... ADMT Error 7585: Access Denied when migrating users with groups ...
Apple - Support - Discussions - Weird "relay access denied" error ... Re: Weird "relay access denied" error when using "%" in email address Posted: Mar 16, 2007 12:42 AM in response to: jaydisc ...
[Samba] weird problem with "access denied" on share Apr 14, 2005 ... [Samba] weird problem with "access denied" on share .... Error was Transport endpoint is not connected Apr 14 09:13:27 pd1 smbd[1449]: ...

Videos:
*WinImage Self Extractor* fix for Windows Vista! Here is the solution... Yeah, this is a fix for Vista when you get some weird Track/Sector/Head error message, and the "Windows N. 5 Error".
... Denied An Organ For Smoking Pot? An appalling story I cam across about a man who went to a hospital and was in need of an organ transplant, who later dies due to that hospital denyin...
Sketchies 2: Judging Panel Exploit This was an SQL injection into the judging panel for the sketchies 2 contest. Basically this is how it worked: I checked out the video entries. Yout...
Core Patterns for Web Permissions Google TechTalks July 19, 2006 Tyler Close Visiting Scientist Hewlett-Packard Laboratories Mr. Close is a researcher and developer, working in the...
John Swinney reveals 'claims fixing memos' of Douglas MIll John Swinney - one of a small number of Scottish Politicians who would dare to take on the might and corruption of Scotland's legal establishment and...
Soldiers Training in Our Streets Rex 84 Martial Law Nightmare Real Life Martial Law acted out right before your eyes. Have you been having dreams about this? I have. Those weird prophetic type dreams. So real th...
The Grasshouse Effect Video from 1991 by Frontier Films as part of a compilation tape called CVN2. The work is a HTBA commission with the artists Heather Ackroyd and Dan H...
The MISA - Bivolaru files - a blatant counterfeit MISA and Gregorian Bivolaru case - the unknown story beyond the files Because of the lack of evidence on which the first arrest warrant for sexual r...
www.moldytoaster.com red on the poor, on widows and orphans, the right to have their meadows mown three days in advance of every one else. They rebuild their houses for t...
Charlie Rose - Rahm Emanuel / Bill Clinton / Roger Rosenblatt Segment 1: Discussions about the future of the Democratic party with Rep. Rahm Emanuel (D-IL) and former president Bill Clinton. Segment 2: We con...












format date time

error 17 argument '2': cannot convert from 'system.web.ui.webcontrols.fontsize' to 'float'

problem with dynamically created objects

convert ascii to unicode

calling .ascx user control from a page under another domain

how to store image url form .net to xml

closing web form with a timer

pease help!! - web user control loaded with loadcontrol() looses event wireups and event functionality?

c# code behind variable in client side javascript

overview of asp.net program cycle

long lines in emails

validationsummary

no items are viewable on code behind

cannot assign text and textboxes to string variable

styling a button

multiple file download in client side

input strings and passing variables to another page

.net with frames

formatting date in a repeater

trouble modifying text after copying items between listboxes

on getting user credentials(user name) but setting iis as "allow anonymous access" - from a struggling intern

problem with login page ?

retrieving the values of a hyperlink querystring

uploading files that are larger than maxrequestlength

addhandler issue

creating a control which can contain asp.net&html objects or controls

field validations

fundamental problem with event firing - please help

depending dropdown-lists

validating negative value in textbox

  Privacy | Contact Us
All Times Are GMT