.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

ClientAccessPolicy file in SharePoint 2010

Posted By: Amit Mehra     Posted Date: April 04, 2010    Points: 2   Category :SharePoint
I am upgrading my Silverlight demo code from the old beta to beta 2 and see that there are a few new considerations for the deployment of ClientAccessPolicy.xml files. In a previous post I demonstrated how to do this for SharePoint 2007. The heartburn that I get with that approach is any site collection owner or designer can drag the file into the site collection and open the site up to unwanted client access issues. In 2010 the virtual path provider no longer serves the files from the root of the site collection

View Complete Post

More Related Resource Links

Video: SharePoint 2010 File System

This video describes the SharePoint 2010 file system and integration with Visual Studio 2010. (Length: 3:23)

Sharepoint 2010 Enterprise - Word can not open file in sharepoint

Hi, In the library shared documents on my first teamsite i uploaded a word 2010 document. When i click on the document my Word starts up but i'm not able to open the document. i'm also getting the following error: could not open http://pcp/Shared Documents/cv.docx. When i upload a document via word (saving the document in the library via word) i can view it when i click on the document. But when i upload an existing document into the library i keep getting the error from above when i'm trying to open it.   Thanks TIM

How can create site in sharepoint foundation 2010 based on WSS 3.0 template(.stp file)

Hi,   I  want  to migrate wss3.0  site into sharepoint foundation 2010 site . earlier we  were creating site based on .stp file  in WSS 4.0 . but now we  have   to build same site in sharepoint foundation 2010. I followed  the old way  intall the .stp file  and  based on that trying to create new  site  but getting some error  old version template is not supporetd my this version. how could  l able to create  site  in sharepoint foundation 2010 based on wss 3.0 template . Please help Thanks in advance Jandel Singh

How can create site in sharepoint foundation 2010 based on WSS 3.0 template(.stp file)

Hi,   I  want  to migrate wss3.0  site into sharepoint foundation 2010 site . earlier we  were creating site based on .stp file  in WSS 4.0 . but now we  have   to build same site in sharepoint foundation 2010. I followed  the old way  intall the .stp file  and  based on that trying to create new  site  but getting some error  old version template is not supporetd my this version. how could  l able to create  site  in sharepoint foundation 2010 based on wss 3.0 template . Please help Thanks in advance Jandel Singh

Link to Traditional File Shares from SharePoint 2010

Forgive me for possibly not using the right terminology.  I'm trying to determine if Sharepoint 2010 supports linking to traditional files shares so they can be presented as Document Libraries inside Sharepoint.  When searching I find lots of info about the capability to map traditional network drives to a Sharepoint Document Library, however that is essentially the opposite of what our customer needs to do.  Instead they want to keep a large repository of files out of a Sharepoint database, but still present it as a document library to their users.  I know that the BDC supports linking to External Data Sources, but I thought that is just for crawling, and searching external data stores.Is it possible to present a traditional file share \\servername\share as a document library (i.e. https://home.widgets.com/Documents/Forms/AllItems.aspx) in Sharepoint 2010?It looks like the capability is there especially because Server 2008 R2 refers to default shares as Libraries.Thanks.Matthew

SharePoint 2010 Export list Items to Excel, wrong url in iqy file

Hi, I have a SharePoint 2010 Environment that uses https://portal.<something>.com. Exporting to Excel of a list uses wrong URL. When I go to the a list, select the list to show the "office ribbon" and then select export to excel, excel will show the error "Excel cannot connect to the SharePoint List". When I take a look at the IQY file that is created it contains the wrong url: http://portal.<something>.com instead of https://portal.<something>.com Changing the URL in the IQY file manualy to https://portal.<something>.com and then opening it will excel is working fine, list data is exported to excel then. Alternate access mapping is configured to use https://portal.<something>.com as default, export to access is working normaly. I already deleted the http://portal.<something>.com alternate access mapping once to see if this fixes the problem. No fix, even not after IISreset or rebooting the server. Where or how is the export to Excel IQY file created and where is it possible to fix the URL it is putting in the IQY file? Grtz, Arjan

RBS Maintainer not cleanup files in file system (SharePoint 2010)

Here's my environment:   Server #1: SQL Server 2008 R2 Express, RBS enabled Server #2: SharePoint Foundation 2010, RBS installed I setup RBS according to this http://technet.microsoft.com/en-us/library/ee663474.aspx successfully. And I can see the files are storing in NTFS file system instead of database. And then I'm configuring RBS Maintainer according to http://technet.microsoft.com/en-us/library/ff943566.aspx . But it doesn't seem working as expected. I deleted the file from SharePoint Document Library and emptied recycle bin, even in site collection recycle bin. And even I delete the whole site collection. The RBS Maintainer doesn't delete the files in file system. I've updated the following rbs config on my content database for test: exec mssqlrbs.rbs_sp_set_config_value 'garbage_collection_time_window', 'time 00:00:00'; exec mssqlrbs.rbs_sp_set_config_value 'delete_scan_period ', 'time 00:00:00'; exec mssqlrbs.rbs_sp_set_config_value 'orphan_scan_period', 'time 00:00:00'; Maintainer output after I deleted the file, emptied end user recycle bin and site collection recycle bin : C:\Program Files\Microsoft SQL Remote Blob Storage 10.50\Maintainer>"C:\Program Files\Microsoft SQL Remote Blob Storage 10.50\Maintainer\Microsoft.Data.SqlRemot eBlobs.Maintainer.exe" -Connect

Use SharePoint 2010 to different video file types

Hi all,

I am new to SharePoint 2010 and have one question on Asset Libraries.

