New Message on dotNET User Group Hyd

Hai Friends

Reply
  Reply to Sender   Recommend Message 2 in Discussion
From: arun_kumar_t

hello srinivas,
thanks for ur reply..it is working fine in windows application
 but i need to use this application in web environment... i got some error....when iam using....it...
can u tell me how to set permissions....
thanks in advance....
 

Access 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 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 49: 		private void Button1_Click(object sender, System.EventArgs e)
Line 50: 		{
Line 51: 			Word.ApplicationClass objWord = new Word.ApplicationClass();
Line 52: 
Line 53: 			object fileName = "c:\\Resume.doc";

Source File: c:\inetpub\wwwroot\webapplication2\webform1.aspx.cs    Line: 51

Stack Trace:

[UnauthorizedAccessException: Access is denied.]
   WebApplication2.WebForm1.Button1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\webapplication2\webform1.aspx.cs:51
   System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   System.Web.UI.Page.ProcessRequestMain()


View other groups in this category.




Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.
  • Hai Friends dotNET User Group Hyd
    • Re: Hai Friends arun_kumar_t

Reply via email to