c# - Server Error in '/' Application () -


i created odata ado.net framework web api testing in localhost , getting error enter image description here

line 19:             if (!eventlog.sourceexists("myservice")) 

the stacktrace is:

[securityexception: source not found, or event logs not 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 

how should remove error ? lot.

my web.config has:

  <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> 

the process removing bindings(team foundation service - tfs) simple:

ensure don’t have solution/projects open in visual studio copy solution new directory (because tool modify files)

run utility command line: vsunbindsourcecontrol.exe d:\mysolution folder

once tool finished, source control bindings have been removed solution , project files.

also have @ this post


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -