Can I check for ASHX NOT syntax errors at run time?

Basically there are simple errors in the ASHX file (for example, skipping a comma or something like that). Everything is done OK using Visual Studio, but after accessing the file (hosted by IIS), an error message appears.

Is there a way to recognize such errors in MSBuild or Visual Studio?

+5
source share
1 answer

You can use the ASP.NET ( aspnet_compiler.exe) compilation tool to compile ASHX files. See MSDN, How to Preassemble ASP.NET Website Projects .

+4
source

All Articles