Thursday, August 20, 2009

Report Viewer Webpart Error

While establishing a Report Viewer webpart connection with Report Explorer webpart, I was getting following error:

System.Security.SecurityException: Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed.


After digging into this error I figured out that sharepoint site is running under application pool using "Network Service" account.

In order to resolve aforementioned issue, I did the following things

1- Go to Central Admin --> Operations
2- Click "Service Accounts" under (Security Configuration) and do the following

After specifying domain account credentials it solved the issue.

Hoping this will save someone time in future.

Wednesday, August 5, 2009

FBA Users, Open Files in Client's Program/Tools

I have an (extended web application from default web application using windows authentication) internet facing site using FBA and experiencing a weird issue when trying to open (uploaded word and excel documents or video files or any other file which needs client program to show/run/display) it does not work.

Following are the different behaviour for different files

Word Document: Microsoft Word Application run but does not display any document
Excel Document:
.WMV File:

After searching on the internet I found the following forum which helped me:

Assume your client is a vista machine. If you run your IE in protected mode (normally it is), then you need to add your server as trusted location. Otherwise you need to run your IE in administrative mode. (right click "run as administrator")
Then when you login in IE you need to check "Sign me in automatically", which will persist your credential.


http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/0811935c-c69a-4eb4-b319-63cc139ac727

In order to enforce (to enable the "Sign me in automatically" option), I updated login.aspx: select "Sign me in automatically" option by default and hide that option so that user no need to select that option.

Hope this will save time for someone.