my dll is only 4.00 kb when I look at its size, in object explorer, when I click the arrow, it shows nothing and I cannot get to it with a using statement.

iqworks Information Quality Works 276 Reputation points
2024-02-13T22:11:43.5933333+00:00

Hi, I had an asp.net website which uses a lot of .apx files. I was told to convert it to a web application. I did that by creating an empty web application and copying the website folders and files from the website into this new web application. There where a few references I had to add to the web application, but, it finally worked.    I have an MVC application that I added the web application dll to. and it works there, although it shows the home page for web applications. That’s ok, but I noticed that the web application dll was only 4.00 kb, and in the object viewer, and click the arrow, there is nothing there.   In my MVC application, I try to use and using statement and I don’t see the web application dll in the using dropdown of available dll’s?   I am stuck.     Thanks for any advice or suggestions

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,470 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 64,741 Reputation points
    2024-02-14T16:45:11.7066667+00:00

    in a web application, the code behind files are compiled into one dll at build rather than at runtime like a website. but if you did not use code behind files, or still reference code behind as src="..." so they are built at runtime, then there is nothing to compile and the dll is mostly empty.


  2. QiYou-MSFT 4,321 Reputation points Microsoft Vendor
    2024-02-15T08:19:35.54+00:00

    Hi @iqworks Information Quality Works

    Depending on your problem, you want to move a web form project to an MVC project.

    A DLL file is a source code file written in programming languages such as C++ and C#, which can be compiled by a compiler to generate a DLL file. In Webform projects, aspx files are the mainstay. Usually there is a aspx.cs file behind them that is used to write some server control events.

    We don't know much about how your project is going at the moment. I think you can put the code you want to generate in the original project into the "Class library" to generate the dll file. Best regards,

    Qi You


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.