Asset Libraries is a new library type in SharePoint 2010. They are designed to hold media such as pictures and videos. We can upload a Windows Media Video (WMV) file to our Assets Library. However, can I upload other video types like MP4, flash or others?
If yes, how can I do that?
If no, are there any workaround for it?

Thanks in advanced.

SharePoint 2010 Incoming Email cannot process email file attachment in email with less than sign < a


When sending an email which contains an email attachment such as "Hello <World>.msg" from Outlook to SharePoint 2010 email enabled list such as an "Announcements" list, no item is created in the list and the attached email and the orginal email are not saved.

The log file contains

09/23/2010 13:51:17.54  OWSTIMER.EXE (0x18FC)                    0x0B2C SharePoint Foundation          E-Mail                         6873 Warning  An error occurred while processing the incoming e-mail file C:\inetpub\mailroot\Drop\f17ce37101cb5b600000002a.eml. The error was: Illegal characters in path.. 9f265722-74c9-4bd8-9504-ac265f2351d7

Add SWF file to Sharepoint 2010


I have a Content Editor Web Part whcih embeded a link for SWF file, and it was working perfectly on MOSS 2007, but when I moved to 2010, the page loading take too much time, without any response!!

Any idea what is the problem??

btw i am using IE 8.





<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
WIDTH="550" HEIGHT="400" id="myMovieName">
<PARAM NAME=movie VALUE="myFlashMovie.swf">
<PARAM NAME=quality VALUE=high>
<EMBED src="/support/flash/ts/documents/myFlashMovie.swf" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400"
NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash"


SharePoint 2010 Incoming Email cannot process file attachment with zero size.


When sending email with attachments to SharePoint list, if one of the file attached to the email is of size 0, then none of the files will be saved and NO new item will be created in the list.

The SPEmailHandler's ProcessAttachment method should check the length of the "contentStream". If the length is 0, it should return immediately.

As you can see in the ProcessAttachment method none of the arguments are validated before they are used. This an example of poor quality code.

It should do at least

if (contentStream == null || contentStream.Length == 0) return;

if (string.IsNullOrEmpty(fileName) || item == null) return;


private static void ProcessAttachment(Stream contentStream, 

SharePoint 2010 Load Testing Kit - a csv file contain at least three columns


I'm following this page.
Load Testing Kit (SharePoint Foundation 2010)


I've created a csv file in the format:

I run this command
C:\Program Files\Microsoft\SharePoint 2010 Administration Toolkit\Load Testing K
it>ltk.exe -source C:\inetpub\logs\LogFiles -output visualstudiosolution -userli
st c:\temp\users.csv

And received this message

[10/1/2010 3:04:50 PM] [Error] :
Exception Type [System.InvalidOperationException]: Message[The user list should
be a csv file contain at least three columns, which are username, password and p
stack trace:    at Microsoft.Office.Server.AdministrationToolkit.LoadTestingKit.
   at Microsoft.Office.Server.AdministrationToolkit.LoadTestingKit.Engine.Framew
orkEngine..ctor(CommandLineArguments arguments)
   at Microsoft.Office.Server.AdministrationToolkit.LoadTestingKit.Common.Comman
dLineUtility.HandleCommandLine(String[] args)
   at Microsoft.Office.Server.AdministrationToolkit.LoadTestingKit.Program.Main(
String[] args)\n

Here's a snippet from loadtestkingkit.log


Deploy xslt with wsp file to sharepoint 2010 server


I have a xslt file, which i need to place in the layout section, I have created the path in the web part project, I am not able to deploy the wsp file through VS2010 as i do not have local sharepoint server, sO i am copying the file from biin\debug\wsp file to sharepoint server then add the solution install the soution,, but i also have an xslt file, which i need to place it in layouts folder, I have added as resource file during building the web part, file exists in the package, but i am not sure in wsp file

I have a layout folder in my vs 2010 project and xslt file is there in the folder , built the solution, when i use it on the sharepoint page it says that c:\pro.. files\..\..\..\bin\14\templates\layout\xyz.xslt file not found.

Hope some has a view or suggestion or an answer

thank you



can we run .bat file in cab.ddf file of solution package in sharepoint 2010???


can we run .bat file in cab.ddf file of solution package in sharepoint 2010

bcoz i have created 1 batch fiel which create the hierarchy of folders and move all the images to specific folder so if .bat ll run in my solution package then my problem will solve

help me out



Open a PDF file from SharePoint 2010


I created a document libraries with PDF file. when try to open a file - it displays a window suggest the user to save the file (instead of just open it). Is that the default behavior?? any installation missing? any walkaround?


Deploy and update script file with custom ribbon tab to Sharepoint Server 2010


Hey everyone,

currently I'm building a custom tab for Sharepoint Server 2010 and at the moment I'm stuck on the following issue,
with the first debug deployment Visual Studio sends the .js file that provides some functions for the ribbon elements from Scripts folder in the VS project
to Sharepoint Server.
However, it won't apply any changes I did on the script afterwards to the file on the server.
So the effect is, that as soon as I do the next debug, the previous script is being used by Sharepoint and the new version, containing the new code, is left aside.

It seems to me as if Visual Studio would only deploy the .js file just once and then rely to this copy, maybe there are some configuration settings to make, but after hours of research, I still can't figure out where things do go wrong or what configuration to apply to update the script on the server.
I couldn't locate the file on hdd either, even searched the whole fs but the results showed only the new script file.

Any help on this would be very much appreciated, this issue drives me nuts and consumes plenty of time ;)

Workaround at the moment: each time the script is changed, set up new project... :D

Greets, Norman

P.S: Yes, I did flush

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend