-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: kola7723
Message 1 in Discussion
Hi I m getting this error inspite of making the necessary settings while creating an
excel application report in C# please suggest a solution Server Error in
'/Contract' Application. 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 133:// Application exl = new Excel.ApplicationClass(); Line 134:
Line 135: Excel.Application aXl = new
Excel.ApplicationClass(); Line 136: aXl.Visible =true;
Line 137:
Source File: c:\inetpub\wwwroot\contract\reportpage.aspx.cs Line: 135
Stack Trace:
[UnauthorizedAccessException: Access is denied.]
Contract.reportPage.Button1_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\contract\reportpage.aspx.cs:135
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
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.
mailto:[EMAIL PROTECTED]