Sunday 24 April 2016

ASP.NET MVC Disable Auto complete on forms globally

If you want to turn off browser auto complete on form text boxes

Add the code block below in your _layout.cshtml file or
better create a new JS file and add it under your bundle.


$(document).ready(function () { $("input").attr("autocomplete", "off"); });

Wednesday 9 January 2013

SharePoint- User name changed in AD doesn't get updated in Site collection

It happens When the "NT Authority\Authenticated Users" are added to Site's Visitors/ reader Group. If you check the user profile at the central admin it gets updated but it didn't update the site collection.

You will face this issue on Intranet site where the user has read only permission.

To fix this issue

1. Create a temp list somewhere in the site

2. Go to the list permission and Break the Inheritance

3. Add new user- search for the user-(it will show you the previous name)

4. Wait for a minute- and the user profile will get updated with new name.

5. Delete your temp list.

It worked for me.


For more info:technet

Windows Server 2012 Adding .NET Framework 3.5 Feature, gives error message "The source files could not be found". Error

If you have Windows Server 2012 iso file or DVD, you can install .net framework 3.5 on Windows Server 2012 easly.
1. You have to insert Windows Server 2012 DVD or map iso to D drive.
2. Open Add Roles and Features Wizard
3. Select .NET Framework 3.5 Features and then click next,
4. Select Specify an alternate source path link in the Confirm installation selections screen.
5. Path: D:\Sources\SxS and then click OK.
6. Finally click Install button.

Ref: http://social.technet.microsoft.com/Forums/en-US/winserver8setup/thread/5a786052-38a1-46f9-add2-e6487bc6a8aa/

Wednesday 23 February 2011

SP2010 upgrade - Test-SPContentDatabase complains about Microsoft.Office.Excel.WebUI.dwp

Test-SPContentDatabase -Name ABCD_Content -WebApplication
http://yoursite

Category : MissingSetupFile
Error : True
UpgradeBlocking : False
Message : File [Features\ExcelServerSite\Microsoft.Office.Excel.WebUI.dwp] is referenced [2] times in the database [ABCD_Content], but exists only under Windows SharePoint Services 3.0 setup folder. Consider upgrading the feature/solution which contains this file to the latest version.
Remedy: One or more setup files are referenced in the database
[ABCD_Content], but are not installed on the current farm. Please install any feature or solution which contains these files


Solution
There was an issue with this Web part and the Test-SPContentDatabase command. You should be able to ignore it and upgrade will work.

It worked for me!

Ref:
http://social.technet.microsoft.com/Forums/en/sharepoint2010setup/thread/539c4086-0bfe-4c87-9b0a-c4d65642340f

SharePoint 2010 -People and Groups All People Link is missing

In SP2010 All People Link is missing. Which is a useful link when you want to see all people who have access to the site or delete the user completely from the site collection, rather than going group by group to delete the user.

So the workwround is click any one group and check the URL
"/_layouts/people.aspx?MembershipGroupId=7"
Change the MembershipGroupId value to 0 "/_layouts/people.aspx?MembershipGroupId=0" and now you should be able to see all the people.

Wednesday 16 February 2011

VS2010 Compilation failed. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

I have upgraded my sharepoint VS2008 workflow VS2008 project to VS2010 and When I did the build I got this error

"Compilation failed. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. "

To resolve it

Go to assembly file and remove this attribute and do a build should work
[assembly: SecurityTransparent()]

Thursday 10 February 2011

Windows 7 Installation Error 0x80070017

The Windows7 DVD was burned using higher speed.

Re write your DVD with 4X speed and install it again.