I am evaluating Mono for Android and after build in Mono Develop I get 8 warnings like this:
/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/Microsoft.Common.targets: Warning: Found a conflict between : 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' and 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' reference. (Android)
/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/Microsoft.Common.targets: Warning: Found a conflict between : 'System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' and 'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' reference. (Android)
and 6 more for System.Core, mscorlib, Mono.data.sqlite etc.
What does that mean and how to get rid off it? (application runs with no problem so far but it's just annoying)
My guess is your application is referencing an assembly that is compiled for .NET 4.0 instead of for MonoDroid/MonoTouch/Silverlight (2.0.5). You are getting lucky that it's working, but there's a decent chance it will break once you try building a release package using linking.
Related
I am using VS 2013 for a webform project. But when adding a rdlc report I am getting the below message
"NuGet Package restore failed for project VTS: Unable to find version
'10.0.0.0' of package 'Microsoft.ReportViewer.Common'.."
I tried every possible way to dowload version 10.0.0.0; Unfortunately I failed every time. I have installed reportviewer2010 &reportviewer 2015 runtime.
In .aspx page I added this:
<%# Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
and in webconfig file
<!--<assemblies>
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
<add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
</assemblies>-->
Nuget package has no dll with Microsoft.ReportViewer.Common 10.0.0.0; There is only one version available i.e Microsoft.ReportViewer.Common 10.0.40219.1;
I got error when run web api 2 project with breeze :
Error 2 Assembly 'Breeze.ContextProvider, Version=1.6.0.0, Culture=neutral, PublicKeyToken=f6085f1a45e2ac59' uses 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' which has a higher version than referenced assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
i tried other version but still error
I got the answer, execute this on nuget package manager :
Uninstall-Package Newtonsoft.Json -Force
and after that :Install-Package Newtonsoft.Json -Version 9.0.1
we are using enterprise library 6.0- exceptional handling block and configuration console for defining policy.
The following code has been generated in app.config file for the defined policy
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />
</configSections>
<exceptionHandling>
<exceptionPolicies>
<add name="DataAccessPolicy">
<exceptionTypes>
<add name="All Exceptions" type="System.Exception, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
postHandlingAction="ThrowNewException">
<exceptionHandlers>
<add name="Replace Handler" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ReplaceHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
exceptionMessage="An occured in the data
access layer.
Please Contact the
Admin with Error Id { }."
replaceExceptionType="Mindtree.Azure.PaymentGatewayExceptionHandler.DataAccessException, Mindtree.Azure.PaymentGatewayExceptionHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
</exceptionHandlers>
</add>
</exceptionTypes>
</add>
</exceptionPolicies>
</exceptionHandling>
</configuration>
I have the following code in my catch block, i am defining manager using configuration source factory and setting the exception manager
IConfigurationSource config = ConfigurationSourceFactory.Create();
ExceptionPolicyFactory factory = new ExceptionPolicyFactory(config);
ExceptionPolicy.SetExceptionManager(factory.CreateManager())
bool rethrow = ExceptionPolicy.HandleException(ex,"DataAccessPolicy");
if(rethrow)
throw;
DataAccessPolicy is defined in the app.config file which uses the repalce handler
but the following error is thrown when debugging
The configuration section for Exception Handling cannot be found in the configuration source.
Any Help would be appereciated. Thanks in advance
I installed mysql only to one employ use WordPress, and now I am getting this error on one of my main project, and I never used mysql, ONLY SQL server.
When I Unnistall all mysql, the project back to work normally.
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 250: <providers>
Line 251: <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""
Line 252: <add name="MySQLMembershipProvider" type="MySql.Web.Security.MySQLMembershipProvider, MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="LocalMySqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Clear" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""
Line 253: </providers>
Line 254: </membership>
Source File: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config Line: 252
Assembly Load Trace: The following information can be helpful to determine why the assembly 'MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Version Information: Microsoft .NET Framework Version: 4.0.30319; ASP.NET Version: 4.0.30319.18044
Using the MySql installer, mysql-installer-community-5.6.14.0.exe, I removed Connector/Net 6.7.4. That removed all MySql references from machine.config and fixed the problem.
If you are getting this error just when you are creating a new project and dont yet have mysql set up, just go to the location of machine.config(make a backup copy of original).Now tweak machine.config to comment out the mysql parts referred to in the error trace. Try running again and it should work.
I Just had that issue, I instaled MySQL Connectors before and the only thing I did to solve the issue was to add the MySql Reference to the project and that was it.
I have just integrated MVC into my Asp.Net website project.
Its working, but my Razor code is missing formatted as code (e.g. yellow background for the # character.
Additionally there is no intellisense:
Here are my MVC related references from web.config
<add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Please try building the project and see if that helps.
Check the Web.config under the View folder
configSections->sectionGroup and sections. The Version numbers should be 2.0.0.0
All other version in the file should be 4.0.0.0
I'm not sure what fixed this:
I uninstalled all versions of MVC framework, re-installed MVC 4, and upgraded ReSharper to v 6
However, I am still not getting syntax highlighting ( the # character is not yellow)
On december 5 2013 i installed the latest updates for visual Studio 2012. Right after that, the cshtml in my mvc4 project went like it apprears in Notepad: not good!
I uninstalled via the package manager, MVC4, restarted VS2012 and installed it again. After that everything looked right again: the syntax highlighting worked again.
I use VS2012 professional.
For me, the .cshtml file was not included in the project.
I checked in Solution explorer, it was not showing under my View folder.
I chose "Show All files" at top of solution explorer buttons.
My cshtml file started showing but icon in dotted lines, so right click on it >> Include in the project.
and building the solution, includes my cshtml file in the project. and now everything's works fine.