Experts Exchange connects you with the people and services you need so you can get back to work.
System.Diagnostics.StackTrace stack = new System.Diagnostics.StackTrace(true);
string executingFile = stack.GetFrame(0).GetFileName();
Open in new window
It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.
Catch ex As Exception
Dim sf As System.Diagnostics.StackFrame = New System.Diagnostics.StackFrame()
Dim mb As System.Reflection.MethodBase = sf.GetMethod()
Session("ErrorMessage") = "Error in " _
& Context.Request.Url.ToString().Replace(Context.Request.Url.GetLeftPart(UriPartial.Authority) & VirtualPathUtility.ToAbsolute("~/"), "~/") _
& "." & mb.Name _
& "<br />" & ex.Message _
& "<br />" & ex.Source
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.