Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to verify ASHX syntax errors NOT at the run time?

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?

like image 347
Schultz9999 Avatar asked Oct 10 '22 01:10

Schultz9999


1 Answers

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.

like image 61
Mark Cidade Avatar answered Oct 16 '22 13:10

Mark Cidade