question

GenuinelyEggedSandwich-3834 avatar image
0 Votes"
GenuinelyEggedSandwich-3834 asked GenuinelyEggedSandwich-3834 commented

Image file too small

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?

dotnet-aspnet-generaldotnet-aspnet-webforms
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @GenuinelyEggedSandwich-3834 ,

The error message simply indicates that the compiler cannot read meta data from the file.
I think we can fix the issue by replacing the System.EnterpriseServices.dll file as you mentioned it is 0KB which is not reasonable.

Apart from that, you can open your project and expand "References" collection in "Solution Explorer" panel. Then you should be able to find the assembly "System.EnterpriseServices.dll". Click it, and you can check if the file is broken in the path specified in the "Path" property.

Best regards,
Sean




0 Votes 0 ·

I tried to just reinstall the specific dll file but unfortunately that cant work. So, I just reinstalled the entire Visual Studio and that seems to delete all the old Frameworks and reinstall the new ones, which works.

Thanks for the help :)

0 Votes 0 ·

0 Answers