## System.Web.Compilation.CompilationException in ASP.NET with CS1576

_Submitted by a community member on 2014-01-16 06:08 UTC_

During the on-demand compilation of an ASP.NET site I get a System.Web.Compilation.CompilationException with "CS1576: The line number specified for #line directive is missing or invalid".


  - Create empty directory e.g. /tmp/f1

  - Create trival site e.g. default.aspx:

  - Create trival web.config
    <?xml version="1.0" encoding="utf-8"?>
       <compilation defaultLanguage="c#" debug="true"/>
       <customErrors mode="Off"/>
               <add value="Default.aspx"/>

  - Start "xsp2" in directory and visit URL

  --> Expected: Site says "Hello" but got exception. (Source file content available here: https://gist.github.com/anonymous/8453123)

<br />

mono --version
Mono JIT compiler version 3.0.6 (tarball Sat Sep 28 04:42:52 UTC 2013)
Copyright (C) 2002-2012 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            Included Boehm (with typed GC and Parallel Mark)

Bug is reproducible in standard OpenSuSE 13.1 edition (comes with mono 3.0.6). <http://software.opensuse.org/131/en>

* * *

_Reference: <https://bugzilla.xamarin.com/show_bug.cgi?id=17269>_