Windows 2003 Error

S

Smith

Hi
I've installed my web app on windows 2003 and when I run the application I
got the follow error:
"Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\inspeccion\2b77adf5\e651f5c7" is denied. "
Other applications works ok in the same machine.
Framework 1.1

Regards
 
S

Smith

Hi Juan.
This is the web.config
<?xml version="1.0" encoding="utf-8" ?>

<configuration>

<system.web>

<compilation defaultLanguage="vb" debug="true" />

<customErrors mode="Off" />

<trace enabled="false" requestLimit="10" pageOutput="false"
traceMode="SortByTime" localOnly="true" />

<sessionState

mode="InProc"

stateConnectionString="tcpip=127.0.0.1:42424"

sqlConnectionString="data source=127.0.0.1Trusted_Connection=yes"

cookieless="true"

timeout="30"

/>

<globalization requestEncoding="utf-8" responseEncoding="utf-8" />

</system.web>

<appSettings>

<add key="ImagesFeeder.Data.Querystring" value=""></add>

<add key="ImagesFeeder.Reports.Documents.Extension" value="*.jpg;*.gif"/>

<add key="ImagesFeeder.Reports.Documents.Path" value="Documents"/>

<add key="ImagesFeeder.Reports.Documents.Temp" value="Temp"/>

</appSettings>

</configuration>

Regards.
 
J

Juan T. Llibre

re:
!> This is the web.config

OK, so you are not impersonating the ASP.NET account.

re:
!> I got the follow error:
!> "Access to the path
!> "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
!> ASP.NET Files\inspeccion\2b77adf5\e651f5c7" is denied. "

Can you check to see if the account ASP.NET runs as has read/change/write permissions to:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files

?

If you don't know which account ASP.NET runs as, save the following as "identity.aspx":
---------------------------------
<%@ Page Language="VB" %>
<%@ Import NameSpace = System.Security.Principal %>
<script runat="server">
Sub Page_Load()
Dim tmp As String = WindowsIdentity.GetCurrent.Name()
Label1.Text = "ASP.NET is running as the account : " & tmp
End Sub
</script>
<html>
<head>
<title>What account is ASP.NET running as ?</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
------------

Save "identity.aspx" to your "/inspeccion" directory and run it from http://localhost/inspeccion/

Then, make sure the account returned by that script has read/change/write permissions to
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files

You could also delete
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\inspeccion
and all its subdirectories. ASP.NET will recreate it/them when you run the app again.

Don't delete the \Temporary ASP.NET Files\ directory !
Just the \inspeccion subdirectory, and all its subdirectories and files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top