Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.0
This is the forum to discuss the Wrox book Beginning ASP.NET 1.0 with C# by Chris Goode, John Kauffman, Christopher L. Miller, Neil Raybould, S. Srinivasa Sivakumar, Dave Sussman, Ollie Cornes, Rob Birdwell, Matt Butler, Gary Johnson, Ajoy Krishnamoorthy, Juan T. Llibre, Chris Ullman; ISBN: 9780764543708
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.0 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 July 25th, 2003, 03:46 AM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 14 Calendar

I am getting this message when i try to run EditItemTemplate on the server. Acces to MyCalendar.xml" is denied.

ASP.NET is not authorized to access the requested resource. Consider
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

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

I am trying but cant make it. Can anyone send me a screenshot or explain what to do. Maybe i am missing something.

:)Regards from Mr Robb. Norway
 
Old July 29th, 2003, 04:59 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to NotNowJohn
Default

1. Right click on MyCalendar.xml
2. Click on Security tab
3. Click on Add (in order to add new user)
4. Type ASPNET (in order to add ASPNET account)
or
4. Type IUSR_[your_comp_name] (in order to add IIS anonymous account)
5. On the permission list click on Read and Write (or whatever you want)

...but the Soon is eclipsed by the Moon
 
Old March 3rd, 2004, 11:35 PM
Registered User
 
Join Date: Mar 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AbueLuhn
Default

I try all of webrobb and NotNowJohn said,however,nothing can be worked out.

I have alterned the MyCalendar.xml's Properties, added two security accounts and permitted Read and Write, that also in IIS.

BUT,

ASP.NET is still not authorized to access the requested resoure.

I don't know why!

 
Old March 9th, 2004, 02:54 AM
Registered User
 
Join Date: Mar 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AbueLuhn
Default

I get it!

The most important thing to grant ASP.NET write access to a file is neither the object 'aspnet' nor the object 'IUSR_[your_comp_name]',but the 'user'.

Right-click the file in Explorer, choose "Properties" and select the Security tab.The only thing you need to do is click the 'modify' properity.

Then all thing would be right.

 
Old September 20th, 2004, 07:10 PM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi, I have the same problem, but my os is xp professional. When I right click the wwwroot I couldn't find any security tab. only general,sharing, web sharing and customize tabs.
anybody can help me with this?

thanks
 
Old December 30th, 2004, 02:02 PM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just Disable "Simple File Sharing" Checkbox Mode

1. Click Start, and then click My Computer.
2. On the Tools menu, click Folder Options, and then click the View tab.
3. In the Advanced Settings section, clear the Use simple file sharing (Recommended) check box.
4. Click OK.



Quote:
quote:Originally posted by happy
 hi, I have the same problem, but my os is xp professional. When I right click the wwwroot I couldn't find any security tab. only general,sharing, web sharing and customize tabs.
anybody can help me with this?

thanks
&lt;&lt;genius:alexcons&gt;&gt;
 
Old January 25th, 2006, 02:56 AM
Authorized User
 
Join Date: Jan 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

When I try to create a doc file through asp.net the same
file sharing problem is occuring.My O.S is 2000 Server.
I cant see the security tab.so pls tell me how can make
To grant ASP.NET write access to a file???

 
Old August 28th, 2006, 03:59 AM
Authorized User
 
Join Date: Aug 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ADMystery Send a message via Yahoo to ADMystery
Default

Dear,
  There is a simple rule in security it's called (most restrictive), it means that if the a x is a member of a group y has a right permission permitted but group y hasn't that permission, so the user x will not be able to right..and vise versa, so my advice is clear all users from the list in security tab and start to add the users from scratch assigning them the permissions you want..and put the (most restrictive) rule in your mind, so make sure that this user is not a member of a group that hasn't this permission.
Regards
Ahmad Mohsen





Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 14 vthunder70 BOOK: Beginning ASP.NET 2.0 and Databases 2 October 3rd, 2007 02:11 PM
Chapter 14 example pkumar@ech BOOK: Professional Jakarta Struts 0 November 15th, 2006 09:10 AM
Chapter 14 Calendar Control sajhak ASP.NET 1.0 and 1.1 Basics 1 September 18th, 2006 12:11 PM
Ch. 14 Calendar Modification Astalder BOOK: Beginning ASP.NET 1.0 6 December 1st, 2004 06:23 PM
Lesson on Event Calendar - Chapter 14 Mike Smith BOOK: Professional C#, 2nd and 3rd Editions 6 April 6th, 2004 03:03 PM





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