Tuesday, April 22, 2014

“Storage space running out “ Samsung Galaxy Android Phone’s Storage Space Issue and Solution

This is a hectic issue you may face if you are using Any of the Samsung galaxy series . For me it was terrible and literally I couldn’t do anything with my phone . Day by day the available space was getting reduced in the phone and did a lot of research to find that the issue was actually caused by dump files and logs created by system . Please follow the below steps if you are facing the same issue

Step 1 : Open the Phone application and dial *#9900#

android1_thumb_3E6D25FD

Step 2: Tap on the below highlighted button “Delete dumpstate/logcat”

android2_thumb_297BA38A

Enjoy using your phone Smile

Wednesday, October 2, 2013

Passing value of an array to WCF Test Client

This blog might look very simple but at least useful for first time users of WCF test client .
The Question here is how to pass the value of an array to WCF Test Client
Your Service Method method looks like the below ; you may notice that the method accepts a List<String> Values as input parameter .



Now Lets Run the WCF Project and see how it look like in the Test Client





Your Test Lists the method and its Parameters as shown in the above screen shot




Now Lets see how we can Pass the Values to the array . In Normal scenario you may not notice how we can enter the values . But you may notice one thing that the length of the array is Zero (0) .
Now change the length of the array to 2 and see what is the change happening



Now you can see the array value section is modified with an expander an you are provided with two options to enter the values




Enter the values in the Value field and test your service .


Happy Coding :)

Tuesday, April 2, 2013

MVC–Mobile View Rendering Issue–A Bug in MVC 4

Last month , we had a tough situation with one of our client projects which is developed in MVC 4 and it has got Mobile views equivalent to all the views .  Everything was fine until we deploys the final production version . After deployment the application behaved normally and the smoke testing was also went fine . But things went south when the next day the client reported a major issue with the IPhone/I Pad UI, as the desktop UI is getting rendered in IPhone . Lets think how weird it can be Smile . The team started the analysis and we absolutely don’t have any clue what could have happened . We analyzed the code deeply and can not find anything funky in it . That said we were absolutely stuck at that point . 

I had a quick meeting with the team after the discussion with the client and who was already upset on the issue .  We decided to lets give our final hope to Google and start digging in Google . Finally we found that there reported a known issue with MVC 4  regarding to Display mode provider

image .

So finally we got some hope and we followed the steps mentioned in the blog post mentioned in Microsoft web site .

http://blogs.msdn.com/b/rickandy/archive/2012/09/17/asp-net-mvc-4-mobile-caching-bug-fixed.aspx

There  is a patch from Microsoft as Nuget Package  which resolves this issue .  To install the Nuget package please follow the steps below

image

Now how do we test this . Also please note that this issue can’t appear in debug mode . For testing we have a sample windows application , where it launches with two browser windows embedded . We have created two instances of our application one with the patch and the other one without it , published in release modes and hosted in IIS . The embedded browser in the windows app first refresh after 20 minutes and after that every one minute . This way we were able to prove the fix was working  Smile.  

Please feel free to post your comments and questions .

If you need any help on the above blog , please email me to sreerajr@orioninc.com

http://d4dotnet.blogspot.in/

Wednesday, December 7, 2011

Jquery Live Search – A Sample Implementation of John Nunemaker’s Jquery Live Search

This week actually I was looking for a Jquery Live search Plugin . While browsing through , I found a very beautiful implementation by John Nunemaker  (The Original article you can found here ) . 

Later I noticed that many people are looking for a code which helps them to implement this very easily .

Please see the implementation below

First of all you have to download  and add the live search plugin from here  and Quick Silver Plugin from here  to your project.

And see the implementation Below

 

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JQ.aspx.cs" Inherits="JQ" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

<title></title>

<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>

<script src="Scripts/quicksilver.js" type="text/javascript"></script>

<script src="Scripts/jquery.livesearch.js" type="text/javascript"></script>

</head>

<body>

<script type="text/javascript" charset="utf-8">

$(document).ready(function () {

$('#txtSearch').liveUpdate('List').focus();

});

</script>

<form runat="server">

<div>

<div>

<asp:TextBox runat="server" Text="" ID="txtSearch"></asp:TextBox>

</div>

<ul id="List">

<li>Hello World</li>

<li>This is a Jquery Live Search plugin Implementation</li>

<li>Done By Sreeraj R</li>

<li>ASP.Net</li>

<li>Jquery</li>

<li>Live Search</li>

<li>Implementation</li>

<li>CSS</li>

</ul>

</div>

</form>

</body>

</html>

Friday, November 4, 2011

There was no endpoint listening at http://mysite/TestService.svc that could accept the message. When Trying to do large data transfer

This issue regularly happens when we try to upload when there is no end point listens( or could not connect to the server )  at the provided address .

But in some scenarios this happens when we tries to upload or download large data through the service . We had this issue some time back and did a lot of research .

Finally we found the issue and by have some configuration changes we resolved the issue .

The configuration changes that we did to resolve this issue are given below

STEP 1 : Increased maxrequestlength property in httpruntime config entry under <System.Web>

<system.web>
<httpRuntime executionTimeout="4800" maxRequestLength="500000000"/>

</system.web>

 

STEP 2 :   Increased maxAllowedContentLength  value

<system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="500000000"></requestLimits>
      </requestFiltering>
    </security>
  </system.webServer>

 

STEP 3: Increased ReaderQuotas

<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" maxArrayLength="2147483647" />


By doing these three changes , we could be able to have large data transfers without any issues.

Monday, October 24, 2011

Crystal Reports Runtime Error–Crystal Reports for VS 2010 Issue

Error : 

An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient, or the Crystal Reports runtime is not installed correctly. Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information.

Solution :

Check your crystal reports version , if you are not using CR 13 then download and install 13 from the below location first . http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0.exe

Then ensure that you have the following folders created under your website root ( the root website where your application is hosted; )

Under Root  -> aspnet_client -> system_web -> 4_0_30319 ->crystalreportviewer13 -> ........ etc..

by default when you install crystal report thease folder would be craeted under default website . if you have a seperate website created then please copy these folders ther

Wednesday, October 12, 2011

HTTP could not register URL http://+:8000/. Your process does not have access rights to this namespace

 

Last week we had this issue when working with an Outlook Addin. After a lot of trial and errors , finally we got this solution .

Run Command Prompt as Administrator and execute the  below command

netsh http add urlacl http://+:8000/ user=domain\username.

Happy Coding Smile