Image file too small

GenuinelyEggedSandwich 1 Reputation point
2021-05-23T08:23:20.477+00:00

Hi, I am currently using Visual Studio 2019 to create a ASP.net web form. There is a problem when I try to include elements into the file like <asp:TextBox> or <asp:Button>. There are warnings that says that those elements are not supported, and it states the following error:

Error CS0009 Metadata file 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.7.2\System.EnterpriseServices.dll' could not be opened -- Image is too small.

I dont seem to find many answers to these error, besides one saying that he fixed it by deleting it and some other sites recommend to install the dll file to replace the old one. How do I solve this problem?

Edit: Apparently my System.EnterpriseServices.dll file is 0KB, I am assuming that is not normal. But can I just replace it with a fresh installment?

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