Since I upgraded my Xamarin.Forms project to ServiceStack 5, I receive this message:
CS0012 The type "IReturn<>" is defined in an assembly that is not
referenced. You must add a reference to assembly
'ServiceStack.Interfaces, Version=5.0.0.0, Culture=neutral,
PublicKeyToken=02c12cbda47e6587'.
References are already added. I have no idea how to fix this. Is anyone experiencing the same issue?
Edit: I use Xamarin Forms as a Shared Project, if that matters.
I already reinstalled v4.5.14, but the error still comes up.
Related
Using Visual Studio 16.6, migrating WPF app to target .netcore3.1(.300). Cannot compile with error below:
Error MC1000 Unknown build error, 'Could not find assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Either explicitly load this assembly using a method such as LoadFromAssemblyPath() or use a MetadataAssemblyResolver that returns a valid assembly.' MyApp C:\Program Files\dotnet\sdk\3.1.300\Sdks\Microsoft.NET.Sdk.WindowsDesktop\targets\Microsoft.WinFX.targets 225
I don't seem to have any need or reference for System.Web
I see similar things here but am on current versions:
https://github.com/dotnet/wpf/issues/2648
Any ideas?
There seemed to be an issue with the structure of the project file. I don't reference System.Web but a third party DevExpress component does.
When you target .netcoreapp31 AND net472, the Nuget packages do not seem to get pointed to the target frameworks correctly. The project file needed to be manually restructured to point them to the correct frameworks.
Details here:
Issue on github dotnet/wpf
I am using .net Framework 4.5.2. I am running MVC application. As i got new laptop I am getting the issue when running the MVC Application.
ERROR:
The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
Microsoft Studio Professional 2017
Version : 15.9.12
In other teammates VS version is 15.8.1. Where it is running without any issue.
I have also installed MVC 4 and Missing plugins. Still, I am getting this issue.
please suggest to me what I need to do.
Thanks!
Deleting Bin and Obj folders worked for me.
I updated Visual Studio Community 2015 to Update 3 and since then, all "await" statements in UWP apps are throwing errors.
The errors I receive are -
The type 'IAsyncAction' is defined in an assembly that is not
referenced. You must add a reference to assembly 'Windows,
Version=255.255.255.255, Culture=neutral, PublicKeyToken=null,
The type 'IAsyncActionWithProgress<>' is defined in an assembly that
is not referenced. You must add a reference to assembly 'Windows,
Version=255.255.255.255, Culture=neutral, PublicKeyToken=null,
The type 'IAsyncOperation<>' is defined in an assembly that is not
referenced. You must add a reference to assembly 'Windows,
Version=255.255.255.255, Culture=neutral, PublicKeyToken=null,
The type 'IAsyncOperationWithProgress<>' is defined in an assembly
that is not referenced. You must add a reference to assembly 'Windows,
Version=255.255.255.255, Culture=neutral, PublicKeyToken=null,
For now, this is all that I have tried to - Clean install Visual Studio Community 2015 Update 3 along with UWP Tools 1.4, SDK 10586 and SDK 10240; manually reinstalling each SDK.
I've had this error in the past too when I upgraded from VS version 1 to 2 I think, seem like this error was caused by me trying to upgrade instead of doing a clean install, I fixed it by removing VS and anything related to it from the control panel, then did a clean install and it was fixed.
I uninstalled both SDKs manually and reinstalled them. The problem seems to be fixed lol.
I tried to migrate a MvvmCross project to Unified API and got stuck at MvvmCross libraries, as soon as I add them, it fails to compile.
To recreate the issue I simply created a new Unified API empty project and added MvvmCross 3.5 NuGet package. Tried to compile and got these errors:
Setup.cs(8,23): error CS0012: The type 'System.Object' is defined in an assembly that is not referenced. Consider adding a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
DebugTrace.cs(9,27): error CS0012: The type 'System.Enum' is defined in an assembly that is not referenced. Consider adding a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I'm using Xamarin Studio 5.8 for Mac with Xamarin.iOS 8.8.
Shouldn't this work out-of-the-box? Am I missing something?
EDIT: Created a new solution from scratch and it works as expected, so I guess it should be something related to the solution file.
It seems that deleting bin and obj folders and a Xamarin Studio restart did the trick. Now everything is worked as expected.
Website works fine locally on Windows 8.1, but after publishing to Server 2012R2, certain pages get an error saying the following:
Exception message: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\b306803a\3271e75d\App_Web_sign-in.cshtml.1d427dc2.p4pq8o_l.0.cs(30): error CS0012: The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
I can't work out what or how is referencing that System.Runtime dll. What might I be missing and how might I track it down?
I can't work out what or how is referencing that System.Runtime dll.
What might I be missing and how might I track it down?
I am glad that you mentioned your OS is Windows 2012. The System.Runtime dll file is distributed as part of the Windows 8 SDK.
See more explanation https://stackoverflow.com/a/14517992/3918598