I'm attempting to run a web application from VWD 2010 using Web Forms (Not MVC) but am getting this error message below:
Assembly 'WebHelper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
In my web.config file, there is this line of code below which I have tried as commented out, and left alone, but neither way makes any difference.
<add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Any suggestions welcome.
Thank you!
I solved this in the end, but how graceful it is yet to be seen. I tried to download the 10.0.0.0 version of the Microsoft.ReportViewer.WebForms dll from Microsoft but I couldn't quite work out where it was saved to, and when I did, It was a word document which didn't really do much for me.
As it happens, my colleague had it on her machine, so I simply copied hers and it put in place on my machine. Added the new reference to my project. Problem solved.
Related
Trying to Archive for Publishing our Xamarin.iOS app in Visual Studio on Mac but I get this error.
"Microsoft.CSharp, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and "Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was not.
References which depend on "Microsoft.CSharp, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Microsoft.CSharp.dll].
/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Microsoft.CSharp.dll
Project file item includes which caused reference "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Microsoft.CSharp.dll".
Microsoft.CSharp
References which depend on "Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [].
/Users/user193748/Documents/repos/APP/APP/APP/bin/Release/netstandard2.0/APP.dll
Project file item includes which caused reference "/Users/user193748/Documents/repos/APP/APP/APP/bin/Release/netstandard2.0/APP.dll".
/Users/user193748/Documents/repos/APP/APP/APP/bin/Release/netstandard2.0/APP.dll
This has happened since I update Xamarin.Forms from 5.0.0.2196 to 5.0.0.2244. I tried to reverting the version and deploying but the same error occurs. I also tried going from .NET Standard 2.0 to 2.1. I've had the warning before and I was still able to Archive for Publishing. The app can be deployed on Visual Studio in Windows to the Android store but for some reason the iOS side of things is preventing it.
We had to update to a new MacInCloud server which had the latest iOS version (Monterey). This solved the issue.
I'm trying to make a C# Console Application using .NetCore on "Visual Studio 2017" for the sake of running it on CentOS 7, what seems to be the issue is that apparently the .NetCore doesn't have some of the Classes that's inside the .Net Framework, or that's what I think the problem is.
So I've tried adding a reference to assembly mscorlib but that just made the errors even more..
Error CS0433 The type 'StringBuilder' exists in both 'mscorlib,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and
'System.Runtime, Version=4.1.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'
Any idea how can I solve this issue?
Thanks.
.NetCore Console Application using Visual Studio 2017
MarshalByRefObject is not part of .NetCore so you should not use it.
Scroll to comments and you will find info and link about replacement.
https://blogs.msdn.microsoft.com/dotnet/2016/05/27/making-it-easier-to-port-to-net-core/
Could not load file or assembly
Interop.CrystalActiveXReportViewerLib105, Version=10.5.0.0, Culture=neutral, PublicKeyToken=null.
How to fix it?
I'm very tired about this problem. please help me!!!
when i load application AxCrystalActiveXReportViewer1 has been error
Possibilities:
1. It requires another dll that is not referenced.
2. Check the .net framework that your app is using and that of the dll(which is used to build it).
I have an MVC solution that was 3.0.0.0 but I'm upgrading it to 4.0.0.1. I've upgraded the System.Web.Mvc reference (in the reference folder) and it's dependencies, e.g. updated System.Web.WebPages from 1 to 2.
When I build the project it builds without issue, however when I run the project I get the following error:
Compiler Error Message: CS1705: Assembly 'MobileScanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=3.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
P.S. Using VS2010, and .Net 4.0
Thanks for your help but I fixed it.
The issue was that there were still references to MVC 3 and some of it's (old) dependencies (System.Web.Razor) in the root web.config and then again in the Views/web.config... once updated it worked a treat.
I am using mvc 4 asp.net.
I have used postal.dll package from NuGet to send emails from my application.
But I get error on build that mvc assembly version postal is using is higher than referenced by my project. How do I resolve this? please help
I am using Visual studio 2012 mvc4
Thanks
Error:
Error 1 Assembly 'Postal, Version=0.9.2.0, Culture=neutral, PublicKeyToken=45719375b8b4d528' uses 'System.Web.Mvc, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' c:\Users\xxxx\Documents\Visual Studio 2012\Projects\MyProject\packages\postal.0.9.2\lib\net40\Postal.dll MyProject
What your message is telling you is that Postal, Version=0.9.2.0, works with version System.Web.Mvc, Version=5.1.0.0, but you gave it System.Web.Mvc, Version=4.0.0.0 so it broke.
If you have two different assembly versions you might want to do binding redirect
<bindingRedirect
oldVersion="existing assembly version"
newVersion="new assembly version"/>
Other option would be to use System.Web.Mvc, Version=5.1.0.0 across your solution.
You could try to use an older version of Postal, assuming it satisfies your requirements.
Install-Package postal -Version 0.9.0