« Previous Next »

Thread: Virtual Directory Issue

Last post 07-14-2009 3:37 PM by bosepehr@hotmail.com. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 07-13-2009, 10:29 PM

    Virtual Directory Issue

    Hi everyone,

    I'm new to this forum and look forward to learning more about IIS and it's members.

    I have a IIS 7 security problem ( at least I think it is a security issue) that have been trying to solve and create a virtual directory, yet unsuccessful!! I'm hoping to find the solution with your help.

    I followed all the procedures from http://msdn.microsoft.com/en-us/library/bb763173.aspx and added the permissions to the folder including NETWORK_SERVICE, IIS_IUSRS, IUSR, enabled Directory Browsing, Anonymous Authentication, ASP.NET Impersonation and still get the following error:

     

    3007
    A compilation error has occurred.
    7/13/2009 5:28:27 PM
    7/14/2009 12:28:27 AM
    7bd08615fd6a4fe0ad7caf24c1a9cc02
    3
    1
    0
    /LM/W3SVC/1/ROOT/DotNetNuke-4-128920049056070000
    Full
    /DotNetNuke
    C:\DotNetNuke\
    My-PC
    5936
    w3wp.exe
    NT AUTHORITY\NETWORK SERVICE
    HttpCompileException
    vbc : (0): error BC30138: Unable to create temp file in path 'C:\Windows\TEMP\': Access is denied.
    http://localhost/DotNetNuke/default.aspx
    /DotNetNuke/default.aspx
    ::1
    False
    NT AUTHORITY\NETWORK SERVICE
    7
    NT AUTHORITY\NETWORK SERVICE
    False
    at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) at System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) at System.Web.Compilation.BuildManager.CompileCodeDirectories() at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)

     

    I really appreciate your help and look forward to reply.

     

    Geneboss
  • 07-14-2009, 1:06 AM In reply to

    Re: Virtual Directory Issue

    Hello,

    You should run your ASP.NET site in Full Trust Level - http://msdn.microsoft.com/en-us/library/wyts434y.aspx

    Regards

  • 07-14-2009, 4:05 AM In reply to

    Re: Virtual Directory Issue

    bosepehr@hotmail.com:
    vbc : (0): error BC30138: Unable to create temp file in path 'C:\Windows\TEMP\': Access is denied.
     

    I'm guessing that the Network Service account being denied access to the system's TEMP folder is the cause of this issue.

    Use Process Monitor to be absolutely sure what is going on :

    http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx

    I don't this problem is anything to do with .Net code trust levels.

    Regards,

    Paul Lynch | www.iisadmin.co.uk
  • 07-14-2009, 3:22 PM In reply to

    Re: Virtual Directory Issue

    Thank you for your response, but I don't think that's the soultion. cofig files are already set to Full trust.

     

    Geneboss
  • 07-14-2009, 3:37 PM In reply to

    Re: Virtual Directory Issue

     

    Thank you Paul,

    It's a wonderful tool and thanx for your suggestion.

     

    Regards

    Geneboss
Page 1 of 1 (5 items)
Microsoft Communities