I am trying to generate documentation with sandcastle help file builder. While building the project in the sandcastle i am getting the following error.
MRefBuilder : error : Unresolved assembly reference: Microsoft.Owin (Microsoft.Owin, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35) required by Microsoft.AspNet.Identity.Owin [C:\Users\inkosah\Documents\Help\Working\GenerateRefInfo.proj]
Last step completed in 00:01:19.4610
Can anybody help me to resolve this issue? I also tried adding it separately to project references in the sandcastle but no help.
Solution 1 : Add missing references to a dummy project.
Create 'dummyProject' (ie class library)
In Visual Studio - Package Manager Console
Install-Package Microsoft.Owin -Version 2.1.0.0 -ProjectName dummyProject
Install-Package Microsoft.Owin.Security.OAuth -version 2.1.0.0 -ProjectName dummyProject
In Sandcastle Help Fil Builder - Project Explore, add two references
Microsoft.aspNet.identity.Owin (dll found in ..\packages\Microsoft.AspNet.Identity.Owin.2.2.0\lib\net45)
Microsoft.Owin (dll found in ..\packages\Microsoft.Owin.2.1.0\lib\net45\Microsoft.Owin.dll)
It looks like MRefBuilder found that Microsoft.AspNet.Identity.Owin relies on Microsoft.Owin (== v 2.1.0) and not Microsoft.Owin (>= 2.1.0).
The main project is still using Microsoft.Owin 3.0.1.0
Solution 2 : Ignore unresolved references
In Documentation (or SHFB) Project Properties / Plug-Ins :
Add "Assembly Binding Redirection" in "Plugs-Ins in This Project"
configure it to "ignore if Unresolved" "Microsoft.Owin" and "Microsoft.Owin.Security.OAuth"
Related
I installed the free startup template of ASP.NET Boilerplate with the architecture Asp.Net Mvc5.x and Single Page Web Application Angular JS
and when I run the already added test to template as an example which is called Should_Get_Current_User_And_Tenant_When_Logged_In_As_Tenant() which is found in the project
SpecificDownloadedProjectName.Tests
I get the error
Could not load file or assembly 'Castle.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
my current version of castle.core is v4.3.1
and of Abp 3.8.3
and these versions are the last latest available ones in NuGet packages
I tried to update Castle.core via NuGet Package Manager to be 4.0.0 as the exception message mentions but I couldn't with the following error
Severity Code Description Project File Line Suppression State
Error Unable to resolve dependencies. 'Castle.Core 4.0.0' is not compatible with 'Abp 3.8.3 constraint: Castle.Core (>= 4.3.1)', 'Castle.Core-log4net 4.3.1 constraint: Castle.Core (= 4.3.1)', 'Castle.DynamicProxy 2.2.0 constraint: Castle.Core (= 1.2.0)'. 0
what should I do in order to resolve this exception
This is the issue with the Nuget, it doesn't resolve it sometime, so you have to manually add the below lines in the web.config or app.config. You have to make sure the order of the lines also.
<dependentAssembly>
<assemblyIdentity name="Castle.Core" publicKeyToken="407dd0808d44fbdc" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.0.0.0" />
</dependentAssembly>
Note: You can set the oldVersion and newVersion values as per the requirement.
I am attempting to compile the HubBrowser project - which is an example Caliburn Micro Xamarin project (one of the very few there are).
Its a great example but the Android project is not compiling. I get the following errors:
Error 8 The type or namespace name 'CaliburnApplication' could not be found (are you missing a using directive or an assembly reference?) HubBrowser\HubBrowser.Android\Application.cs 14 32 HubBrowser.Android
Error 7 The type or namespace name 'ActivityLifecycleCallbackHandler' could not be found (are you missing a using directive or an assembly reference?) HubBrowser\HubBrowser.Android\Services\ApplicationNavigationService.cs 12 26 HubBrowser.Android
Error 9 The type or namespace name 'ActivityEventArgs' could not be found (are you missing a using directive or an assembly reference?) HubBrowser\HubBrowser.Android\Services\ApplicationNavigationService.cs 24 55 HubBrowser.Android
Error 10 The type or namespace name 'ActivityEventArgs' could not be found (are you missing a using directive or an assembly reference?) HubBrowser\HubBrowser.Android\Services\ApplicationNavigationService.cs 29 54 HubBrowser.Android
What is the cause of this error and how can I fix it?
I have made sure my references point to Caliburn.Micro and Caliburn.Micro.Platform (net45 versions). Do I need Caliburn.Micro.Portable.Core? If so where is this dll? Installing C.M through NuGet always fails - these NuGet packages and PCL's are and ABSOLUTE nightmare.
You need to use the pre-release 3.0 beta package. In the Core PCL project, install Caliburn.Micro.Core 3.0.0-beta1, and in your Android project, install Caliburn.Micro 3.0.0-beta1 (which will also install Core as a dependency).
Be sure to check the "pre-release" checkbox in the Nuget dialog or else you won't see the beta releases.
I created an empty ASP.NET project and added the following T4 template to it:
<## template debug="false" hostspecific="false" language="C#" #>
<## assembly name="System.Core" #>
<## assembly name="Newtonsoft.Json.dll" #>
<## assembly name="Microsoft.Spatial.dll" #>
<## output extension=".txt" #>
I also added NuGet packages Newtonsoft.Json and Microsoft.Spatial. After I compile this project using Visual Studio 2013, I can edit the template file and when I save it the output is correctly generated.
However, if I load the same project into Visual Studio 2015 RC, then the attempt to save the template file result in the following error:
"Compiling transformation. Metadata file 'Microsoft.Spatial.dll' could
not be found."
Note that it's only Microsoft.Spatial.dll that causes the error, Newtonsoft.Json.dll is accepted. And if I prefix Microsoft.Spatial.dll with "$(ProjectDir)bin" then it is accepted.
I would like to avoid using path prefix (because the location of the DLL depends on the project type that I have no control of), but what puzzles me most is why one DLL from a NuGet package can be specified without path prefix, while another DLL causes a failure.
Using Xcode 5.0.1 with Xamarin studio Version 4.0.13 (build 38) and Xamarin.iOS
Version: 6.2.4.2
I am getting this error when trying to compile my project:
error MT2002: Failed to resolve "System.Void System.Runtime.CompilerServices.ExtensionAttribute::.ctor()" reference from "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
How can I solve it?
The reason for this error is that between .NET 2.0 (including Silverlight) and 4.0 the [Extension] attribute moved from System.Core.dll to mscorlib.dll.
Xamarin.iOS 6.2 (and earlier) were based on a superset of Silverlight (aka the 2.1 profile). So the [Extension] attribute was located in System.Core.dll.
Since Xamarin.iOS 6.3+ the product was re-based on Mono 3.0 and the profile was updated to use the newer 4.0/4.5 profile. Now the [Extension] attribute is located in mscorlib.dll.
In your case you had a binary assembly compiled against the newer (4.0) profile. That assembly had a reference to mscorlib, Version=4.0.0.0, ... to find [Extension] and would lead to errors if built against the older Xamarin.iOS (6.2 and earlier).
As you found out the easy solution was to update to the latest Xamarin.iOS release. Another way to solve this (without updating Xamarin.iOS) would have been to rebuild (if you have the source) the binary assemblies of your project against the assemblies (BCL) shipped with Xamarin.iOS 6.2.
I have 2 projects in solution 1. PCL library project (PCL.dll) 2. MonoTouch project
When I'm trying to compile MonoTouch porject I get the following error:
error MT3001: Could not AOT the assembly '../obj/iPhone/Debug/mtouch-cache/Build/PCL.dll'
when I set "link sdk libraries" at MonoTouch project settings I got another error:
MonoTouch Trial version 6.4.0 using framework: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk error MT2002: Failed to resolve "System.Linq.Expressions.ConstantExpression System.Linq.Expressions.Expression::Constant(System.Object)" reference from "System.Linq.Expressions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
I don't use LINQ and have no references to Syste.Linq.Expressions.