Erik Porter's Blog

Life and Development at Microsoft and Other Technology Discussions

News

    ASP.NET 1.x Error Message: Access is Denied

    Sometimes, I randomly get an error when developing ASP.NET apps saying that access is denied to some assembly in my bin directory.  Specifically under C:\Windows\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files.

    A local guy I know from our user group (and work we've done for their company), Jeremy Diller, found the answer for me.  It turns out that it's the Indexing Service freaking out ASP.NET and seemingly locking files.  This answer is gold!  Saved me a ton of (continuing) frustration.

    Posted: Oct 12 2005, 11:00 AM by HumanCompiler | with 3 comment(s)
    Filed under: ,

    Comments

    Milan Negovan said:

    VS.NET can cause this problem too. For example, occasionally it holds a lock (an open file handle?) on some assembly in the middle of our compilation chain. I've been on the phone with MS Support, did research on my own, etc, etc, but the only thing that works is to shut down VS.NET and start it back up again. :)
    # October 12, 2005 11:41 PM

    Shahn Hogan said:

    Eric,

    Do you have any other suggestions. I've tried all the fixes, but I continue to get Access Denied. Thanks

    Shahn

    # June 28, 2007 11:18 AM

    Shahn Hogan said:

    Eric,

    Nevermind. I've fixed the issue. I changed an attribute and the problem went away. Thanks for the other helpful hints.

    # June 28, 2007 11:22 AM
    Leave a Comment

    (required) 

    (required) 

    (optional)

    (required)