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"); });
Sunday, 24 April 2016
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
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/
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
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.
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()]
"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.
Re write your DVD with 4X speed and install it again.
Monday, 7 February 2011
"Access Denied” to Edit a Workflow Task evn though I have full access!
Even though I have full control/Contribute permission on the Site/task list/TaskItem-
Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))
Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))
We got this error when the client try to add permission to an Item. The content databases status was offline in the central admin as well.
checked event viewer, found out the SQL server transaction log was full. Because it was set it to fixed size before and we changed it to grow automatically.
MOSS:How to recycle application pool from command line or by batch file?
c:\windows\system32\inetsrv\APPCMD.EXE Recycle APPPOOL "your application pool name"
eg:
c:\windows\system32\inetsrv\APPCMD.EXE Recycle APPPOOL "SharePoint - 80"
MOSS: How to restart SQL Server from command line?
net stop yoursqlInstanceName
net start yoursqlInstanceName
In my VM my instance name is MSSQL$OFFICESERVERS
net stop MSSQL$OFFICESERVERS
net start MSSQL$OFFICESERVERS
You can create batch file to execute both the commands together.
MOSS: How to restart SharePoint Timer Service from command line?
net stop SPTimerV3
net start SPTimerV3
You can create batch file to execute both the commands together.
How to add webparts on Item Display Form Page through browser
Easy!- With out using sharepoint designer, you can able to add webparts on List Item Display Page.
All you need to do is open the displayform page-Dispform.aspx (view item), then amend the url of the page by removeing everything after the ID number and add this
&PageView=Shared&ToolPaneView=2
So the url will look like
Now the page will be in edit mode and you should be able to add webparts!
Also the Edit Page option under siteaction is visible after the first modification
Wednesday, 26 January 2011
MOSS: Report of Users and their permissions
-- All users in site collection
Select tp_Title,tp_Login, tp_IsActive from UserInfo order by tp_Title,tp_Login, tp_IsActive
-- All users in a group
Select Distinct Title, tp_Title,tp_Login from Groups gr
inner join GroupMembership grm on gr.ID = grm.GroupID
inner join UserInfo usr on usr.tp_ID = grm.MemberId
order by Title,tp_Title,tp_Login
-- All groups for a user
Select Distinct tp_Title,tp_Login, Title from Groups gr
inner join GroupMembership grm on gr.ID = grm.GroupID
inner join UserInfo usr on usr.tp_ID = grm.MemberId
order by tp_Title,tp_Login,Title
Thanks to my mate Navneet Singh.
Select tp_Title,tp_Login, tp_IsActive from UserInfo order by tp_Title,tp_Login, tp_IsActive
-- All users in a group
Select Distinct Title, tp_Title,tp_Login from Groups gr
inner join GroupMembership grm on gr.ID = grm.GroupID
inner join UserInfo usr on usr.tp_ID = grm.MemberId
order by Title,tp_Title,tp_Login
-- All groups for a user
Select Distinct tp_Title,tp_Login, Title from Groups gr
inner join GroupMembership grm on gr.ID = grm.GroupID
inner join UserInfo usr on usr.tp_ID = grm.MemberId
order by tp_Title,tp_Login,Title
Thanks to my mate Navneet Singh.
MOSS: Report how many web pages are under the SiteCollection
You can find only by using SQL query
Select distinct DirName,LeafName from AllDocs where DirName like '%Pages' and LeafName like '%.aspx'
order by DirName,LeafName
Select distinct DirName,LeafName from AllDocs where DirName like '%Pages' and LeafName like '%.aspx'
order by DirName,LeafName
Office documents prompt for login in anonymous SharePoint site
I have a MOSS 07 site that is configured for anonymous access. There is a document library within this site that also has anonymous access enabled. When an anonymous user clicks on a PDF file in this library, he or she can read or download it with no problem. When a user clicks on an Office document, he or she is prompted with a login box. The user can cancel out of this box without entering a log in, and will be taken to the document.
This happens in IE but not FireFox.
Solutions
Unfortuantly the only work around I've found breaks some functionality for logged in users (can't upload multiple files, connect to outlook ect..)
If that is acceptable, or you want to try it and see:
In central admin > application management > application security > authentication providers select your web app and select your provider (likely "default").
Select No for client integration and save the settings.
Open your web config, find the line add verb="OPTIONS,PROPFIND,PUT,LOCK,UNLOCK..... and remove the verb OPTIONS.
You should no longer be asked in ie for credentials.
Reference:
http://stackoverflow.com/questions/375390/office-documents-prompt-for-login-in-anonymous-sharepoint-site
This happens in IE but not FireFox.
Solutions
Unfortuantly the only work around I've found breaks some functionality for logged in users (can't upload multiple files, connect to outlook ect..)
If that is acceptable, or you want to try it and see:
In central admin > application management > application security > authentication providers select your web app and select your provider (likely "default").
Select No for client integration and save the settings.
Open your web config, find the line add verb="OPTIONS,PROPFIND,PUT,LOCK,UNLOCK..... and remove the verb OPTIONS.
You should no longer be asked in ie for credentials.
Reference:
http://stackoverflow.com/questions/375390/office-documents-prompt-for-login-in-anonymous-sharepoint-site
Wednesday, 8 December 2010
Disable "The Web site wants to run the following add-on: 'Name ActiveX Control'" Message
Consider the following scenario. You use Windows Internet Explorer 7 to browse to a Microsoft Windows SharePoint Services 3.0 site or to a Microsoft Office SharePoint Server 2007 site. The SharePoint site is located in the Internet zone. Additionally, the SharePoint site has online presence enabled. When you browse to the SharePoint site, you receive the following message in the Information bar in Internet Explorer 7:
The Web site wants to run the following add-on: 'Name ActiveX Control' from 'Microsoft Corporation'. If you trust the Web site and the add-on and want to allow it to run, click here...
This issue occurs if the Name ActiveX control (Name.dll) is not added to the list of preapproved controls in Internet Explorer 7. The Name ActiveX control is included in the 2007 Microsoft Office system.
Configure the master page of the SharePoint site on the front-end Web server
loadTOCNode(3, 'workaround');
If the SharePoint site does not require online presence for anonymous users, configure the master page of the SharePoint site to use a new InitNoPresence.js file. Note: Disabling this control can also disable the Multiple Document Upload control for the affected audience which is why it is recommended to target the change below to anonymous users only. To do this, follow these steps:
Create the InitNoPresence.js file. To do this, follow these steps:
Start Notepad and create a InitNoPresence.js file on the front-end Web server in the same file folder as Init.js.Note The Init.js file is located in the Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\Layouts\1033 folder.
In the InitNoPresence.js file, add the following lines of code.
function ProcessImn()
{
if (typeof(ctx)=="undefined") return;
if (ctx.CurrentUserId == -1) return;
if (EnsureIMNControl() && IMNControlObj.PresenceEnabled)
{
imnElems=document.getElementsByName("imnmark");
imnElemsCount=imnElems.length;
ProcessImnMarkers();
}
}
Save the InitNoPresence.js file.
Configure the master page of the SharePoint site to use the InitNoPresence.js file. To do this, follow these steps:
Start Microsoft Office SharePoint Designer 2007. Then, open the a copy of the master page for the SharePoint site.
In the copy of the master page, locate the following line of code.
Below the line that you located in the step 2b, add the following line of code.
Save the new copy of the master page and set it as the new default master page.Note Microsoft does not support making changes directly in the Init.js file. By adding a new file to override the function the customization will not be removed by an update. By using a new master page the customization can be easily removed for testing by restoring the original default.master page.
To fix this issue follow the instruction from the link below:
http://support.microsoft.com/kb/931509
The Web site wants to run the following add-on: 'Name ActiveX Control' from 'Microsoft Corporation'. If you trust the Web site and the add-on and want to allow it to run, click here...
This issue occurs if the Name ActiveX control (Name.dll) is not added to the list of preapproved controls in Internet Explorer 7. The Name ActiveX control is included in the 2007 Microsoft Office system.
Configure the master page of the SharePoint site on the front-end Web server
loadTOCNode(3, 'workaround');
If the SharePoint site does not require online presence for anonymous users, configure the master page of the SharePoint site to use a new InitNoPresence.js file. Note: Disabling this control can also disable the Multiple Document Upload control for the affected audience which is why it is recommended to target the change below to anonymous users only. To do this, follow these steps:
Create the InitNoPresence.js file. To do this, follow these steps:
Start Notepad and create a InitNoPresence.js file on the front-end Web server in the same file folder as Init.js.Note The Init.js file is located in the Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\Layouts\1033 folder.
In the InitNoPresence.js file, add the following lines of code.
function ProcessImn()
{
if (typeof(ctx)=="undefined") return;
if (ctx.CurrentUserId == -1) return;
if (EnsureIMNControl() && IMNControlObj.PresenceEnabled)
{
imnElems=document.getElementsByName("imnmark");
imnElemsCount=imnElems.length;
ProcessImnMarkers();
}
}
Save the InitNoPresence.js file.
Configure the master page of the SharePoint site to use the InitNoPresence.js file. To do this, follow these steps:
Start Microsoft Office SharePoint Designer 2007. Then, open the a copy of the master page for the SharePoint site.
In the copy of the master page, locate the following line of code.
Below the line that you located in the step 2b, add the following line of code.
Save the new copy of the master page and set it as the new default master page.Note Microsoft does not support making changes directly in the Init.js file. By adding a new file to override the function the customization will not be removed by an update. By using a new master page the customization can be easily removed for testing by restoring the original default.master page.
To fix this issue follow the instruction from the link below:
http://support.microsoft.com/kb/931509
Friday, 4 June 2010
Installing Team Foundation Server 2010 on Windows Server 2008 R2
How to Install TFS 2010
1) Install IIS (add role)
2) Add feature .net framework 3.5.1
you must have .NET Framework 3.5 installed. On Windows Server 2008 R2, you can install .NET Framework 3.5 by using the Add Features Wizard from Server Manager.
3)restart your server
4)Install SQL Server 2008
You will get known compatability issue but continue. But after Installed you must install SP1.
To run Team Foundation Server, you must install both the Database Engine and Full text search on the same instance of SQL Server And Client Tools Connectivity (required if no other SQL Server components are installed on the server that is running Team Foundation Server.)
5)Install SQL SP1
6)Install TFS2010
7)Configure TFS2010
Team Foundation Installation Guide for Visual Studio 2010 can be found under
http://www.microsoft.com/downloads/details.aspx?FamilyID=2d531219-2c39-4c69-88ef-f5ae6ac18c9f&displaylang=en
This installing guide is really helpful.
1) Install IIS (add role)
2) Add feature .net framework 3.5.1
you must have .NET Framework 3.5 installed. On Windows Server 2008 R2, you can install .NET Framework 3.5 by using the Add Features Wizard from Server Manager.
3)restart your server
4)Install SQL Server 2008
You will get known compatability issue but continue. But after Installed you must install SP1.
To run Team Foundation Server, you must install both the Database Engine and Full text search on the same instance of SQL Server And Client Tools Connectivity (required if no other SQL Server components are installed on the server that is running Team Foundation Server.)
5)Install SQL SP1
6)Install TFS2010
7)Configure TFS2010
Team Foundation Installation Guide for Visual Studio 2010 can be found under
http://www.microsoft.com/downloads/details.aspx?FamilyID=2d531219-2c39-4c69-88ef-f5ae6ac18c9f&displaylang=en
This installing guide is really helpful.
How to Connect TFS2010 from VS 2008
Connect Team Foundation Server TFS 2010 from Visual Studio 2008
1) Install or use allready installed Visual Studio 2008
2)Install Visual Studio Team System 2008 Team Explorer (if you haven't installed before)http://www.microsoft.com/downloads/details.aspx?FamilyID=0ed12659-3d41-4420-bbb0-a46e51bfca86&displaylang=en
2)Install Visual Studio SP1
http://www.microsoft.com/downloads/details.aspx?familyid=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en
3- Install Visual Studio Team System 2008 Service Pack 1 Forward Compatibility Update for Team Foundation Server 2010 (Installer)
(http://www.microsoft.com/downloads/details.aspx?FamilyID=CF13EA45-D17B-4EDC-8E6C-6C5B208EC54D&displaylang=en)
You must Install this (3) other wise you will get this error
Possible reasons for failure include:
The Team Foundation Server name, port number or protocol is incorrect.
The Team Foundation Server is offline.
Password is expired or incorrect.
4) When you connect to TFS server specify the full url including port number
e.g ) http://yourTFSserver:8080/tfs/yourcollection
Done!
1) Install or use allready installed Visual Studio 2008
2)Install Visual Studio Team System 2008 Team Explorer (if you haven't installed before)http://www.microsoft.com/downloads/details.aspx?FamilyID=0ed12659-3d41-4420-bbb0-a46e51bfca86&displaylang=en
2)Install Visual Studio SP1
http://www.microsoft.com/downloads/details.aspx?familyid=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en
3- Install Visual Studio Team System 2008 Service Pack 1 Forward Compatibility Update for Team Foundation Server 2010 (Installer)
(http://www.microsoft.com/downloads/details.aspx?FamilyID=CF13EA45-D17B-4EDC-8E6C-6C5B208EC54D&displaylang=en)
You must Install this (3) other wise you will get this error
Possible reasons for failure include:
The Team Foundation Server name, port number or protocol is incorrect.
The Team Foundation Server is offline.
Password is expired or incorrect.
4) When you connect to TFS server specify the full url including port number
e.g ) http://yourTFSserver:8080/tfs/yourcollection
Done!
Monday, 19 April 2010
RSS Viewer Web Part- Access external feeds like BBC through proxy server
if you want to use the RSS viewer web part to access the external feeds like bbc,cnn, Quotes of the Day and etc through proxy server , you must do few config changes. Otherwise you will get few errors like.
Most common error: An unexpected error occured processing your request. Check the logs for details and correct the problem. If you check the log file it wont help you much.
ProtocolError occured trying to complete the request. The server returned a status code of : ProxyAuthenticationRequired and the status description is : "Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )"
To resolve
1) Change NTLM to Enable Kerberos
2) Webconfig changes
useDefaultCredentials="true" is very important!
Done!
Most common error: An unexpected error occured processing your request. Check the logs for details and correct the problem. If you check the log file it wont help you much.
ProtocolError occured trying to complete the request. The server returned a status code of : ProxyAuthenticationRequired and the status description is : "Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )"
To resolve
1) Change NTLM to Enable Kerberos
2) Webconfig changes
useDefaultCredentials="true" is very important!
Done!
Subscribe to:
Posts (Atom)