Introduction
I am afraid, you can't do that. To know the methods to deploy the app, refer -
Web Deployment Overview for Visual Studio and ASP.NET[
^].
Reason
Basically,
Web Application works if both front-end
Mark-Up (
aspx
) and
bin
folder (consisting of build version of
Code Behind Files) are present on server.
Aspx
page is loaded when you open the
WebSite / Web Application and corresponding code is executed with the help of
dlls
present inside the
bin
Folder.
So, you can't make the whole app one
dll
, there will be
aspx
files in it.
Web Deployment Package
Instead you can create Package for the
Web App, which will be a
zip
file.
To know how to create this Package and deploy it in
IIS
, follow -
How to: Create a Web Deployment Package in Visual Studio[
^]