## 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".

Repro:

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

```
  - Create trival site e.g. default.aspx:
    -------8<---[default.aspx]----
    <html>
    <body>
    Hello
    </body>
    </html>
    ------->8---[default.aspx]----
```

```
  - Create trival web.config
    -------8<---[web.config]----
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
       <system.web>
       <compilation defaultLanguage="c#" debug="true"/>
       <customErrors mode="Off"/>
       </system.web>
       <system.webServer>
           <defaultDocument>
           <files>
               <clear/>
               <add value="Default.aspx"/>
           </files>
          </defaultDocument>
      </system.webServer>
    </configuration>
    ------->8---[web.config]----
```

```
  - 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>_