2011-11-28 8 views
5

Non riesco a ottenere una nuova applicazione ASP.NET 4.0 per funzionare su IIS 7, in Windows 2008 R2. Tutto quello che posso vedere nel mio registro eventi è l'errore seguente. Non riesco a trovare alcuna informazione su cosa significhi, qualcuno può aiutarti?La seguente eccezione è stata generata dal provider di eventi Web "EventLogProvider"

Log Name:  Application 
Source:  ASP.NET 4.0.30319.0 
Date:   11/27/2011 4:22:13 PM 
Event ID:  1301 
Task Category: Web Event 
Level:   Error 
Keywords:  Classic 
User:   N/A 
Computer:  [myserver].[mydomain].com 
Description: 
The following exception was thrown by the web event provider 'EventLogProvider' in the application '/[myapp]' (in an application lifetime a maximum of one exception will be logged per provider instance): 

System.UnauthorizedAccessException: Attempted to perform an unauthorized operation. 
    at System.Security.Principal.WindowsIdentity.get_AuthenticationType() 
    at System.Web.Management.EventLogWebEventProvider.AddWebRequestInformationDataFields(ArrayList dataFields, WebRequestInformation reqInfo) 
    at System.Web.Management.EventLogWebEventProvider.ProcessEvent(WebBaseEvent eventRaised) 
    at System.Web.Management.WebBaseEvent.RaiseInternal(WebBaseEvent eventRaised, ArrayList firingRuleInfos, Int32 index0, Int32 index1) 
Event Xml: 
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> 
    <System> 
    <Provider Name="ASP.NET 4.0.30319.0" /> 
    <EventID Qualifiers="49152">1301</EventID> 
    <Level>2</Level> 
    <Task>3</Task> 
    <Keywords>0x80000000000000</Keywords> 
    <TimeCreated SystemTime="2011-11-27T21:22:13.000000000Z" /> 
    <EventRecordID>1357</EventRecordID> 
    <Channel>Application</Channel> 
    <Computer>[myserver].[mydomain].com</Computer> 
    <Security /> 
    </System> 
    <EventData> 
    <Data>EventLogProvider</Data> 
    <Data>/[MyApp]</Data> 
    <Data>System.UnauthorizedAccessException: Attempted to perform an unauthorized operation. 
    at System.Security.Principal.WindowsIdentity.get_AuthenticationType() 
    at System.Web.Management.EventLogWebEventProvider.AddWebRequestInformationDataFields(ArrayList dataFields, WebRequestInformation reqInfo) 
    at System.Web.Management.EventLogWebEventProvider.ProcessEvent(WebBaseEvent eventRaised) 
    at System.Web.Management.WebBaseEvent.RaiseInternal(WebBaseEvent eventRaised, ArrayList firingRuleInfos, Int32 index0, Int32 index1)</Data> 
    </EventData> 
</Event> 

risposta

6

Questo perché il codice sta cercando di scrivere nel registro eventi, ma l'utente che il pool di applicazioni è in esecuzione come non ha questa autorità.

Sarà necessario modificare il pool di applicazioni in modo che venga eseguito come un utente diverso o far sì che il sito Web impersonifichi un utente noto se non è possibile modificare l'identità del pool di applicazioni.

+0

Grazie Competent_Tech. Questo era esattamente. – Sam

+0

per favore, spiegami di più .... –

Problemi correlati