try remove the src or the inherits atribute from your @ directive.
you are definng the inherits of the web form and then the runtime try to compile the code that exists in src and then this happens.
i´m not sure but when using src atribute, you cant define inherits. you put it on @ directive when your application get published.