mono / mono

Mono open source ECMA CLI, C# and .NET implementation.
https://www.mono-project.com
Other
10.94k stars 3.81k forks source link

Missing types or namespaces on System.Web.UI #21618

Open sjdean opened 1 year ago

sjdean commented 1 year ago

We have a few applications built in .NET Framework 4.x and Entity Framework 4, however we seem to be having a few issues when loading up some elements within Mono on a Mac.

Error CS0234: The type or namespace name 'DataVisualization' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?) (CS0234) (Interface) Error CS0246: The type or namespace name 'EntityDataSourceChangedEventArgs' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (Interface) Error CS0234: The type or namespace name 'EntityDataSource' does not exist in the namespace 'System.Web.UI.WebControls' (are you missing an assembly reference?) (CS0234) (Interface)

Where EntityDataSource is and DataVisualization is

As far as I can tell we're missing a few assemblies therefore: System.Web.DataVisualization, System.Web.Entity, System.Web.DynamicData.Design

Closest we got is copying the DLL's from a Windows machine for local referencing. But we'd prefer a better resolution.

likeitchen commented 7 months ago

@sjdean This friend, hello, please ask a question, I am based on docker mono 6 image + nginx production environment, found that there is a System.Web.DataVisualization version 4.0.0.0 exception when loading, but I copy the dll file to the business system bin directory, and rebuild the image The business backend service port will be directly stuck, please reintroduce the dll file to run the program normally