internal ICollection GetVirtualPathDependencies() { // Always set the culture to Invariant when parsing (ASURT 99071) Thread currentThread = Thread.CurrentThread; CultureInfo prevCulture = currentThread.CurrentCulture; HttpRuntime.SetCurrentThreadCultureWithAssert(CultureInfo.InvariantCulture); try { try { PrepareParse(); ParseFile(); } finally { // Restore the previous culture HttpRuntime.SetCurrentThreadCultureWithAssert(prevCulture); } } catch { throw; } // Prevent Exception Filter Security Issue (ASURT 122835) return(_virtualPathDependencies); }
internal ICollection GetVirtualPathDependencies() { CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture; HttpRuntime.SetCurrentThreadCultureWithAssert(CultureInfo.InvariantCulture); try { try { this.PrepareParse(); this.ParseFile(); } finally { HttpRuntime.SetCurrentThreadCultureWithAssert(currentCulture); } } catch { throw; } return(this._virtualPathDependencies); }