473,410 Members | 1,952 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,410 software developers and data experts.

uh? security problem?

I'm trying to learn ASP.NET by myself at home.
I try to play with this WebLogControl: http://joel.net/code/weblogs.aspx
I downloaded, unzipped it and webshare the folder.
I'm running ASP.NET beta 2.0

I ran it, try to daa a comment and I had the following security related
error message. (see below) but I have no securiy tab in my file's property!!
I can't fix that! what can I do?

IIS error message:
-------------------------

Server Error in '/JoelWebLog' Application.
--------------------------------------------------------------------------------

Access to the path 'L:\AppSource\ASP.NET
Apps\JoelWebLog\_data\weblogs_comments.xml' 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
'L:\AppSource\ASP.NET Apps\JoelWebLog\_data\weblogs_comments.xml' 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 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:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[UnauthorizedAccessException: Access to the path 'L:\AppSource\ASP.NET
Apps\JoelWebLog\_data\weblogs_comments.xml' is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +1480439
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access,
FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES
secAttrs, String msgPath, Boolean bFromProxy) +935
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
FileShare share, Int32 bufferSize, FileOptions options, String msgPath,
Boolean bFromProxy) +112
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
FileShare share) +47
System.Xml.XmlDocument.Save(String filename) +91
Joel.Net.PageComments.PageComments.Save() +99
Joel.Net.PageComments.PostComment.Submit_Click(Obj ect sender, EventArgs
e) +1267
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument)
+232
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument) +5
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +31
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5157

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.40607.16; ASP.NET
Version:2.0.40607.16
Nov 18 '05 #1
3 1539
It appears that your IIS user account does not have access to that file.
Try sharing the file and setting the security levels to allow everyone full
access to test this!

"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:Op**************@tk2msftngp13.phx.gbl...
I'm trying to learn ASP.NET by myself at home.
I try to play with this WebLogControl: http://joel.net/code/weblogs.aspx
I downloaded, unzipped it and webshare the folder.
I'm running ASP.NET beta 2.0

I ran it, try to daa a comment and I had the following security related
error message. (see below) but I have no securiy tab in my file's
property!! I can't fix that! what can I do?

IIS error message:
-------------------------

Server Error in '/JoelWebLog' Application.
--------------------------------------------------------------------------------

Access to the path 'L:\AppSource\ASP.NET
Apps\JoelWebLog\_data\weblogs_comments.xml' 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
'L:\AppSource\ASP.NET Apps\JoelWebLog\_data\weblogs_comments.xml' 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 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:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[UnauthorizedAccessException: Access to the path 'L:\AppSource\ASP.NET
Apps\JoelWebLog\_data\weblogs_comments.xml' is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +1480439
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access,
FileShare share, Int32 bufferSize, FileOptions options,
SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +935
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, FileOptions options, String
msgPath, Boolean bFromProxy) +112
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share) +47
System.Xml.XmlDocument.Save(String filename) +91
Joel.Net.PageComments.PageComments.Save() +99
Joel.Net.PageComments.PostComment.Submit_Click(Obj ect sender, EventArgs
e) +1267
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEven t(String
eventArgument) +232

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument) +5
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +31
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5157

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.40607.16;
ASP.NET Version:2.0.40607.16

Nov 18 '05 #2
Hi,

Disable the so-called "simple filesharing" from Tools->Folder Options->View
in Windows Explorer. Then you will have "Sharing And Security" in the
context menu for files, folders, etc. in Windows Explorer.

Hope this helps
Martin
"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:Op**************@tk2msftngp13.phx.gbl...
I'm trying to learn ASP.NET by myself at home.
I try to play with this WebLogControl: http://joel.net/code/weblogs.aspx
I downloaded, unzipped it and webshare the folder.
I'm running ASP.NET beta 2.0

I ran it, try to daa a comment and I had the following security related
error message. (see below) but I have no securiy tab in my file's property!! I can't fix that! what can I do?

IIS error message:
-------------------------

Server Error in '/JoelWebLog' Application.
-------------------------------------------------------------------------- ------
Access to the path 'L:\AppSource\ASP.NET
Apps\JoelWebLog\_data\weblogs_comments.xml' 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
'L:\AppSource\ASP.NET Apps\JoelWebLog\_data\weblogs_comments.xml' 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 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:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[UnauthorizedAccessException: Access to the path 'L:\AppSource\ASP.NET
Apps\JoelWebLog\_data\weblogs_comments.xml' is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +1480439
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +935
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath,
Boolean bFromProxy) +112
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +47
System.Xml.XmlDocument.Save(String filename) +91
Joel.Net.PageComments.PageComments.Save() +99
Joel.Net.PageComments.PostComment.Submit_Click(Obj ect sender, EventArgs
e) +1267
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument) +232
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo
stBackEvent(String eventArgument) +5
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +31
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5157

