Click here to Skip to main content
15,917,617 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionTree View with edit? Pin
Biju Sam20-Jun-07 17:32
Biju Sam20-Jun-07 17:32 
QuestionCould not access 'CDO.Message' object Pin
Socheat.Net20-Jun-07 17:15
Socheat.Net20-Jun-07 17:15 
AnswerRe: Could not access 'CDO.Message' object Pin
Sathesh Sakthivel20-Jun-07 17:35
Sathesh Sakthivel20-Jun-07 17:35 
GeneralRe: Could not access 'CDO.Message' object Pin
Socheat.Net20-Jun-07 17:48
Socheat.Net20-Jun-07 17:48 
GeneralRe: Could not access 'CDO.Message' object Pin
Sathesh Sakthivel20-Jun-07 17:49
Sathesh Sakthivel20-Jun-07 17:49 
GeneralRe: Could not access 'CDO.Message' object Pin
Socheat.Net20-Jun-07 17:54
Socheat.Net20-Jun-07 17:54 
GeneralRe: Could not access 'CDO.Message' object Pin
Sathesh Sakthivel20-Jun-07 17:59
Sathesh Sakthivel20-Jun-07 17:59 
QuestionUnauthorizedAccessException Pin
RDayalu20-Jun-07 15:58
RDayalu20-Jun-07 15:58 
Its giving me an access error on the documents folder where I am trying to upload my files. (again, I am able to upload from my local website to this webserver just fine. through the server URL it gives this error)

I tried granting Read Write permission on the docs as well as iddocs. Please let me know if I missing some configurations.

I added ASPNet account to the folder where I am trying to store the files. I set permissions to full for ASPNet account on the docs/iddocs folder, gave full permission to ASPnet account on my web application, also on wwwroot. I checked that web,config for my web application has the tag

<identity impersonate="true"> Still no luck. I get the same error.

Appreciate your help.

Regards,
Rekha.
Server Error in '/webforms/ids' Application.
--------------------------------------------------------------------------------

Access to the path '\\<webserver>\wwwroot\docs\iddocs\Ymm\Summary.png' 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 '\\<webserver>\wwwroot\docs\iddocs\Ymm\Summary.png' 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:

Line 75: {
Line 76: SummaryFilepath.Text = ServerDocLocation + SummaryFileName;
Line 77: Summary_Attachment.SaveAs(ServerDocLocation + Summary_Attachment.FileName);
Line 78: }
Line 79: else

Source File: c:\Inetpub\wwwroot\webforms\ids\IDForm.aspx Line: 77

Stack Trace:

[UnauthorizedAccessException: Access to the path '\\<webserver>\wwwroot\docs\iddocs\Ymm\Summary.png' is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2014179
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +998
System.IO.FileStream..ctor(String path, FileMode mode) +65
System.Web.HttpPostedFile.SaveAs(String filename) +87
System.Web.UI.WebControls.FileUpload.SaveAs(String filename) +22
ASP.idform_aspx.Wizard1_NextButtonClick(Object sender, WizardNavigationEventArgs e) in c:\Inetpub\wwwroot\webforms\ids\IDForm.aspx:77
System.Web.UI.WebControls.Wizard.OnNextButtonClick(WizardNavigationEventArgs e) +105
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +453
System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +17
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102



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

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
AnswerRe: UnauthorizedAccessException Pin
Sathesh Sakthivel20-Jun-07 16:33
Sathesh Sakthivel20-Jun-07 16:33 
QuestionGrid View Pin
seemamltn20-Jun-07 15:00
seemamltn20-Jun-07 15:00 
AnswerRe: Grid View Pin
Christian Graus20-Jun-07 15:54
protectorChristian Graus20-Jun-07 15:54 
QuestionText showing Currency Format in asp.net TextControl Pin
aransiola20-Jun-07 10:24
aransiola20-Jun-07 10:24 
AnswerRe: Text showing Currency Format in asp.net TextControl Pin
Christian Graus20-Jun-07 12:35
protectorChristian Graus20-Jun-07 12:35 
Questionselect statement Pin
seemamltn20-Jun-07 9:47
seemamltn20-Jun-07 9:47 
AnswerRe: select statement Pin
Not Active20-Jun-07 9:57
mentorNot Active20-Jun-07 9:57 
QuestionApp_Code annoyance Pin
gantww20-Jun-07 8:58
gantww20-Jun-07 8:58 
AnswerRe: App_Code annoyance Pin
Sathesh Sakthivel20-Jun-07 9:04
Sathesh Sakthivel20-Jun-07 9:04 
GeneralRe: App_Code annoyance Pin
gantww20-Jun-07 9:06
gantww20-Jun-07 9:06 
GeneralRe: App_Code annoyance Pin
Sathesh Sakthivel20-Jun-07 9:08
Sathesh Sakthivel20-Jun-07 9:08 
GeneralRe: App_Code annoyance Pin
gantww20-Jun-07 9:14
gantww20-Jun-07 9:14 
GeneralRe: App_Code annoyance Pin
Not Active20-Jun-07 9:15
mentorNot Active20-Jun-07 9:15 
GeneralRe: App_Code annoyance Pin
Not Active20-Jun-07 9:24
mentorNot Active20-Jun-07 9:24 
GeneralRe: App_Code annoyance Pin
gantww20-Jun-07 9:30
gantww20-Jun-07 9:30 
GeneralRe: App_Code annoyance Pin
gantww20-Jun-07 9:45
gantww20-Jun-07 9:45 
GeneralRe: App_Code annoyance Pin
gantww20-Jun-07 10:28
gantww20-Jun-07 10:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.