Skip to content
Advertisement

Trying to publish SQL DB on Visual Studio, I keep getting SQL72025 error

I’m trying to publish a database using Visual Studio, the project has no issues plus I downloaded the (Data storage and processing) toolset. Yet I keep getting SQL:72025 error every time I try to deploy the project.

SQL:72025: The referenced assembly .DLL is corrupt or invalid.

I get the same message if I try to build the project too. Now I noticed that usually when we click to publish under the solution explorer a window will pop out to configure the target database setting, I don’t get that window, instead, the project executes directly and fail.

There is nothing complex about the DB, it is just 4 tables and 1 post-deployment script

Screenshot of the solution

Also here is the script for the DB for your reference

I also checked the below post but the solution didn’t work for me plus the reason for getting the same error is different too. SQL:72025: The referenced assembly .DLL is corrupt or invalid

Could the error be because I am using parallels desktop app? The mac I am using is an intel mac.

Thank you all.

Advertisement

Answer

I just want to let everyone know that the issue I faced here, the “SQL:72025 ” was due fact that I was using Parallels Desktop for mac. I did the same thing on a windows PC and everything was completely fine. So if anyone out there is planning to use Desktop for mac to develop .net applications, although it’s a very powerful application, I personally suggest sticking with a windows PC to do so.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement