Basically there are simple errors in ASHX file (like missing comma or something like that). Everything is complied OK by Visual Studio, but once the file is accessed (hosted by IIS), an error pops up.
Is there a way to recognize such blunders in MSBuild or Visual Studio?
You can use the ASP.NET compilation tool (aspnet_compiler.exe
) to compile ASHX files. See MSDN, How to: Precompile ASP.NET Web Site Projects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With