Oggi stavo lavorando insieme a SK e ci siamo ritrovati davanti ad una vecchia conoscenza, un assurdo errore di IIS a cui non avevo trovato soluzione.

Stavamo semplicemente mettendo online un applicativo scritto con VisualStudio 2005 e framework 2.0, settiamo IIS, creiamo la virtual directory facciamo l’upload dei file, testiamo e …

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.

The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Sguardo ebete davanti al monitor …

MG:> Uhm … questo errore lo conosco
SK:> Bene, come l’hai risolto?
MG:> Risolto? Non l’ho risolto
SK:> Chiedo a Google

Come sempre migliaia di forum, migliaia di domande e due o tre risposte sensate tra cui la classica, reinstalla il framework (fatto ma non ha funzionato ;) )

Alla fine abbiamo risolto il mistero, è bastato aprire una console DOS (Start->Run->Cmd) andare nella cartella \winnt\microsoft.net\framework\v2.0.50727 e infine scrivere aspnet_regiis /i, poi il miracolo

Lascia un Commento