Posts

TF203015: The item ' ' has an incompatible pending change.

Solution - Take latest version of that file in both branch then try to merge

Severity Code Description Project File Line Suppression State Error Unable to resolve dependencies. 'Xamarin.Android.Support.Design 24.2.1' is not compatible with 'Xamarin.Forms 2.3.3.180 constraint: Xamarin.Android.Support.Design (= 23.3.0)'. 0

Xamarin Forms is not always compatible with the latest version of the Google Support libraries. Xamarin publishes them so Android developers (not using Forms) can utilize them if they need them, but Forms developers can continue to use the older, compatible versions.

Fluent NHibernate “Could not resolve property”

So this error comes when your n-hibernate query is not proper sql query. For example your query is var riAlbum = session . QueryOver < Album >() . Where ( x => x . Name == albumName && x . Artist . Name == artist ) . List (). FirstOrDefault (); this query will convert into sql as below select Album .* from Album where Album . Name = 'SomeAlbumName' and Album . Artist . Name = 'SomeArtistName' so that is wrong as last line 'Album.Artist.Name' is not proper sql. so u have to apply join in your n-hibernate query. var riAlbum = session . QueryOver < Album >() . Where ( a => a . Name == albumName ) . JoinQueryOver ( a => a . Artist ) . Where ( ar => ar . Name == artistName ) . List () . FirstOrDefault ();

A potentially dangerous Request.Form value was detected from the client

Cause of Error .NET detected something in entered text which looked like an html statement. ASP.Net By default validates all input controls for potentially unsafe contents that can lead to Cross Site Scripting and SQL Injections. So ASP.Net is not allowing this content so it's blocking by this exception. By default it is recommended to allow this check to happen on each postback. Solution So you can avoid this exception by adding below line <% @   Page   Language ="C#"   AutoEventWireup ="true"   ValidateRequest   =   "false" it will disable the request validation for current page. if you want to disable for whole application then you can put in web.config as below in system.Web section. < pages   validateRequest  = " false "  /> For .Net 4.0 or higher versions write below code under System.Web section. < httpRuntime  requestValidationMode  =  " 2.0 "  />

Not all code paths return a value

If you return any thing from method instead of void then you must return the defined type value as described in return type. Case 1 . If you are using for , while loop or any other conditional statement then you should use return statement in all places like below. public static bool isTwenty( int num)         {             for ( int j = 1; j <= 20; j++)             {                 if (num % j != 0)                 {                     return false ;                 }     ...

If you get 2 calls in WCF for any method from jquery or client side.

Solution -  When you get 2 calls in WCF service that means there is serialization problem in your code. it may be in Data Member or some other issue related to Serialization.

Failed to create Designer from any web Server Control

Solution -  For this type of problem you should use same assembly version number in web.config file and add same version assembly in add reference  and use same version assembly in aspx page <%@ Register assembly="Infragistics4.Web.v13.1, Version=13.1.20131.2157, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI.GridControls" tagprefix="igtbl" %> then version number defined above  13.1.20131.2157 should be same at below three places. Web.config File Add Reference Aspx Page