-------------------------------------------------------------------------- ------ Version Information: Microsoft .NET Framework Version:2.0.40607.16; ASP.NET Version:2.0.40607.16

Nov 18 '05 #3
thanks I knew there was an easy way to have this security tab appears :D

now it doesn't work and that's really mysterious, but I will investigate!

"Martin Dechev" <de*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,

Disable the so-called "simple filesharing" from Tools->Folder
Options->View
in Windows Explorer. Then you will have "Sharing And Security" in the
context menu for files, folders, etc. in Windows Explorer.

Hope this helps
Martin
"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:Op**************@tk2msftngp13.phx.gbl...
I'm trying to learn ASP.NET by myself at home.
I try to play with this WebLogControl: http://joel.net/code/weblogs.aspx
I downloaded, unzipped it and webshare the folder.
I'm running ASP.NET beta 2.0

I ran it, try to daa a comment and I had the following security related
error message. (see below) but I have no securiy tab in my file's

property!!
I can't fix that! what can I do?

IIS error message:
-------------------------

Server Error in '/JoelWebLog' Application.
--------------------------------------------------------------------------

------

Access to the path 'L:\AppSource\ASP.NET
Apps\JoelWebLog\_data\weblogs_comments.xml' 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
'L:\AppSource\ASP.NET Apps\JoelWebLog\_data\weblogs_comments.xml' 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 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:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[UnauthorizedAccessException: Access to the path 'L:\AppSource\ASP.NET
Apps\JoelWebLog\_data\weblogs_comments.xml' is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +1480439
System.IO.FileStream.Init(String path, FileMode mode, FileAccess

access,
FileShare share, Int32 bufferSize, FileOptions options,

SECURITY_ATTRIBUTES
secAttrs, String msgPath, Boolean bFromProxy) +935
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess

access,
FileShare share, Int32 bufferSize, FileOptions options, String msgPath,
Boolean bFromProxy) +112
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess

access,
FileShare share) +47
System.Xml.XmlDocument.Save(String filename) +91
Joel.Net.PageComments.PageComments.Save() +99
Joel.Net.PageComments.PostComment.Submit_Click(Obj ect sender,
EventArgs
e) +1267
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEven t(String

eventArgument)
+232

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo
stBackEvent(String
eventArgument) +5
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
+31
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+5157

--------------------------------------------------------------------------

------
Version Information: Microsoft .NET Framework Version:2.0.40607.16;

ASP.NET
Version:2.0.40607.16


Nov 18 '05 #4

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

Similar topics

28
by: grahamd | last post by:
Who are the appropriate people to report security problems to in respect of a module included with the Python distribution? I don't feel it appropriate to be reporting it on general mailing lists.
22
by: Alistair | last post by:
hello again oh knowledgable ones Today I took the plunge (more like a hell-hole dive) and upgraded to windows XP Pro.. and as I expected things are slightly different... what I didn't...
3
by: craig | last post by:
I am working on my first .NET development project that involves custom role-based security per the project requirements. This lead to a general design issue this week that really caused us some...
12
by: A.M. | last post by:
Hi at all, how can I do to insert into a HTML page a file .txt stored in the same directory of the server where is the html file that must display the text file.txt? Thank you very much P.Pietro
116
by: Mike MacSween | last post by:
S**t for brains strikes again! Why did I do that? When I met the clients and at some point they vaguely asked whether eventually would it be possible to have some people who could read the data...
3
by: Chua Wen Ching | last post by:
Hi there, I had applied this security permissions in my class library based on fxcop standards. Before namespace: using System.Runtime.InteropServices; using System.Security.Permissions;
1
by: Earl Teigrob | last post by:
Background: When I create a ASP.NET control (User or custom), it often requires security to be set for certain functionality with the control. For example, a news release user control that is...
5
by: Norsoft | last post by:
I have a .Net 1.1 application which is downloaded into an aspx page. It is a dll which inherits from System.Windows.Forms.UserControl. It works fine on a PC with only the 1.1 Framework. However,...
0
by: Jay C. | last post by:
Jay 3 Jan. 11:38 Optionen anzeigen Newsgroups: microsoft.public.dotnet.framework.webservices.enhancements Von: "Jay" <p.brunm...@nusurf.at> - Nachrichten dieses Autors suchen Datum: 3 Jan...
8
by: =?Utf-8?B?TWFuanJlZSBHYXJn?= | last post by:
Hi, I created a web service and hosted it in Windows Services. It is working fine. Now I am trying to implement the X509 certificates for message layer security. But it is throwing the following...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
marktang
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,...
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
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
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.