Я создал веб-интерфейс API OData ADO.NET Framework, который я тестирование в локальный, и я получаю ошибку Ошибка сервера в приложении '/'()
Line 19: if (!EventLog.SourceExists("MyService"))
StackTrace является:
[SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.]
System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly, Boolean wantToCreate) +657
System.Diagnostics.EventLog.SourceExists(String source, String machineName, Boolean wantToCreate) +104
System.Diagnostics.EventLog.SourceExists(String source) +14
Как удалить эту ошибку? Большое спасибо.
Мой web.config имеет:
<system.web>
<authentication mode="Windows">
<forms requireSSL="true" />
</authentication>
<authorization>
<allow roles="MyService" />
<deny users="*" />
</authorization>
<httpCookies requireSSL="true" httpOnlyCookies="true" />
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" enableVersionHeader="false"/>
</system.web>
Почта кодов – tharif
@utility Это решение с несколькими проектами. – Novak007
попробуйте запустить как режим администратора – tharif