469,645 Members | 1,941 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

write access problem in IIS

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.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
+33
System.Web.UI.Page.ProcessRequestMain() +1292

May 16 '06 #1
0 1141

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Zed | last post: by
reply views Thread by Peter Horwood | last post: by
reply views Thread by chipotle_pickle | last post: by
3 posts views Thread by frekster | last post: by
reply views Thread by brm6546545 | last post: by
3 posts views Thread by David Thielen | last post: by
1 post views Thread by =?Utf-8?B?R2FuZXNoIE11dGh1dmVsdQ==?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.