<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta charset="utf-8" />
        <title>Internal Server Error</title>
        <style>
            :root {
    --color-text: #222;
    --color-background: #fff;
    --color-border: #ddd;
    --color-link: #105e85;
    --color-link-hover: #157eb0;

    --color-heading-main: #44525e;
    --color-heading-stacktrace: #363636;
    --color-table-heading: #44525e;

    --color-tab-link: #105e85;
    --color-tab-selected: #fff;
    --color-tab-selected-background: #105e85;

    --color-code-background: #fbfbfb;
    --color-code-highlight: #c70000;
    --color-code-context-linenum: #606060;
    --color-code-context: #606060;
    --color-code-context-button-background: #ddd;
}

/* Intentional double at-signs here to escape properly when included in cshtml */
@media (prefers-color-scheme: dark) {
    :root {
        --color-text: #dcdcdc;
        --color-background: #222;
        --color-border: #444;
        --color-link: #4db7ea;
        --color-link-hover: #88cfea;

        --color-heading-main: #a9bac7;
        --color-heading-stacktrace: #c7c7c7;
        --color-table-heading: #a9bac7;

        --color-tab-link: #4db7ea;
        --color-tab-selected: #222;
        --color-tab-selected-background: #4db7ea;

        --color-code-background: #1c1c1c;
        --color-code-highlight: #ff8787;
        --color-code-context-linenum: #9B9B9B;
        --color-code-context: #9B9B9B;
        --color-code-context-button-background: #444;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;
    font-size: .813em;
    color: var(--color-text);
    background-color: var(--color-background);
}

h1 {
    color: var(--color-heading-main);
    margin: 15px 0 15px 0;
}

h2 {
    margin: 10px 5px 0 0;
    padding: 5px;
    border-bottom: 1px solid var(--color-border);
}

h3 {
    color: var(--color-heading-stacktrace);
    margin: 5px 5px 0 0;
    font-weight: normal;
}

code {
    font-family: Consolas, "Courier New", courier, monospace;
    font-weight: bold;
}

a {
    color: var(--color-link);
    text-decoration: none;
}
a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

/* Exception title & message */
body .titleerror {
    padding: 3px 3px 6px 3px;
    display: block;
    font-size: 1.5em;
    font-weight: 100;
}

/* Exception location */
body .location {
    margin: 3px 0 10px 30px;
}

/* Tab navigation */
#header {
    font-size: 18px;
    padding: 15px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
}
#header li {
    display: inline;
    margin: 5px;
    padding: 5px;
    color: var(--color-tab-link);
    cursor: pointer;
}
#header .selected {
    color: var(--color-tab-selected);
    background: var(--color-tab-selected-background);
}

/* Stack page */
#stackpage .details {
    font-size: 1.2em;
    padding: 3px;
}
#stackpage ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#stackpage .frame {
    padding: 0;
    margin: 0 0 0 30px;
}
#stackpage .frame h3 {
    padding: 2px;
    margin: 0;
}

/* Stack frame source */
#stackpage .source {
    padding: 0 0 0 30px;
}
#stackpage .source ol li {
    font-family: Consolas, "Courier New", courier, monospace;
    white-space: pre;
    background-color: var(--color-code-background);
}

/* Stack frame source: highlighted line */
#stackpage .source .highlight {
    border-left: 3px solid var(--color-code-highlight);
    margin-left: -3px;
    font-weight: bold;
}
#stackpage .source .highlight li span {
    color: var(--color-code-highlight);
}

/* Stack frame source: context lines */
#stackpage .source .collapsible {
    color: var(--color-code-context-linenum);
}
#stackpage .source .collapsible li span {
    color: var(--color-code-context);
}

.expandCollapseButton {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    font-size: 10px;
    color: inherit;
    background: var(--color-code-context-button-background);
    padding: 0;
    border: 0;
    cursor: pointer;
}

