write access problem in IIS

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Guys

On my development machine I have a very simple app that takes input
from user from asp, runs some macros in excel and spits out the result
back on asp page. This works perfectly well on my host. I deployed this
by making 'Web Setup' project in VS.net and installing it on remote
server which is Windows Server 2003. After installing it I could go to
that page etc etc. Here is the error. I gave full access to ASPNET user
via explorer. The folder where excel files are are in
c:\excelfiles\somexl.xls. I even gave full access to c:\excelfiles
folder and subfolders. What is that I'm missing. I restarted IIS
several times, rebooted windows server. No luck. Please help.

thanks very much.


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:

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 is denied.]
apac2.WebForm1.copyDataAndRunMacro(String fName, String eventdir)
apac2.WebForm1.uploadButton_Click(Object sender, EventArgs e)
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() +1292

.



Relevant Pages

  • Re: A Guide to Burial at Arlington National Cemetery
    ... A letter requesting an exception to policy should be submitted to the ... Superintendent, Arlington National Cemetery, Arlington, VA 22211. ... disclosure form and forward it with the exception request. ... Burden of Proof in Establishing Eligibility ...
    (soc.culture.hmong)
  • If youre still interested...
    ... When calling the code below we get an Exception "Exception from HRESULT: ... call any Excel COM methods so it must be in this code.) ... values in the UDF definition, the error "800A03EC" will be thrown. ... Microsoft Online Community Support ...
    (microsoft.public.office.developer.com.add_ins)
  • .net user permissions in IIS
    ... We have a windows 2003 domain with 4 web servers in. ... (Exception from HRESULT: 0x80070005 ... the current web request. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Driver verifier cause SYSTEM_SERVICE_EXCEPTION
    ... a request that has a cancel routine assigned to it (e.g. you called ... An exception happened while executing a system service routine. ... The problem is that when the driver receives its first IOCTL and it is ... to complete or even forward this request a BSOD is reported. ...
    (microsoft.public.development.device.drivers)
  • Re: Driver verifier cause SYSTEM_SERVICE_EXCEPTION
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... a request that has a cancel routine assigned to it (e.g. you called ... > An exception happened while executing a system service routine. ...
    (microsoft.public.development.device.drivers)