# Tons of the same exception. What should I do next?

**URL:** <http://discussions.gridprotectionalliance.org/t/tons-of-the-same-exception-what-should-i-do-next/874>\
**Category:** openHistorian\
**Created:** [April 14, 2021, 4:11am UTC](http://discussions.gridprotectionalliance.org/t/tons-of-the-same-exception-what-should-i-do-next/874 "2021-04-14T04:11:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haibo\_Mao](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/haibo_mao/32/731_2.png) [@Haibo\_Mao](http://discussions.gridprotectionalliance.org/u/Haibo_Mao)\
**Post date:** [April 14, 2021, 4:11am UTC](http://discussions.gridprotectionalliance.org/t/tons-of-the-same-exception-what-should-i-do-next/874/1 "2021-04-14T04:11:43Z")

</div>

I got tons of the same exception in the log. Please help.

Time: 4/14/2021 12:08:47 AM - Component - NA - SystemHealth - None  
Event Name: First Chance App Domain Exception  
Exception:  
System.UnauthorizedAccessException: Access to the path ‘CompiledRazorTemplates.Dynamic.RazorEngine\_c1571f05d7d34ec897535e2f89d3a77a.dll’ is denied.  
at [System.IO](http://System.IO).\_\_Error.WinIOError(Int32 errorCode, String maybeFullPath)  
Message Type: GSF.Diagnostics.Logger  
Message Assembly: GSF.Core.dll (2.3.300.0)  
Managed Thread Id: 1

Current Stack Trace:  
at [System.IO](http://System.IO).\_\_Error.WinIOError(Int32 errorCode, String maybeFullPath) IL offset: 435  
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32\_FIND\_DATA& data) IL offset: 544  
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost) IL offset: 219  
at GSF.TimeSeries.ServiceClientBase.Start(String[] args) IL offset: 1516  
at openHistorian.Program.Main(String[] args) IL offset: 145

---

<div class="post-metadata">

**Author:** ![ritchiecarroll](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/ritchiecarroll/32/2_2.png) [@ritchiecarroll](http://discussions.gridprotectionalliance.org/u/ritchiecarroll)\
**Post date:** [April 14, 2021, 12:10pm UTC](http://discussions.gridprotectionalliance.org/t/tons-of-the-same-exception-what-should-i-do-next/874/3 "2021-04-14T12:10:39Z")

</div>

What version are you using? Have you tried nightly build?  
[https://www.gridprotectionalliance.org/NightlyBuilds/openHistorian/Beta/openHistorian.Installs.zip](https://www.gridprotectionalliance.org/NightlyBuilds/openHistorian/Beta/openHistorian.Installs.zip)

---

<div class="post-metadata">

**Author:** ![Haibo\_Mao](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/haibo_mao/32/731_2.png) [@Haibo\_Mao](http://discussions.gridprotectionalliance.org/u/Haibo_Mao)\
**Post date:** [April 15, 2021, 11:00pm UTC](http://discussions.gridprotectionalliance.org/t/tons-of-the-same-exception-what-should-i-do-next/874/4 "2021-04-15T23:00:09Z")

</div>

Hello, thank you so much for your reply.

I do not see a place that could tell me the built info. I downloaded the source code from github and built it from there. I am more interested in how to debug this thing. Right now I do not know where should I start.

simple question, what is “CompiledRazorTemplates.Dynamic.RazorEngine\_c1571f05d7d34ec897535e2f89d3a77a.dll” ?

In general, it seems a good application, but few thing I noticed:

1. the OPC ua adapter seems not working. (or I can’t get it to work). I got this adapter from GIthub.

2. the log utility does not pull the log info automatically. not automatically pulling info seems weird to me. I have to reload the log file every time.

---

<div class="post-metadata">

**Author:** ![ritchiecarroll](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/ritchiecarroll/32/2_2.png) [@ritchiecarroll](http://discussions.gridprotectionalliance.org/u/ritchiecarroll)\
**Post date:** [April 16, 2021, 12:36pm UTC](http://discussions.gridprotectionalliance.org/t/tons-of-the-same-exception-what-should-i-do-next/874/5 "2021-04-16T12:36:34Z")

</div>

The `CompiledRazorTemplates.Dynamic.RazorEngine_*.dll` files are simply compiled instances of the web pages openHistorian uses.These are unrelated to OPC.

1. This is a third party adapter that is not automatically included with the openHistorian, your best bet for assistance on this adapter is to post an issue on the author’s GitHub page
2. Can you provide more details about which log tool you are using that is giving you trouble?

Thanks,  
Ritchie

---

<div class="post-metadata">

**Author:** ![haibo](http://discussions.gridprotectionalliance.org/letter_avatar_proxy/v4/letter/h/ec9cab/32.png) [@haibo](http://discussions.gridprotectionalliance.org/u/haibo)\
**Post date:** [April 19, 2021, 8:05pm UTC](http://discussions.gridprotectionalliance.org/t/tons-of-the-same-exception-what-should-i-do-next/874/6 "2021-04-19T20:05:29Z")

</div>

ok. thanks for reply. maybe i should get to my first issue. the OPC UA adapter never worked in my PC. what info should i provide for someone helping me? thanks.

---

<div class="post-metadata">

**Author:** ![haibo](http://discussions.gridprotectionalliance.org/letter_avatar_proxy/v4/letter/h/ec9cab/32.png) [@haibo](http://discussions.gridprotectionalliance.org/u/haibo)\
**Post date:** [April 19, 2021, 8:14pm UTC](http://discussions.gridprotectionalliance.org/t/tons-of-the-same-exception-what-should-i-do-next/874/7 "2021-04-19T20:14:40Z")

</div>

or the question is even simpler, how can i debug the OPC UA adapter?

---

<div class="post-metadata">

**Author:** ![ritchiecarroll](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/ritchiecarroll/32/2_2.png) [@ritchiecarroll](http://discussions.gridprotectionalliance.org/u/ritchiecarroll)\
**Post date:** [April 20, 2021, 3:17am UTC](http://discussions.gridprotectionalliance.org/t/tons-of-the-same-exception-what-should-i-do-next/874/8 "2021-04-20T03:17:34Z")

</div>

Have you checked this thread? It may help:

[https://gridbits.gridprotectionalliance.org/t/openhistorian-opc-ua-input/676/7](https://gridbits.gridprotectionalliance.org/t/openhistorian-opc-ua-input/676/7)