/* Table */
.page table {
    border-collapse: collapse;
    margin: 0 0 20px;
}
.page th {
    padding: 10px 10px 5px 10px;
    color: var(--color-table-heading);
    text-align: left;
}
.page td {
    padding: 3px 10px;
}
.page tr {
    border-bottom: 1px solid var(--color-border);
}
.page tr > :not(:last-child) {
    border-right: 1px solid var(--color-border);
}

/* Raw exception details */
.rawExceptionBlock {
    font-size: 1.2em;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.showRawException {
    display: inline-block;
    color: var(--color-link);
    background: transparent;
    font: inherit;
    border: 0;
    padding: 10px 0;
    cursor: pointer;
}
.showRawException:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

        </style>
    </head>
    <body>
        <h1>An unhandled exception occurred while processing the request.</h1>
            <div class="titleerror">DirectoryNotFoundException: Could not find a part of the path &#x27;D:\Cilent_data_wincc\Zelenka\wwwroot\Zelenka_Reports&#x27;.</div>
                <p class="location">System.IO.Enumeration.FileSystemEnumerator&lt;TResult&gt;.CreateDirectoryHandle(string path, bool ignoreNotFound)</p>
        <ul id="header">
            <li id="stack" tabindex="1" class="selected">
                Stack
            </li>
            <li id="query" tabindex="2">
                Query
            </li>
            <li id="cookies" tabindex="3">
                Cookies
            </li>
            <li id="headers" tabindex="4">
                Headers
            </li>
            <li id="routing" tabindex="5">
                Routing
            </li>
        </ul>

        <div id="stackpage" class="page">
            <ul>
                    <li>
                        <h2>DirectoryNotFoundException: Could not find a part of the path &#x27;D:\Cilent_data_wincc\Zelenka\wwwroot\Zelenka_Reports&#x27;.</h2>
                        <ul>
                                <li class="frame" id="frame1">
                                        <h3>System.IO.Enumeration.FileSystemEnumerator&lt;TResult&gt;.CreateDirectoryHandle(string path, bool ignoreNotFound)</h3>

                                </li>
                                <li class="frame" id="frame2">
                                        <h3>System.IO.Enumeration.FileSystemEnumerator&lt;TResult&gt;.Init()</h3>

                                </li>
                                <li class="frame" id="frame3">
                                        <h3>System.IO.Enumeration.FileSystemEnumerable&lt;TResult&gt;..ctor(string directory, FindTransform transform, EnumerationOptions options, bool isNormalized)</h3>

                                </li>
                                <li class="frame" id="frame4">
                                        <h3>System.IO.Enumeration.FileSystemEnumerableFactory.UserDirectories(string directory, string expression, EnumerationOptions options)</h3>

                                </li>
                                <li class="frame" id="frame5">
                                        <h3>System.IO.Directory.InternalEnumeratePaths(string path, string searchPattern, SearchTarget searchTarget, EnumerationOptions options)</h3>

                                </li>
                                <li class="frame" id="frame6">
                                        <h3>System.IO.Directory.GetDirectories(string path, string searchPattern, EnumerationOptions enumerationOptions)</h3>

                                </li>
                                <li class="frame" id="frame7">
                                        <h3>Zelenka_Reports_2_3_WebApplication.Pages.Home.Saved_Reports.ListDirectories(string path, StringBuilder sb) in <code title="D:\Projects\Zelenka_Reports_2_3\Zelenka_Reports_2_3_WebApplication\Pages\Home\Saved_Reports.cshtml.cs">Saved_Reports.cshtml.cs</code></h3>

                                </li>
                                <li class="frame" id="frame8">
                                        <h3>Zelenka_Reports_2_3_WebApplication.Pages.Home.Saved_Reports.PageLoad() in <code title="D:\Projects\Zelenka_Reports_2_3\Zelenka_Reports_2_3_WebApplication\Pages\Home\Saved_Reports.cshtml.cs">Saved_Reports.cshtml.cs</code></h3>

                                </li>
                                <li class="frame" id="frame9">
                                        <h3>Zelenka_Reports_2_3_WebApplication.Pages.Home.Saved_Reports.OnGet() in <code title="D:\Projects\Zelenka_Reports_2_3\Zelenka_Reports_2_3_WebApplication\Pages\Home\Saved_Reports.cshtml.cs">Saved_Reports.cshtml.cs</code></h3>

                                </li>
                                <li class="frame" id="frame10">
                                        <h3>Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory&#x2B;VoidHandlerMethod.Execute(object receiver, object[] arguments)</h3>

                                </li>
                                <li class="frame" id="frame11">
                                        <h3>Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeHandlerMethodAsync()</h3>

                                </li>
                                <li class="frame" id="frame12">
                                        <h3>Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeNextPageFilterAsync()</h3>

                                </li>
                                <li class="frame" id="frame13">
                                        <h3>Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Rethrow(PageHandlerExecutedContext context)</h3>

                                </li>
                                <li class="frame" id="frame14">
                                        <h3>Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)</h3>

                                </li>
                                <li class="frame" id="frame15">
                                        <h3>Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeInnerFilterAsync()</h3>

                                </li>
                                <li class="frame" id="frame16">
                                        <h3>Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeNextResourceFilter&gt;g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)</h3>

                                </li>
                                <li class="frame" id="frame17">
                                        <h3>Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)</h3>

                                </li>
                                <li class="frame" id="frame18">
                                        <h3>Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)</h3>

                                </li>
                                <li class="frame" id="frame19">
                                        <h3>Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()</h3>

                                </li>
                                <li class="frame" id="frame20">
                                        <h3>Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeAsync&gt;g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)</h3>

                                </li>
                                <li class="frame" id="frame21">
                                        <h3>Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeAsync&gt;g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)</h3>

                                </li>
                                <li class="frame" id="frame22">
                                        <h3>Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware.Invoke(HttpContext httpContext)</h3>

                                </li>
                                <li class="frame" id="frame23">
                                        <h3>Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)</h3>

                                </li>
                                <li class="frame" id="frame24">
                                        <h3>Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)</h3>

                                </li>
                                <li class="frame" id="frame25">
                                        <h3>Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)</h3>

                                </li>
                                <li class="frame" id="frame26">
                                        <h3>Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)</h3>

                                </li>
                                <li class="frame" id="frame27">
                                        <h3>Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)</h3>

                                </li>
                                <li class="frame" id="frame28">
                                        <h3>Program&#x2B;&lt;&gt;c&#x2B;&lt;&lt;&lt;Main&gt;$&gt;b__0_12&gt;d.MoveNext() in <code title="D:\Projects\Zelenka_Reports_2_3\Zelenka_Reports_2_3_WebApplication\Program.cs">Program.cs</code></h3>

                                </li>
                                <li class="frame" id="frame29">
                                        <h3>Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)</h3>

                                </li>
                        </ul>
                    </li>
                    <li>
                        <br />
                        <div class="rawExceptionBlock">
                            <button class="showRawException" data-exceptionDetailId="exceptionDetail1">Show raw exception details</button>
                            <div id="exceptionDetail1" class="rawExceptionDetails">
                                <pre class="rawExceptionStackTrace">System.IO.DirectoryNotFoundException: Could not find a part of the path &#x27;D:\Cilent_data_wincc\Zelenka\wwwroot\Zelenka_Reports&#x27;.&#xD;&#xA;   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)&#xD;&#xA;   at System.IO.Enumeration.FileSystemEnumerator`1.Init()&#xD;&#xA;   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)&#xD;&#xA;   at System.IO.Enumeration.FileSystemEnumerableFactory.UserDirectories(String directory, String expression, EnumerationOptions options)&#xD;&#xA;   at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)&#xD;&#xA;   at System.IO.Directory.GetDirectories(String path, String searchPattern, EnumerationOptions enumerationOptions)&#xD;&#xA;   at Zelenka_Reports_2_3_WebApplication.Pages.Home.Saved_Reports.ListDirectories(String path, StringBuilder sb) in D:\Projects\Zelenka_Reports_2_3\Zelenka_Reports_2_3_WebApplication\Pages\Home\Saved_Reports.cshtml.cs:line 123&#xD;&#xA;   at Zelenka_Reports_2_3_WebApplication.Pages.Home.Saved_Reports.PageLoad() in D:\Projects\Zelenka_Reports_2_3\Zelenka_Reports_2_3_WebApplication\Pages\Home\Saved_Reports.cshtml.cs:line 113&#xD;&#xA;   at Zelenka_Reports_2_3_WebApplication.Pages.Home.Saved_Reports.OnGet() in D:\Projects\Zelenka_Reports_2_3\Zelenka_Reports_2_3_WebApplication\Pages\Home\Saved_Reports.cshtml.cs:line 42&#xD;&#xA;   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.VoidHandlerMethod.Execute(Object receiver, Object[] arguments)&#xD;&#xA;   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeHandlerMethodAsync()&#xD;&#xA;   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeNextPageFilterAsync()&#xD;&#xA;   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Rethrow(PageHandlerExecutedContext context)&#xD;&#xA;   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Next(State&amp; next, Scope&amp; scope, Object&amp; state, Boolean&amp; isCompleted)&#xD;&#xA;   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeInnerFilterAsync()&#xD;&#xA;   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeNextResourceFilter&gt;g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)&#xD;&#xA;   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)&#xD;&#xA;   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State&amp; next, Scope&amp; scope, Object&amp; state, Boolean&amp; isCompleted)&#xD;&#xA;   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()&#xD;&#xA;--- End of stack trace from previous location ---&#xD;&#xA;   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeAsync&gt;g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)&#xD;&#xA;   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeAsync&gt;g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)&#xD;&#xA;   at Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware.Invoke(HttpContext httpContext)&#xD;&#xA;   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)&#xD;&#xA;   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)&#xD;&#xA;   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)&#xD;&#xA;   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)&#xD;&#xA;   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)&#xD;&#xA;   at Program.&lt;&gt;c.&lt;&lt;&lt;Main&gt;$&gt;b__0_12&gt;d.MoveNext() in D:\Projects\Zelenka_Reports_2_3\Zelenka_Reports_2_3_WebApplication\Program.cs:line 174&#xD;&#xA;--- End of stack trace from previous location ---&#xD;&#xA;   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)</pre>
                            </div>
                        </div>
                    </li>
            </ul>
        </div>

        <div id="querypage" class="page">
                <table>
                    <thead>
                        <tr>
                            <th>Variable</th>
                            <th>Value</th>
                        </tr>
                    </thead>
                    <tbody>
                                <tr>
                                    <td>para</td>
                                    <td>TJ6rvptEbvz9a7Uhb90DDM25A1T7yzqIfVmraglCQR6y5boJeGifM/SSVJIeKMg/</td>
                                </tr>
                    </tbody>
                </table>
        </div>

        <div id="cookiespage" class="page">
                <table>
                    <thead>
                        <tr>
                            <th>Variable</th>
                            <th>Value</th>
                        </tr>
                    </thead>
                    <tbody>
                            <tr>
                                <td>.Zelenka.Session</td>
                                <td>CfDJ8C/tXHBtNOtKq4JjfedmCT5WhjNpGd2Rpwp5jXky4pU7MbVq5SMCx6ISmyRb0yiEM49YsFpmrnbQ8eIX1VRA7JVuCTiicrmzHMfX6yZocZssQ&#x2B;WS3iwJUqZ/VEFr6bgjPlh5befxvr5nklCnl23KWgeI4TXrhjenMmokMywqnaoL</td>
                            </tr>
                    </tbody>
                </table>
        </div>

        <div id="headerspage" class="page">
                <table>
                    <thead>
                        <tr>
                            <th>Variable</th>
                            <th>Value</th>
                        </tr>
                    </thead>
                    <tbody>
                                <tr>
                                    <td>Accept</td>
                                    <td>text/html,application/xhtml&#x2B;xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7</td>
                                </tr>
                                <tr>
                                    <td>Accept-Encoding</td>
                                    <td>gzip, deflate, br, zstd</td>
                                </tr>
                                <tr>
                                    <td>Accept-Language</td>
                                    <td>en-US,en;q=0.9</td>
                                </tr>
                                <tr>
                                    <td>Connection</td>
                                    <td>keep-alive</td>
                                </tr>
                                <tr>
                                    <td>Cookie</td>
                                    <td>.Zelenka.Session=CfDJ8C%2FtXHBtNOtKq4JjfedmCT5WhjNpGd2Rpwp5jXky4pU7MbVq5SMCx6ISmyRb0yiEM49YsFpmrnbQ8eIX1VRA7JVuCTiicrmzHMfX6yZocZssQ%2BWS3iwJUqZ%2FVEFr6bgjPlh5befxvr5nklCnl23KWgeI4TXrhjenMmokMywqnaoL</td>
                                </tr>
                                <tr>
                                    <td>Host</td>
                                    <td>localhost:5005</td>
                                </tr>
                                <tr>
                                    <td>Referer</td>
                                    <td>http://localhost:5005/Home/Index</td>
                                </tr>
                                <tr>
                                    <td>sec-ch-ua</td>
                                    <td>&quot;Microsoft Edge WebView2&quot;;v=&quot;141&quot;, &quot;Chromium&quot;;v=&quot;141&quot;, &quot;Microsoft Edge&quot;;v=&quot;141&quot;, &quot;Not?A_Brand&quot;;v=&quot;8&quot;</td>
                                </tr>
                                <tr>
                                    <td>sec-ch-ua-mobile</td>
                                    <td>?0</td>
                                </tr>
                                <tr>
                                    <td>sec-ch-ua-platform</td>
                                    <td>&quot;Windows&quot;</td>
                                </tr>
                                <tr>
                                    <td>Sec-Fetch-Dest</td>
                                    <td>document</td>
                                </tr>
                                <tr>
                                    <td>Sec-Fetch-Mode</td>
                                    <td>navigate</td>
                                </tr>
                                <tr>
                                    <td>Sec-Fetch-Site</td>
                                    <td>same-origin</td>
                                </tr>
                                <tr>
                                    <td>Sec-Fetch-User</td>
                                    <td>?1</td>
                                </tr>
                                <tr>
                                    <td>Upgrade-Insecure-Requests</td>
                                    <td>1</td>
                                </tr>
                                <tr>
                                    <td>User-Agent</td>
                                    <td>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0</td>
                                </tr>
                    </tbody>
                </table>
        </div>

        <div id="routingpage" class="page">
            <h2>Endpoint</h2>
                <table>
                    <thead>
                        <tr>
                            <th>Name</th>
                            <th>Value</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>Display Name</td>
                            <td>/Home/Saved_Reports</td>
                        </tr>
                            <tr>
                                <td>Route Pattern</td>
                                <td>Home/Saved_Reports</td>
                            </tr>
                            <tr>
                                <td>Route Order</td>
                                <td>0</td>
                            </tr>
                    </tbody>
                </table>
            <h2>Route Values</h2>
                <table>
                    <thead>
                        <tr>
                            <th>Variable</th>
                            <th>Value</th>
                        </tr>
                    </thead>
                    <tbody>
                            <tr>
                                <td>page</td>
                                <td>/Home/Saved_Reports</td>
                            </tr>
                    </tbody>
                </table>
        </div>

        <script>
            //<!--
            (function (window, undefined) {
    "use strict";

    function ns(selector, element) {
        return new NodeCollection(selector, element);
    }

    function NodeCollection(selector, element) {
        this.items = [];
        element = element || window.document;

        var nodeList;

        if (typeof (selector) === "string") {
            nodeList = element.querySelectorAll(selector);
            for (var i = 0, l = nodeList.length; i < l; i++) {
                this.items.push(nodeList.item(i));
            }
        }
    }

    NodeCollection.prototype = {
        each: function (callback) {
            for (var i = 0, l = this.items.length; i < l; i++) {
                callback(this.items[i], i);
            }
            return this;
        },

        children: function (selector) {
            var children = [];

            this.each(function (el) {
                children = children.concat(ns(selector, el).items);
            });

            return ns(children);
        },

        hide: function () {
            this.each(function (el) {
                el.style.display = "none";
            });

            return this;
        },

        toggle: function () {
            this.each(function (el) {
                el.style.display = el.style.display === "none" ? "" : "none";
            });

            return this;
        },

        show: function () {
            this.each(function (el) {
                el.style.display = "";
            });

            return this;
        },

        addClass: function (className) {
            this.each(function (el) {
                var existingClassName = el.className,
                    classNames;
                if (!existingClassName) {
                    el.className = className;
                } else {
                    classNames = existingClassName.split(" ");
                    if (classNames.indexOf(className) < 0) {
                        el.className = existingClassName + " " + className;
                    }
                }
            });

            return this;
        },

        removeClass: function (className) {
            this.each(function (el) {
                var existingClassName = el.className,
                    classNames, index;
                if (existingClassName === className) {
                    el.className = "";
                } else if (existingClassName) {
                    classNames = existingClassName.split(" ");
                    index = classNames.indexOf(className);
                    if (index > 0) {
                        classNames.splice(index, 1);
                        el.className = classNames.join(" ");
                    }
                }
            });

            return this;
        },

        attr: function (name) {
            if (this.items.length === 0) {
                return null;
            }

            return this.items[0].getAttribute(name);
        },

        on: function (eventName, handler) {
            this.each(function (el, idx) {
                var callback = function (e) {
                    e = e || window.event;
                    if (!e.which && e.keyCode) {
                        e.which = e.keyCode; // Normalize IE8 key events
                    }
                    handler.apply(el, [e]);
                };

                if (el.addEventListener) { // DOM Events
                    el.addEventListener(eventName, callback, false);
                } else if (el.attachEvent) { // IE8 events
                    el.attachEvent("on" + eventName, callback);
                } else {
                    el["on" + type] = callback;
                }
            });

            return this;
        },

        click: function (handler) {
            return this.on("click", handler);
        },

        keypress: function (handler) {
            return this.on("keypress", handler);
        }
    };

    function frame(el) {
        ns(".source .collapsible", el).toggle();
    }

    function expandCollapseButton(el) {
        var frameId = el.getAttribute("data-frameId");
        frame(document.getElementById(frameId));
        if (el.innerText === "+") {
            el.innerText = "-";
        }
        else {
            el.innerText = "+";
        }
    }

    function tab(el) {
        var unselected = ns("#header .selected").removeClass("selected").attr("id");
        var selected = ns("#" + el.id).addClass("selected").attr("id");

        ns("#" + unselected + "page").hide();
        ns("#" + selected + "page").show();
    }

    ns(".rawExceptionDetails").hide();
    ns(".collapsible").hide();
    ns(".page").hide();
    ns("#stackpage").show();

    ns(".expandCollapseButton")
        .click(function () {
            expandCollapseButton(this);
        })
        .keypress(function (e) {
            if (e.which === 13) {
                expandCollapseButton(this);
            }
        });

    ns("#header li")
        .click(function () {
            tab(this);
        })
        .keypress(function (e) {
            if (e.which === 13) {
                tab(this);
            }
        });

    ns(".showRawException")
        .click(function () {
            var exceptionDetailId = this.getAttribute("data-exceptionDetailId");
            ns("#" + exceptionDetailId).toggle();
        });
})(window);
            //-->
        </script>
    </body>
</html>
