asp.netasp.net-4.0

System.Windows.DependencyObject WindowsBase


On my computer the ASP.Net site is running. But when I copied the files to the server there is this error:

CS0012: Tipo 'System.Windows.DependencyObject' está definido em um assembly que não é usado como referência. Adicione uma referência ao assembly 'WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

Does anybody know what is the problem?


Solution

  • The assembly WindowsBase is missing. If you are developing the software then add WindowsBase to the references.

    Alternatively you could look at the ASP.NET site section from Web.config, as detailed in this blog. Add the following

    <add assembly="WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />