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

Filed in .Net Leave a comment

http://www.codeproject.com/Tips/297679/A-potentially-dangerous-Request-Form-value-was-det

http://www.asp.net/whitepapers/request-validation

Defining a Readonly property in DataContact WCF

Filed in .Net Leave a comment

[DataMember(Name = Constants.OrderMaster.SalesTaxCalculated, Order = 24, IsRequired = false, EmitDefaultValue = false)]

public Nullable<System.Decimal> SalesTaxCalculated

{

get

{

if (this.State == Constants.USStates.FL)

{

return (this.OrderDetailTotal – this.PromoDeductions + this.ShippingAdditions) * 0.06m;

}

else

{

return 0;

}

}

//get {return 0;}

private set{ value= null;}

}

Adding a port in Windows firewall for WCF service

Filed in OS Leave a comment

From Windows Firewall > Advanced Settings > click Inbound rules > New Rule(right side pan) > A wizard open > select Port > add your desired port(s) > Next select options according to your needs > in the end give a name > you are done.

TOP