Thursday, December 19, 2013

Type Load exception was unhandled Inheritance security rules violated by type: 'System.Web.Mvc.CompareAttribute'. Derived types must either match the security accessibility of the base type or be less accessible

We tried to set the [assembly: SecurityRules(SecurityRuleSet.Level1)] attribute in both the Service library and Windows application, but we are still hitting the TypeLoadException. We are using the Service library in our MVC Web application and there's no such exception thrown (not even first-chance exception).

Solution

Run the application without debug.

Thursday, November 21, 2013

Enable /Disabling StyleCop rules

Here are the simple steps to enable /disable the Stylecop rules

=> close VisualStudio
=> install the stylecop
=> open the VisualStudio and select any project right click select stylecop rule editor

happy coding :)

Thursday, October 24, 2013

SQL query to kill the suspended queries

Here is the code to kill the suspended queries

--Get the suspended queries from the current database 
select spid, kpid, login_time, last_batch, status, hostname, nt_username,
 loginame  from sys.sysprocesses where status = 'suspended'
--Kill the suspended query with specifing spid . example i took 78
kill 78

Wednesday, September 4, 2013

Intelligence not working in Visual Studio 2012 ASP.NET MVC 3 project razor view

To fix the issue add /Modify the key as specified below . Close the all pages in solution and reopen the page

now you can get it .

 

image

   1: <appSettings>
   2:    <!--<add key="webpages:Version" value="1.0.0.0" />-->
   3:    <add key="webpages:Version" value="1.0" />
   4:    <add key="ClientValidationEnabled" value="true" />
   5:    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
   6:  </appSettings>

Monday, August 26, 2013

Expired Sodexo Coupon Renewal

Is your Sodexo  meal pass or Gift coupons got expired . . Don’t worry . Here is the way to renewal your sodexo passes

=>Write a request letter like this ..

    Request for new Sodexo for Non-utilization in the prescribed period

Date: DD-MM-YYYY,

Place: XXXXXXXXXX

To

The Sodexo,

2nd Floor, Scorpio House,

132 Wheeler Road Extension,

Cox Town, Bangalore - 560005

Tel: 080 4033 3444 Fax: 080 4033 3666,

Dear Sodexo team,

Please find enclosed Sodexo meal Pass booklets which are expired on XX date <Month> <Year>. Request you to reissue these meal pass with expiry date of <Date>-<Month>-<Year> . Breakup of the booklets is as below.

50 X <No of coupons >>= XXX

20 X <No of coupons >>= XXX

10 X <No of coupons >>= XXX

Total Amount XXX. The address for the delivery after the revalidation is as below.

Thanks

<<Your Name >>

My Address

<<Your Name>>

<<Your Address>>>

=>Update this letter with appropriate information 

=> Print in Company letter head

=>Send it to To address which is mentioned in the Sodexo, Bangalore Address  through post

Sunday, August 11, 2013

Resolution for Skype high CPU, Memory usage issues

With the latest version of Skype i observed that My System CPU , And memory usage is High , I have never had this problem with Skype before.  The rest of the programs running on my PC are the same as before latest version. Some times my hang ups .

Solution for fixing this issues

Step#1

Uninstall the Skype  and Download the old version of Skype . You can find below link

http://download.skype.com/msi/SkypeSetup_6.1.0.129.msi

Step#2

Install it . Now see the difference .

Step#3

After installing this version, When you login in you will again get latest version prompt as showed below  

image

You should  disable this Automatic updates as specified below

Tools -> Options -> Advanced -> Automatic updates ->Turn off automatic updates

image

 

Enjoy with old version :)

Monday, July 8, 2013

A problem was encountered creating the sub project…. Microsoft.Lightswitch.Toolkit.targets” was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.[/i]

After installing the LightSwitch Extensibility Toolkit. you might get this issue when you try to create  LightSwitch

Extensibility  project .  

Here is the  Solution for this


  Copy the Microsoft.LightSwitch.Toolkit.targets file into %Program Files (x86)%\MSBuild\Microsoft\VisualStudio\LightSwitch\v1.0
This will fix this issue . For detailed installation of LightSwitch Extensibility Toolkit follow the below steps
Steps for LightSwitch Extensibility Toolkit for Visual Studio
Visual Studio 11 Beta SDK is required to use the LightSwitch Extensibility Toolkit for Visual Studio 11.
You can download the Visual Studio 11 Beta SDK from - http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=28990

To install the LightSwitch Extensibility Toolkit:
1. Double click on Microsoft.LightSwitch.Toolkit.vsix present in this zip file.
2. Copy the Microsoft.LightSwitch.Toolkit.targets file from this zip into:
   - For 32-bit systems: %ProgramFiles%\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0
   - For 64-bit systems: %ProgramFiles(x86)%\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0

Launch Visual Studio and project templates for LightSwitch Extension Library will be available under the LightSwitch/Extensibility node in the New Project Dialog.

Wednesday, June 19, 2013

Client side validations not firing asp.net mvc

