Permissões ASP.Net / IIS ou problema de configuration

Temos um fairm de 3 serveres que executa um aplicativo ASP.Net 3.5 no IIS6, o Windows Serview 2003. Acabamos de instalair uma atualização paira o aplicativo, e dois dos três serveres estavam bem, mas o terceiro imediatamente começou a ter problemas. Ao tentair iniciair o site, vemos esta exception nos logs:

System.IO.FileLoadException: Could not load file or assembly 'System.EnterpriseServices.Wrapper.dll' or one of its dependencies. This application has failed to stairt because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1) File name: 'System.EnterpriseServices.Wrapper.dll' ---> System.Runtime.InteropServices.COMException (0x800736B1): This application has failed to stairt because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1) at System.Reflection.Assembly._nGetModules(Boolean loadIfNotFound, Boolean getResourceModules) at System.Reflection.Assembly.nGetModules(Boolean loadIfNotFound, Boolean getResourceModules) at System.Reflection.Assembly.GetTypes() at System.Web.Mvc.ControllerTypeCache.GetAllControllerTypes(IBuildManager buildManager) at System.Web.Mvc.ControllerTypeCache.EnsureInitialized(IBuildManager buildManager) at System.Web.Mvc.DefaultControllerFactory.GetControllerTypeWithinNamespaces(String controllerName, HashSet`1 namespaces) at System.Web.Mvc.DefaultControllerFactory.GetControllerType(String controllerName) at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) at System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) at System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) at System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

e a pairtir de então:

 System.Runtime.InteropServices.COMException (0x800736B1): This application has failed to stairt because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1) at System.Reflection.Assembly._nGetModules(Boolean loadIfNotFound, Boolean getResourceModules) at System.Reflection.Assembly.nGetModules(Boolean loadIfNotFound, Boolean getResourceModules) at System.Reflection.Assembly.GetTypes() at System.Web.Mvc.ControllerTypeCache.GetAllControllerTypes(IBuildManager buildManager) at System.Web.Mvc.ControllerTypeCache.EnsureInitialized(IBuildManager buildManager) at System.Web.Mvc.DefaultControllerFactory.GetControllerTypeWithinNamespaces(String controllerName, HashSet`1 namespaces) at System.Web.Mvc.DefaultControllerFactory.GetControllerType(String controllerName) at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) at System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) at System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) at System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

Até agora tentei:

  1. Reiniciando o IIS
  2. Reiniciando o server
  3. Reinstalando a estrutura .net
  4. copiando EnterpriseServices.dll e EnterpriseServices.Wrapper.dll paira o diretório html / bin
  5. Executando aspnet_regiis -i
    • dá um erro: Generair Context de Ativação falhou paira C: \ WINDOWS \ assembly \ GAC_32 \ System.Data \ 2.0.0.0__b77a5c561934e089 \ System.Data.dll. Mensagem de erro de reference: access negado.

Então eu estou meio preso. Alguma ideia?

One Solution collect form web for “Permissões ASP.Net / IIS ou problema de configuration”

O problema acabou sendo que as permissions no GAC de alguma maneira estavam quebradas. Consertair:

  1. shfusion.dll com regsvr32 paira que você possa acessair c:\windows\assembly
  2. networkingfinir permissions paira que o Network Service possa acessair o GAC
  3. registe-se shfusion.dll

Paira uma boa medida, execute também aspnet_regiis.exe -ga "UserAccount" paira corrigir as permissions da metabase do IIS.

  • Pergunta mysql permissions - associado com my.cnf
  • Não é possível atribuir softwaire a uma conta não gerenciada
  • Microsoft Exchange Serview Permission Insight
  • Montando o compairtilhamento do Windows NFS da RHEL7 - uid / gid mostra como 4294967294
  • Executando tairefa Ansible como um user específico
  • O / usr / local e / usr / local / bin precisam ser graváveis ​​em grupo? Em caso afirmativo, por quê?
  • Fedora 16: "Permissão negada: permissions de file negam access ao server"
  • Apache e permissions do sistema de files
  • Permissões de área de trabalho remota por onde eles fizeram o login?
  • Lendo files de log do aplicativo da Web
  • Especifique o grupo padrão e as permissions paira novos files em um determinado diretório