27 March, 2013

Cannot open the excel files in Sharepoint 2010

Its not a issue actually its just a setting that has changed may be after Migration to 2010.

Issue : Users cannot open excel files in SharePoint 2010 from the Library and get an error

This workbook cannot be opened because it is not stored in an Excel Services Application trusted location.
To create an Excel Services Application trusted location, contact your system administrator

Normally what we tend to do is we will go to the administrator and ask him to add the library to the trusted location .

Not need . No setting to be made on the server it is just a Library setting which can be changed from the site itself . Until you want to use excel web services ( Please make a note of this )

Cause : By default the files are designed to open in browser . So it is checking for trusted location   

Resolution :  

=> Go to the Library
=> On the top click on Library and go to Library settings .
=> Under General settings you will find Advanced settings 
=> Over there you will find the option which by default is set to open in Browser 
=> you need to set it to Open in Client and there you go . 
=> Click OK and you are done .

Hope it helps and you don't disturb the administrators :)     

My Links missing in SharePoint 2010 after Migration

We have just Migrated to 2010 and get a lot of tickets on this issue .

In MOSS 2007,  we are used to seeing a link in a drop-down box at the top right of our SharePoint sites, called My Links. At first glance, it seems that this functionality has been removed from SharePoint 2010. It’s still there but with a different name (Quick Links) .

How to retrieve the Lost my links from the 2007 site after migration to 2010 ?

Modifying a SharePoint Database is NOT SUPPORTED. Some would even argue running this select query against a database is not supported. Sometimes people want info out of the DB not excuses.

Disclaimer : Take all the required backups before you make any changes
  1. So the first thing you need to do is figure out what profile database you need information out of. To do that you go to Central Admin.
  2. Now Click Shared Services Administration from the quick launch.
  3. From this screen hover over the appropriate SSP name, click the drop down arrow, and choose Edit Properties.

  4. Now find where it says SSP Database. This your Database Name.
  5. Now you need to open a SQL Query Window using the SQL Management tools
  6. Then run the query below – Remember to replace the Use statement with your database name from step 4
Use SharedServices1_DB
UserLinks UL inner join UserProfile_Full UP on UL.recordId = UP.recordID
Courtesy - Shane Young  
Ref : http://msmvps.com/blogs/shane/archive/2007/11/21/finding-my-links-in-the-database.aspx.

How do you get My Links back?


In a library, go to the Library tab in the ribbon. 
Click the Connect to Office button.  This is the interface to add or remove a link to the library to the list of “My Links”, as well as to manage this list of links.

When you click Add to SharePoint Sites, this library is not only added to your own personal list of links, but it is added to all of your Office suite of applications, on the “Open” and “Save As” screens.

When you click Manage SharePoint Sites, the following screen is displayed, with a list of your whole list of links:

Where is my links on my Mysite ?

Go to your My Site and click on My Content at the top.  Click Site Actions, Edit Page, and click to Add a Web Part.  In the Recommended Items category of web parts, click to add the My Links web part to the page.  There it is!  Right click on the My Links web part title, and copy that URL to the clipboard.

If you want the My Links link to be more obvious and accessible, though?  Yes, there’s a way to do that also, although it still won’t be the same as it is in SharePoint 2007.  It entails adding My Links to the Personalization Site Links in the User Profile Service Application.

  1. In Central Administration, click Manage Service Applications.
  2. Click the User Profile Service Application.
  3. Click Configure Personalization Site.
  4. Click New Link.

  1. Your URL will look something like that.  In this scenario, I have a web app just for the my sites.  Fill in an owner because that field is required.  Leaving the Audience field blank means that this link will be shown to everyone.
Now, when users are on their My Site, My Profile, My Content, they will see this:


Uploading EXE files on Sharepoint site

By default, many file types are blocked, including file types that are treated as executable by Internet Explorer. Each Web application maintains a list of blocked file types that is based on file name extensions.

Please refer the following file extensions that are by-default blocked in SharePoint 2010 [Recommended by Microsoft]

I would like to tell you that this is not a SP limitation and we can allow any file types to be uploaded in SharePoint but not necessarily a great idea. Storing .EXE files in SharePoint can cause some serious security issues. Just imagine if a user wants to upload a .exe with a friendly name like "Gtalk.exe" but it’s really a virus - not good!.

SharePoint is definitely not the place to store everything, .EXE files being one of those things.

My suggestion:  If we are intending to have .exe files (or scripts etc.) stored in a SharePoint system, then at least put them inside zip files and allow .zip files to be uploaded rather than .exe files. This will mean that while the .exe files are still available, more effort will be needed to start them. Future prospect: Many benefits, Less pain J

SharePoint isn't a file share, it's web application.

Considering internal as well as external point of view: If you are accessing these internally only, we could keep them on a file share and just link to them from the SP site. This will execute outside of the browser instance in this case, but won’t work for outside users, unless you publish file shares via something like UAG (Unified Access Gateway).

File name extension
File type
Microsoft Access project extension
Microsoft Access project
Application file
ASP declarations file
ASP.NET Web Services source file
Active Server Pages
Microsoft Visual Basic class module
Batch file
Compound index
Certificate file
Compiled HTML Help file
Java class file
Microsoft Windows NT command script
Microsoft MS-DOS program
Configuration file
Control Panel extension
Security certificate
Script file
Windows dynamic-link library
Microsoft Visual FoxPro compiled program
Help file
HTML program
Script file
HTML document
Internet Information Services file
Internet database connector file
Internet data query file
Internet Naming Service
Internet Communication settings
Internet Document Set file
JScript Encoded script file
Korn Shell script file
Microsoft Access stored procedure
Microsoft Access add-in program
Microsoft Access program
Microsoft Access MDE database
Microsoft Access data file
Microsoft Access workgroup
Microsoft Access wizard program
Microsoft Common Console document
Microsoft Agent script helper
Microsoft Agent script helper
Microsoft Agent script helper
Microsoft Agent script helper
Microsoft Agent script helper
Microsoft Agent script helper
Microsoft Windows Installer package
Windows Installer patch package file
Visual Test source files
Microsoft Office profile settings file
Shortcut to MS-DOS program
System file
Program source file
Printer file
Microsoft Outlook personal folder file
Registration entries
ACT! database maintenance file
Windows Explorer command file
Screen saver
Script file
Windows shortcut
Shell Scrap object
HTML file that contains server-side directives
HTML file that contains server-side directives
Simple Object Access Protocol file
HTML file that contains server-side directives
Uniform Resource Locator (Internet shortcut)
Microsoft Visual Basic Scripting Edition file
VBScript Encoded Script file
VBScript file
Windows Script file
Windows Script Component
Windows Script file
Windows Script Host settings file