How do I get rid of this build error in my winforms app?
Error 121 The type 'Infragistics.Win.UltraWinGrid.UltraGridRow' exists in both 'c:\Program Files\Infragistics\NetAdvantage for .NET 2007 Volume 1 CLR 1.x\Windows Forms\Bin\Infragistics.Win.UltraWinGrid.v7.1.dll' and 'c:\WINNT\assembly\GAC_MSIL\Infragistics2.Win.UltraWinGrid.v8.1\8.1.20081.1000__7dd5c3163f2cd0cb\Infragistics2.Win.UltraWinGrid.v8.1.dll'
Thanks.
At first guess i would say that you've referenced both Infragistics.Win.UltraWinGrid.v7.1.dll and Infragistics2.Win.UltraWinGrid.v8.1.dll. CHeck your project's references. Also if Infragistics offer an upgrade your project type functionality when you install a new version, make sure it hasn't left stray references or using statements, or incorrect variable declarations that reference older versions of the componentry.
also, there is 10.3 out there now. best to upgrade to latest version. Also Infragistics has "Version Utility" which allows you to upgrade your solution and projects to newer binaries easily (will update project references for you). but yeah as Slugster mentioned, you have 2 diffirent versions of infragistics dll in your solution and there is class name clashes.
Related
I have an ASP.NET Core Web API Application, I was instructed to update the NuGet Packages, once I started upgrading, NuGet started throwing errors about missing dependencies, after going one by one (one depends on other that was not installed and that one depends from another 2 that were not installed and so it goes); I encountered the following error where I got stuck:
Detected package downgrade: Microsoft.EntityFrameworkCore.SqlServer from 2.2.6 to 2.2.4. Reference the package directly from the project to select a different version.
Below that error I see that "Install a Reference to Microsoft.EntityFrameworkCore.Abstractions 2.2.6 to solve the issue"
But when I try to do that, it throws:
"Version conflict detected, Install a Reference to Microsoft.EntityFrameworkCore 2.2.6 to solve this issue"
Of course this is a circular error is not giving me options, I tried to install version 2.2.4 and threw the same conflict error (but related to version 2.2.3 and so on).
This is Visual Studio Enterprise 2017, ASP.NET Core 2.1
I already tried adding true
To the .cproj file and did not work at all
I think you've gone down a rabbit hole here. The exception, in general, just means that your project is getting two references for the same package and one of those references is to a lesser version. That could happen for any number of reasons, but it generally boils down to two possibilities (or a combination of the two):
You've got different metapackages that reference the same package, and the metapackage versions are mismatched.
You've got one or more project dependencies, and those dependent project(s) use different versions of the same package/metapackage.
The stuff about "install a reference to Microsoft.EntityFrameworkCore.Abstractions" are usually red herrings. It's calling out the specific package reference version mismatch, but that doesn't mean that literally installing that package is the best approach.
The big thing is going to be metapackages, as these are basically just multiple packages rolled into one reference. The actual underlying packages and their versions are not directly referenced, but they're there, just as if you'd directly added the reference. As such, it's not always clear that two separate metapackages are actually using one or more of the same packages under the hood.
The best course at this point is to rollback your package reference changes. You've probably introduced more problems than you've solved. Remove any extraneous or superfluous references. For example, if you've got a reference to both Microsoft.EntityFrameworkCore and Microsoft.EntityFrameworkCore.Abstractions, remove Abtractions. It's easiest to do this by directly editing the .csproj file. Go project by project in your solution and pare back packages to only the ones absolutely necessary for your project(s). Hint: if you start seeing red squigglies in your code, you actually needed that one.
Once you've done this, upgrade all the NuGet packages for the entire solution all at once. Literally, right-click the solution and choose "Manage NuGet packages for the Solution". You should also check the "Consolidate" tab and ensure that there's nothing there, i.e. you're running the same versions of everything across all projects. Then, you should be good to go.
I have to migrate a project written in C++ in an XE8 environment to the 10.2 Tokyo environment.
I will only substitute that I use additional PostgresDAC libraries to communicate with the Postgres database. In the XE8 version I used PostgresDAC controls in the older version and now at 10.2 Tokyo I use newer controls.
After solving the first problems with component paths, I still get errors related to PostgresDAC controls. I suspect that this is related to the fact that now I am using newer controls.
The content of the error:
Unable to open include file 'PSQLDbTables.hpp'.
By trial and error, I came to a solution.
It was enough to remove the reference to this file and re-compile the project.
The compiler dropped the link back and the errors disappeared.
I am working to upgrade our application that uses Infragistics 2005 v5.3 to use Infragistics 2009 v9.1. I used the version upgrade utility to have the solution upgraded. However, I am stuck with an error saying:
The type 'Infragistics.WebUI.WebDataInput.WebTextEdit' is defined in an assembly that is not referenced. You must add a reference to assembly 'Infragistics.WebUI.WebDataInput.v5.3, Version=5.3.20053.1106, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb'.
I am baffled why the code would look for reference for Infragistics 2005. The 2005 version is not referenced anywhere in the solution. I have updated the web.config to use 2009 version. All the references have been cleaned. I read in another blog that it could be a license issue and wiping the data within License.licx file might help. Tried that but did not work. Is WebTextEdit not available in 2009 version? What am I missing??
WebTextEdit is available in 2009 version. It seems that you may have missed cleaning some references. I would double check again for old references. Also try to remove any WebTextEdit and WebDataInput controls from your app and drag-n-drop the same from your Visual Studio toolbox.
Today after updating our projects it seems Xunit.KRunner is no longer available on NuGet. We checked the Microsoft projects and it looks like they are using the xunit.runner.kre package. When trying to install this the xunit.assert assemly is failing to download from Nuget. Any suggestions to get this working? I am guessing that the versions are messed up.
Here are my nuget package locations:
I'm also using the beta2 version of the kre.
There is/was an issue with the new xunit.runner.kre and VS CTP 5. See below discussion:
https://github.com/aspnet/Testing/issues/65
xunit.runner.xre is available only on myget/vnext feed. Include that in the Nuget.config that you should be able to restore the package
By running on the beta2 kre you're then having mismatched dependencies. If you look at the versions of your xunit bits they're all beta3. I'd recommend upping your kre to beta3 to fix your issue (will affect which packages your app pulls in).
Also as a side note I'd recommend ensuring your nuget.org/api/v2/ feed is enabled (in the SS you posted it wasn't). There's currently an issue where it'll occasionally disable itself; has definitely made my life frustrating several times when things don't build :).
I try to use the breeze/angular template for MVC 4. However, during start up I get this:
Package installation error
Could not add all required packages to the project. the following packages failed to install from .../asp.net mvc 4\packages
jquery.ui.combined.1.9.2 unable to find version 1.9.2 of package.
Now I see that the folder contains jQuery.UI.Combined.1.8.24, so I was wondering:
Is there a way to edit the project so that it (maybe always) uses the latest versions of the packages by default?
Should I just press OK and afterwards install jquery.ui through nuget afterwards?
Is there a clever way to fix this?
I know there has to be a solution due to the uglyness of getting an error by default when using a custom template. I've been googling my ass off without any results :(
Hope to update the templates soon and get MS to republish. You can't update the template easily yourself.
Fortunately, this particular issue is easy to workaround by adjusting your code to use latest jQuery or rollback to 1.8.x.
I can't use the latest verison of jQuery so I manually updated the jQuery files to 1.9. Also, check your nuget manager for updates. Breeze released 1.3.6 which will update the appropriate dependent project libraries (my jQuery files were untouched).
As of Visual Studio 2012 Update 3, the Breeze/Angular SPA template is totally broken. The jQuery update fix worked with VS2012 Update 2, but some change or another in Update 3 has made VS not play nice with the sample.
It isn't ideal, but given that Update 4 is just around the corner, we might need to hold our breaths in anticipation of a post-Update 4 fix. :(