Today i have gisue sot this issue . When i click on button it is not firing validations at client side . I found that

my button have css class name “cancel” . this created a problem . Here is the solution to fix this

solution

If button tag  css class have "cancel" . this gives the problem. Remove the css class name or Modify the “cancel” cass

class with different naming convention

Tuesday, May 14, 2013

Unable to generate a temporary class (result=1).

Solution :Close all visual studio instances and  Delete the temp files
Open the visual studio again and clean the solution and rebuild and run the app
now it will work

Thursday, April 18, 2013

Custom Policy for prevent forbidden code to check in TFS 2012/2010

I-Measure A strategic tool which makes every session successful and Qualitative outcome

. I have heard and experienced most of the sessions(Technical sessions) not fulfilling the objectives and audience needs. 

I was thinking to find a solution for this problem and l have developed a tool named it as “I-Measure” to resolve these issues.

 

 

Advantages of I-Measure:

  1. It does the Pre- and Post- training evaluation. It supports during the ROI calculation on Training and development 
  2. Very light weight installation setup (less than ½ MB)
  3. 100% genuine test result ( freezes the entire screen during the test. He cannot answers from other source like internet)
  4. No registration required for participants. I-Measure automatically register the user during the test

Pre Evaluation :
•    It help’s Training need identification and setting of objectives
•    It also helps in Pre-course identification of people with current skill level and completion of the    preparation required by the facilitator.

Post Evaluation :
•    It gives the outcome  result
•    To assess whether the program contribute to Learn and use of training content on their jobs.
•    It supports to evaluate how many trainees benefited

Tuesday, April 16, 2013

TOP B1 interview questions and answers

These are the common questions you will face during the B1 interview .

1. purpose of Visit?

Answer: Be confident while answering this question. Don’t use any technical words like “I am going to work for one of the project…. ) . The answer should contain some thing like (  It is a  Business Visit. I am going to meet my counterpart at  my parent company in US   for the  knowledge sharing  and technical Trainings )

2. How many years of experience you have?

Answer: Tell your experience

3. How long are you going to stay there?

Answer: As per your meeting schedule say the correct no

4. How many years of experience in  current company

Answer: Tell your experience in current company in years

  5.Can’t they come to India and give the Knowledge transfer ?

Answer: No, Environment on technology  is highly restricted access. so I needs go there, Sit with them ,  understand the business and come back to India

6. What is your salary ?

Answer: Tell your package per year

7. why you only ?

Answer: I am the senior member in the team and my education and experience is relevant to financial domain

All the best :)

Wednesday, March 20, 2013

Second time button click is not working in SharePoint 2007

In One of the Financial Application During the Testing phase we encountered  a major  issue with Button click not working in SharePoint in second time .

 

   1: <asp:Button ID="btnCalculateTotalBenfits" runat="server" OnClick="btnCalculateTotalBenfits_OnClick" Text="CalculateBenfits" OnClientClick="_spFormOnSubmitCalled = false;" />

Wednesday, February 20, 2013

Solution for Button tag not working in ie7 using ASP.NET MVC

Button tags in IE (v. 8, at least) will not work without an 'onclick' handler. Well, at least you can't simply wrap the button in an anchor tag. You can fix this issue with below specified way

 

Example :

 

   1:  
   2: <a href="@Url.Action("Add", "Product", new { id = 0 })" 
   3: onclick="javascript:window.location=this.href">
   4:  
   5: <input type="submit" id="imgAdd" name="imgAdd" value="imgAdd" 
   6: />
   7:  
   8: </a> 

Tuesday, February 19, 2013

Solution for ASP.NET Application Is Timeout issue

If your application running long time to respond you might get this issue . You can increase the timeout  times

as using below steps

->Open the IIS
->Go to application pools
->Select the Design Studio related  application pool and click on advance settings
->In process mode section change the Idle timeout to 40 min.
->Reset the IIS
->Test the application

Wednesday, January 9, 2013

TFS for Java Projects

    As far as TFS is concerned - all code is created equal. It's just bytes in files that it checks in to version control. The TFS doesn't care what language the files are written in.

Here are the some of the supports from java projects from Microsoft

TFS Plug In for Eclipse

This is also called Team Explorer Everywhere. This provides full source control, work item tracking, build, SharePoint, reports access etc. into TFS from Eclipse based IDE's. It's written in 100% Java and talks directly to the web services exposed by TFS.

Cross-platform command line client for TFS

With cross-platform command line client for TFS  you can talk to TFS from the command line on operating system of choice (Mac, Linux, Solaris, HP-UX, Aix etc.)

TFS SDK for Java

This is a  full API that we used to create the Eclipse integration and cross-platform command line client but packaged up with samples and snippets and ready for you to redistribute with your applications.

Reference urls or more information

URL :

1) http://tfs.visualstudio.com/en-us/learn/code/connect-eclipse/    Provides more information on how to connect  eclipse

2) http://www.dotnetcurry.com/ShowArticle.aspx?ID=770             Provides detailed tutorial on working with TFS for Java Projects