Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 8th, 2006, 10:22 PM
Authorized User
 
Join Date: Feb 2005
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ashokparchuri Send a message via Yahoo to ashokparchuri
Default Un Authorized Exception

Hi i had used Xml file as database to an asp.net application when i am running the code everything is ok.When i try to retrive an eleent which is not availlable in xml file it was saying that the element is not found.

The trouble is when i entered an element which is availlable in the xml file it was giving Un authorised Exception.All the permissions for the xml file such as read/ write are given.

So there is no poblem when i enter the element which is not availlable in xml file when i entered the element which is there in the xml file it was giving the error.

Please help me if you can.

Thanks in Advance-Ashok Parhuri
 
Old December 8th, 2006, 11:16 PM
Authorized User
 
Join Date: Feb 2005
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ashokparchuri Send a message via Yahoo to ashokparchuri
Default

To be Exact i am getting the following Error.Please help me.

System.UnauthorizedAccessException: Access to the path "C:\XMLFile1.xml" is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String str)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding)
   at System.Xml.XmlDOMTextWriter..ctor(String filename, Encoding encoding)
   at System.Xml.XmlDocument.Save(String filename)
   at mountain.Service1.mountian(String mountainname) in c:\inetpub\wwwroot\mountain\service1.asmx.cs:line 104

Thanks-Ashok





Similar Threads
Thread Thread Starter Forum Replies Last Post
Un authorized Exception ashokparchuri ASP.NET 1.x and 2.0 Application Design 7 December 12th, 2006 03:23 AM
Un Authorized Exception ashokparchuri XML 1 December 9th, 2006 10:50 AM
Form view control, Authorized edit only nuttylife2 ASP.NET 2.0 Professional 0 July 10th, 2006 07:57 PM
Local WroxUnited - Not authorized to view page... willieb BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 November 20th, 2005 08:25 AM
Authorized site access quinn Classic ASP Basics 3 September 24th, 2003 02:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.