remove asp.net dependency, exception catch