Click here to Skip to main content
16,004,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I want to convert my ASP.Net Web application into single .dll file for the hosting purpose..
Can anybody guide me, how i can do it..Please..

Thanks in advance..
Posted
Comments
Harshil_Raval 13-Sep-13 2:47am    
What!!! you want to convert your asp.net web application into single .dll file!!! When you build your application by default .dll of your application is created in your projects bin folder. But you can not deploy only .dll file to server. You can create class library project. After building that project you can use generated dll of that class library project in other web application. Again you can not deploy this class library project's dll alone, since it is not web application. Hope you got it.
ridoy 13-Sep-13 3:41am    
I am afraid about the idea of converting an asp web app to a dll file!
Please check my answer, I have pointed out to create a Package instead of single dll.

1 solution

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[^]
 
Share this answer
 
Comments
ridoy 13-Sep-13 4:12am    
a better alternative instead of OP's idea!,my 5.
Thanks a lot ridoy ... :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900