Unable to create temp file: Error

Discussion in 'ASP .Net' started by =?Utf-8?B?SmFtZXMgUHJvY3Rvcg==?=, Dec 16, 2004.

  1. Hi there, im brand new to ASP. Ive done loads of VB coding and one of my
    clients is intrested in a web based application, so im trying to play on and
    learn it a tad. However im comming across lots of problems. Up until now ive
    managed to sort most of them, but now im strugling. When i run my application
    i keep getting this.

    Server Error in '/WebApplication1' Application
    --------------------------------------------------------------------------------

    Compilation Error
    Description: An error occurred during the compilation of a resource required
    to service this request. Please review the following specific error details
    and modify your source code appropriately.

    Compiler Error Message: BC30138: Unable to create temp file in path
    'C:\DOCUME~1\XP-MAC~1\ASPNET\LOCALS~1\Temp\': Access is denied.

    Source Error:



    [No relevant source lines]


    Source File: vbc : Line: 0



    Show Detailed Compiler Output:


    C:\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.1.4322\vbc.exe"
    /t:library /utf8output
    /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll"
    /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll"
    /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll"
    /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
    /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll"
    /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll"
    /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll"
    /R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll"
    /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
    files\webapplication1\3860b6e6\760156ee\assembly\dl2\2fa85b6b\50f17af8_e2e2c401\webapplication1.dll"
    /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
    Files\webapplication1\3860b6e6\760156ee\xs005t5z.dll" /D:DEBUG=1 /debug+
    "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
    Files\webapplication1\3860b6e6\760156ee\xs005t5z.0.vb"


    Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
    for Microsoft (R) .NET Framework version 1.1.4322.573
    Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.

    vbc : error BC30138: Unable to create temp file in path
    'C:\DOCUME~1\XP-MAC~1\ASPNET\LOCALS~1\Temp\': Access is denied.





    Show Complete Compilation Source:


    Line 1:
    '------------------------------------------------------------------------------
    Line 2: ' <autogenerated>
    Line 3: ' This code was generated by a tool.
    Line 4: ' Runtime Version: 1.1.4322.573
    Line 5: '
    Line 6: ' Changes to this file may cause incorrect behavior and will
    be lost if
    Line 7: ' the code is regenerated.
    Line 8: ' </autogenerated>
    Line 9:
    '------------------------------------------------------------------------------
    Line 10:
    Line 11: Option Strict Off
    Line 12: Option Explicit On
    Line 13:
    Line 14: Imports Microsoft.VisualBasic
    Line 15: Imports System
    Line 16: Imports System.Collections
    Line 17: Imports System.Collections.Specialized
    Line 18: Imports System.Configuration
    Line 19: Imports System.Text
    Line 20: Imports System.Text.RegularExpressions
    Line 21: Imports System.Web
    Line 22: Imports System.Web.Caching
    Line 23: Imports System.Web.Security
    Line 24: Imports System.Web.SessionState
    Line 25: Imports System.Web.UI
    Line 26: Imports System.Web.UI.HtmlControls
    Line 27: Imports System.Web.UI.WebControls
    Line 28:
    Line 29: Namespace ASP
    Line 30:
    Line 31:
    <System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()> _
    Line 32: Public Class Global_asax
    Line 33: Inherits WebApplication1.Global
    Line 34:
    Line 35: Private Shared __initialized As Boolean = false
    Line 36:
    Line 37: Public Sub New()
    Line 38: MyBase.New
    Line 39: If (ASP.Global_asax.__initialized = false) Then
    Line 40: ASP.Global_asax.__initialized = true
    Line 41: End If
    Line 42: End Sub
    Line 43: End Class
    Line 44: End Namespace
    Line 45:





    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
    Version:1.1.4322.573

    Has anyone else had this?? Or know what im doing wrong. Hope someone can
    help me out.

    Regards

    James
    =?Utf-8?B?SmFtZXMgUHJvY3Rvcg==?=, Dec 16, 2004
    #1
    1. Advertising

  2. Try adding the 'Network Service' account to the ACL.

    "James Proctor" wrote:

    > Hi there, im brand new to ASP. Ive done loads of VB coding and one of my
    > clients is intrested in a web based application, so im trying to play on and
    > learn it a tad. However im comming across lots of problems. Up until now ive
    > managed to sort most of them, but now im strugling. When i run my application
    > i keep getting this.
    >
    > Server Error in '/WebApplication1' Application.
    > --------------------------------------------------------------------------------
    >
    > Compilation Error
    > Description: An error occurred during the compilation of a resource required
    > to service this request. Please review the following specific error details
    > and modify your source code appropriately.
    >
    > Compiler Error Message: BC30138: Unable to create temp file in path
    > 'C:\DOCUME~1\XP-MAC~1\ASPNET\LOCALS~1\Temp\': Access is denied.
    >
    > Source Error:
    >
    >
    >
    > [No relevant source lines]
    >
    >
    > Source File: vbc : Line: 0
    >
    >
    >
    > Show Detailed Compiler Output:
    >
    >
    > C:\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.1.4322\vbc.exe"
    > /t:library /utf8output
    > /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll"
    > /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll"
    > /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll"
    > /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
    > /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll"
    > /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll"
    > /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll"
    > /R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll"
    > /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
    > files\webapplication1\3860b6e6\760156ee\assembly\dl2\2fa85b6b\50f17af8_e2e2c401\webapplication1.dll"
    > /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
    > Files\webapplication1\3860b6e6\760156ee\xs005t5z.dll" /D:DEBUG=1 /debug+
    > "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
    > Files\webapplication1\3860b6e6\760156ee\xs005t5z.0.vb"
    >
    >
    > Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
    > for Microsoft (R) .NET Framework version 1.1.4322.573
    > Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
    >
    > vbc : error BC30138: Unable to create temp file in path
    > 'C:\DOCUME~1\XP-MAC~1\ASPNET\LOCALS~1\Temp\': Access is denied.
    >
    >
    >
    >
    >
    > Show Complete Compilation Source:
    >
    >
    > Line 1:
    > '------------------------------------------------------------------------------
    > Line 2: ' <autogenerated>
    > Line 3: ' This code was generated by a tool.
    > Line 4: ' Runtime Version: 1.1.4322.573
    > Line 5: '
    > Line 6: ' Changes to this file may cause incorrect behavior and will
    > be lost if
    > Line 7: ' the code is regenerated.
    > Line 8: ' </autogenerated>
    > Line 9:
    > '------------------------------------------------------------------------------
    > Line 10:
    > Line 11: Option Strict Off
    > Line 12: Option Explicit On
    > Line 13:
    > Line 14: Imports Microsoft.VisualBasic
    > Line 15: Imports System
    > Line 16: Imports System.Collections
    > Line 17: Imports System.Collections.Specialized
    > Line 18: Imports System.Configuration
    > Line 19: Imports System.Text
    > Line 20: Imports System.Text.RegularExpressions
    > Line 21: Imports System.Web
    > Line 22: Imports System.Web.Caching
    > Line 23: Imports System.Web.Security
    > Line 24: Imports System.Web.SessionState
    > Line 25: Imports System.Web.UI
    > Line 26: Imports System.Web.UI.HtmlControls
    > Line 27: Imports System.Web.UI.WebControls
    > Line 28:
    > Line 29: Namespace ASP
    > Line 30:
    > Line 31:
    > <System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()> _
    > Line 32: Public Class Global_asax
    > Line 33: Inherits WebApplication1.Global
    > Line 34:
    > Line 35: Private Shared __initialized As Boolean = false
    > Line 36:
    > Line 37: Public Sub New()
    > Line 38: MyBase.New
    > Line 39: If (ASP.Global_asax.__initialized = false) Then
    > Line 40: ASP.Global_asax.__initialized = true
    > Line 41: End If
    > Line 42: End Sub
    > Line 43: End Class
    > Line 44: End Namespace
    > Line 45:
    >
    >
    >
    >
    >
    > --------------------------------------------------------------------------------
    > Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
    > Version:1.1.4322.573
    >
    > Has anyone else had this?? Or know what im doing wrong. Hope someone can
    > help me out.
    >
    > Regards
    >
    > James
    >
    =?Utf-8?B?Q2hyaXMgTWFsY29sbQ==?=, Mar 4, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon
    Replies:
    2
    Views:
    619
    Jon R
    Nov 12, 2003
  2. Replies:
    10
    Views:
    5,700
    Juan T. Llibre
    Sep 23, 2005
  3. Replies:
    2
    Views:
    569
    Mark P
    May 9, 2005
  4. James Proctor

    Unable to create temp file: Error

    James Proctor, Dec 15, 2004, in forum: ASP General
    Replies:
    3
    Views:
    225
    thorpe
    Dec 15, 2004
  5. A. Farber
    Replies:
    3
    Views:
    253
    Ben Morrow
    Mar 3, 2004
Loading...

Share This Page