RE: Machine.config file no longer likes App

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 03/17/04


Date: Wed, 17 Mar 2004 03:33:35 GMT

Hi,

>From your description, you encountered the "Access Denied" exception
recently in your ASP.NET web app. Also you found that if you turn off the
index service as some one suggested, the exception disappeared, yes?
If there is anything I misunderstood, please feel free to let me know.

Based on my experience, there are some certain situations which'll cause
such problems.
1. When you have a certain assembly(dll) which is strong-named. If you put
it in application's bin folder rather than registered it in the GAC(Global
Assembly Cache) and if the index serviced in turned on, there'll occur the
similar exception as you mentioned. Here is the related kb article:

#PRB: "Access Denied" Error Messages When You Do Not Put Strong-Named
Assemblies in the Global Assembly Cache
http://support.microsoft.com/?id=813833

2. When you use the Index Sevice in your ASP.NET web application and with
the impersonate as true. There'll also occur "Access is Denied" exception,
here is the related kb:

#FIX: "Access Is Denied" Error Message When You Try to Access Indexing
Service from ASP.NET with Impersonation Enabled
http://support.microsoft.com/?id=323293

In addition, according to your problem's symptom, I think the #1 is more
likely, please have a check on it to see whether it suits your problem. If
you have any quesitons, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx



Relevant Pages

  • Method not found: GetNamedPermissionSet() error on installing .net 3.5
    ... my web app is giving the error on ... and reinstalling the .net framework. ... An unhandled exception has occurred. ... Thread information: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Simple webmethod call
    ... if client derive public WS classed from Microsoft.Web.Services2.WebServicesClientProtocol I must throw exception)? ... with best regards ... I have a web app that offer some webmethods. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Get url
    ... exception if passed referrer is in incorrect format. ... a different web app and different web page. ... Mark Rae ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: StackOverflowException after Page.Unload - how to debug?
    ... Yup, I still have trouble with the app, thanks for noticing. ... How can I trap the exact location the exception is thrown (when not in asp ... > Hi again L-E, ... Are those COM components using in your web app your own ...
    (microsoft.public.dotnet.framework.aspnet)