CAN NOT DEBUG

Last post 01-25-2006 10:02 AM by Mooncrow. 8 replies.

Sort Posts:

  • CAN NOT DEBUG

    08-03-2005, 8:35 PM
    • Participant
      1,342 point Participant
    • ad_flying
    • Member since 03-11-2005, 5:33 PM
    • Posts 269

    I use vs 2005 Beta 2 to develop web application(http mode).
    When I press start debugging button in VS2005, it display a error message after compile
    " This project is not configured to be debugged"

    I use IE to open the defualt.aspx, it still can't run, 

    Server Error in '/MyApplication' Application.
    current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files'.

    How can I do?
  • Re: CAN NOT DEBUG

    08-04-2005, 12:45 AM
    • Contributor
      6,287 point Contributor
    • BrockAllen
    • Member since 05-05-2003, 2:46 PM
    • Providence, RI
    • Posts 1,254
    Right-click on that directory and choose the security tab. Add the "Network Service" account write access to that direcotry.

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen
  • Re: CAN NOT DEBUG

    08-04-2005, 9:13 AM
    • Participant
      1,342 point Participant
    • ad_flying
    • Member since 03-11-2005, 5:33 PM
    • Posts 269
     BrockAllen wrote:
    Right-click on that directory and choose the security tab. Add the "Network Service" account write access to that direcotry.

    -Brock

    Thanks,
    I have Add the "Network Service" account write access to the web site directory, but it is useless.
    The error is the same. I try to view a .aspx in browser , it display a more explicit message like below.
    After I Add the "Network Service" account write access to the "Temporary ASP.NET Files", my Web application can run.

    Is it a bug?
    I thought the DotNetFrameWork2.0 will manage the access right of that temporary directory.
     

    Server Error in '/Health8' Application.

    The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files'.

  • Re: CAN NOT DEBUG

    08-04-2005, 12:49 PM
    • Contributor
      6,287 point Contributor
    • BrockAllen
    • Member since 05-05-2003, 2:46 PM
    • Providence, RI
    • Posts 1,254
    Well, that error's fairly explicit. I'm not sure what else I can tell you.

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen
  • Re: CAN NOT DEBUG

    08-04-2005, 6:11 PM
    • Participant
      1,342 point Participant
    • ad_flying
    • Member since 03-11-2005, 5:33 PM
    • Posts 269
    I thought VS will add the NT AUTHORITY\NETWORK SERVICE to the temporary directory.
    It is strange if we need to do manually.
    Is it is a bug or something necessary?



     BrockAllen wrote:
    Well, that error's fairly explicit. I'm not sure what else I can tell you.

    -Brock
  • Re: CAN NOT DEBUG

    08-06-2005, 2:46 PM
    • Contributor
      6,287 point Contributor
    • BrockAllen
    • Member since 05-05-2003, 2:46 PM
    • Providence, RI
    • Posts 1,254
     ad_flying wrote:
    I thought VS will add the NT AUTHORITY\NETWORK SERVICE to the temporary directory.
    It is strange if we need to do manually.
    Is it is a bug or something necessary?


    The setup should allow that user, so yes it feels like a configuration or install problem somewhere. Normally you don't have to do this, but in your case I'd try it and see if that solves the problem.

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen
  • Re: CAN NOT DEBUG

    08-06-2005, 5:02 PM
    • Participant
      1,342 point Participant
    • ad_flying
    • Member since 03-11-2005, 5:33 PM
    • Posts 269

    Yes, the problem is solved.

    But it is something paradox to me.
    1. Commonly, the web site folder does not need Network Service account, but the temporary folder need.
    2. When I need to upload files to a web site folder, the forder need Netwrok Service account.

    Network Service like a magic Jack, When I feed the folder need the account, like the web site folder, it does need.


  • Re: CAN NOT DEBUG

    08-07-2005, 12:05 AM
    • Contributor
      6,287 point Contributor
    • BrockAllen
    • Member since 05-05-2003, 2:46 PM
    • Providence, RI
    • Posts 1,254

    That's because the ASP.NET worker process runs as the network service account.

    -Brock

     

    DevelopMentor
    http://staff.develop.com/ballen
  • Re: CAN NOT DEBUG

    01-25-2006, 10:02 AM
    • Member
      5 point Member
    • Mooncrow
    • Member since 01-25-2006, 9:59 AM
    • Canada
    • Posts 1

    Brock:

    Based on your posts above, even if you manually Add the NETWORK/NETWORKSERVICE accounts to the access list for the ASP.NET Temporary Files, when the System Group Policies are re-applied the security changes again.

    The Group Policies must be edited to prevent the Directory access from being changed every time Security Policies are re-applied.

     

    ~^M^~

    ~^M^~
    "Life, don't talk to me about Life"
    -Marvin
Page 1 of 1 (9 items)