Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all 7589 articles
Browse latest View live

How to disable Shredded Storage in SharePoint 2013?

$
0
0

Hi,


My understanding is that SharePoint provide  "FileOperationSettings" property to disable Shredded Storage but this property is not working in SharePoint 2013 RTM release.

Only the way they provide is modify the FileWriteChunkSize property and set the chunk size is 2 GB  for bypassing the shredded storage.

Is there any another way to disable the Shredded Storage in SharePoint 2013 and store the document in database same as SharePoint 2010 does?


Sharepoint 2010 Event Receiver returning "The remote server returned an error: (401) Unauthorized"

$
0
0

I have an Event Receiver that was working on our Test Farm, then stopped working (with the error below) after some server updates and restarts. I moved it to our Staging Farm, and it works there sometimes but more often returns the error below:

Category: SharePoint Guidance: An exception has occurred.   ExceptionType: 'WebException'   ExceptionMessage: 'The remote server returned an error: (401) Unauthorized.'
 
The event receiver is set up to send an email with an attachment of the pdf file that was just loaded into the Document Library. The users who get the email depend on various factors.

Part of the code in question is below.  When it fails, it is at "Dim data as Byte() = webclient.DownloadData(strURL)"

 
strURL = properties.Web.Site.Url + "/" + properties.ListItem.Url
...

Dim webClient As System.Net.WebClient = New System.Net.WebClient
Dim impContext As WindowsImpersonationContext
impContext = WindowsIdentity.GetCurrent(TokenAccessLevels.MaximumAllowed).Impersonate()
Using impContext
  webClient.Credentials = System.Net.CredentialCache.DefaultCredentials
  Dim data As Byte() = webClient.DownloadData(strURL)
  impContext.Undo()
  Dim memoryStreamOfFile As System.IO.MemoryStream = New System.IO.MemoryStream(data)
  mailMessage.Attachments.Add(New Attachment(memoryStreamOfFile, properties.ListItem.Name, "application/pdf"))
  Dim smptClient As SmtpClient = New System.Net.Mail.SmtpClient(smtpServer)
  mailMessage.IsBodyHtml = True
  smptClient.Send(mailMessage)
End Using

All 4 servers in the Farm have Windows Authentication, and ASP.Net Impersonation enabled.
I checked web authentication mode in Powershell and it is Windows.

Any help with what could be causing this and how to fix it would be great.  Again, it does work sometimes.

Thanks!

Custom Time Job - Create Project in PWA

$
0
0
You can create a time job to utilize information from a SharePoint list in 2013 to create a project in Project Server?

Torres

Here maps under SherPoint 2013

$
0
0

Hi all,

I have a problem with imputing bellow code in SP2013 embed code option:

           <script type="text/javascript"
                src="http://js.api.here.com/se/2.5.3/jsl.js" charset="utf-8">
            </script>

            <div id="map" style="z-index: -1; left:0px; top:0px; width: 50%; height: 50%; ;"></div>
            <script type="text/javascript">

               nokia.Settings.set("app_id", "nokia dev key");
               nokia.Settings.set("app_code", "nokia dev key");

               var map = new nokia.maps.map.Display(document.getElementById("map"),
               {
                 'components': [
                      new nokia.maps.map.component.Behavior(),
                     new nokia.maps.map.component.ZoomBar()],
                    'zoomLevel': 16,       
                    'center':[0.00, 0.00]  
              });
            </script>

Could you please help me on this case ? (I can't use SP developer and I am running out of ideas)

Thanks !

Create List Item from CSV

$
0
0

Hey guys,

I prepared several custom lists (testlist 1-6) in SharePoint with following columns: Title, Department, Name.

I also have an CSV-file with multiple columns (Web, List, Title, Department, Name)

Web and List are location indicators for the items. Title, Department and Name are parameters of the item.

How can I realize to create listi tems on the corresponding list from this CSV?

Kind regards,

Tobi

Webpart Custom folder missing

$
0
0

I had this problem two days ago. So I rebuild the development server and still got the same error?

I deplay a visual solusion and deplay it to the farm. The webpart is in the "Site Collection Features" list and is activated. I created a site page and want to add the webpart. I do not see the "Custom" folder under the webpart "Category". I cannot figure out what is the problem.

I will appreciate your help. Thanks.

SharePoint hosted app in marketplace with activex

$
0
0

Hello,

I could not find much information so far on my own so I thought to ask the forum. Does SharePoint marketplace allow submitting a SharePoint hosted apps that includes an Activex control? This control talks to TWAIN supported scanners so that the end users can scan documents. Any helpful input will be greatly appreciated. Thank you.


Query listitems by view through REST api

$
0
0

I've created a custom view, and I want to access the list items based on this view through REST api.

I've tried .../_api/web/lists(listguid)/view(viewguid)/items, but it seems not working.

Is it possible, any ideas?

Thanks,

Laszlo


Change text for modal dialog "Working on it..."

$
0
0

Hi all,

I've been searching through forums for a few hours now and haven't come across a solution for modifying the modal dialog box's text. I've seen examples of people removing them, resizing them, etc. but there's nothing around that includes changing the text.

For example, I would like "Working on it..." to be changed to "Calculating...".

Please note that this is not for creating a dialog box, but for editing a previous one, such as when you click "New Item" within a list.

I've checked the SP2013 Dialog API but there's nothing in there which would give me the results I need.

I've also dabbled with using jQuery but haven't managed to find the correct CSS classes in order change the text - all I know is there's a span within the .ms-dlgContent. It's not well documented so pretty hard to find unless scrolling through the corev15.css file.

If anybody could help I'd greatly appreciate it.

Thank you,

Matt T

How to upload a file to a document library in sharepoint using CSOM

$
0
0
Hi,

I am getting the below error while trying to upload a file to sharepoint library.

The request message is too big. The server does not allow messages larger than 2097152 bytes.

The below is the code.

var _file = new FileCreationInformation();

_file.Content = ; // some byte array
_file.Overwrite = true;
_file.Url = serverrelativeurl + "/Lists/FaxList/sample.TIF";

Microsoft.SharePoint.Client.File uploadfile = list.RootFolder.Files.Add(_file);
uploadfile.ListItemAllFields["Title"] = "sample";
uploadfile.ListItemAllFields.Update();

Can anyone can help me on this.

Regards,
kiran

Problem with SharePoint 2013 Azure workflow deployed on production farm

$
0
0

I am having a problem with a SharePoint Designer 2013 workflow which has been deployed onto a production farm as part of a site feature. It is working perfectly on our development farm, upon activation the workflow task list and content types are created and the workflow is added and associated with the site.

However on the production farm the feature will not activate, instead I receive the following error in the logs:

Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Cannot set unknown member 'SingleTask.RelatedContentLinkListItemIntegerId'. HTTP headers received from the server - ActivityId: 5ed41049-2d37-4ab8-8f68-38dddfb2af25. NodeId: SVR-SP-WFE1. Scope: /SharePoint/default/34dba7eb-6906-46db-82be-0fb15159fa59/8af2e02a-18ca-4764-80ba-1a1436aeb950. Client ActivityId : 9dbd609c-0988-e062-a685-ad9bc8e379a3. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Client.HttpGetResponseAsyncResult1.End(IAsyncResult result)
at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content) - -- End of inner exception stack trace ---
at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)
at Microsoft.Workflow.Client.ActivityManager.Publish(ActivityDescription description, Boolean overwriteXClassName, Boolean terminateDependentInstances)
at Microsoft.SharePoint.WorkflowServices.FabricWorkflowManagementClient.PublishActivity(String serviceGroupName, ActivityDescription activity, Boolean overwriteXClass, Nullable1 terminateInstances)
at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishActivity(FabricWorkflowManagementClient client, ActivityDescription activityDefinition, String serviceGroupName) StackTrace: at Microsoft.Office.Server.Native.dll: (sig=1f86b0bf-2440-4b16-9099-860a571153c2|2|microsoft.office.server.native.pdb, offset=131CE) at Microsoft.Office.Server.Native.dll: (offset=21C85)

I have seen posts saying that to resolve this I should re-associate the workflow manager with the site collection (e.g. this post by Mikhail Pushin) however this has not helped at all. I have also tried completely removing and recreating the Workflow Manager farm but that also did not help.

Has anyone got any other ideas? I'm just about out as there does not seem to be any more useful information in the log.

SharePoint site is not getting sign out

$
0
0

In my SharePoint site I can not able to singout. Once I signout the site it will go to empty page. After that I can enter into that site without uaername and password.it will open using previous logged in user automatically. How can I resolve this problem?

Thanks in Advance

Set SharePoint PeopleEditor and SharePoint DateTimeControl value to null

$
0
0

I would like to know how to set SharePoint PeopleEditor and DateTimeControl value to null. Many thanks.

SharePoint Online, SPWebCollection.Add method (String, String, String, UInt32, SPWebTemplate, Boolean, Boolean)

$
0
0

I have created a Sandbox-solution With a List Event Receiver. When a New item is added to the list, a Workspace should be created based on a sitetemplate.  

 

Code in my latest attemp;

 wWeb.AllowUnsafeUpdates = true;
 newWeb =   wWeb.Webs.Add(properties.ListItem[numb].ToString(), properties.ListItem[numb].ToString() + " " + properties.ListItem["Title"].ToString(), "", 1044, arbeidsrommal, false, false);
 wWeb.Update();
wWeb.AllowUnsafeUpdates = false;

 

this work for 4 list items, sites wore created. But 1h later when i tried it casted a error for all items i created:

 

Microsoft.SharePoint.SPException: The Web site "/project/space/7823-15152" is already in use. ---> System.Runtime.InteropServices.COMException: <nativehr>0x800700b7</nativehr><nativestack></nativestack>The Web site "/project/space/7823-15152" is already in use..
   at Microsoft.SharePoint.Library.SPRequestInternalClass.CreateWeb(String bstrUrl, String bstrTitle, String bstrDescription, UInt32 nLCID, Boolean bCreateUniqueWeb, Guid& pguidAppInstanceId, String bstrAppWebDomainId, Boolean bConvertIfThere, Guid& pgWebId, Guid& pgRootFolderId, Boolean bCreateSystemCatalogs)
   at Microsoft.SharePoint.Library.SPRequest.CreateWeb(String bstrUrl, String bstrTitle, String bstrDescription, UInt32 nLCID, Boolean bCreateUniqueWeb, Guid& pguidAppInstanceId, String bstrAppWebDomainId, Boolean bConvertIfThere, Guid& pgWebId, Guid& pgRootFolderId, Boolean bCreateSystemCatalogs)
   --- End of inner exception stack trace ---

Server stack trace: 
   at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
   at Microsoft.SharePoint.Library.SPRequest.CreateWeb(String bstrUrl, String bstrTitle, String bstrDescription, UInt32 nLCID, Boolean bCreateUniqueWeb, Guid& pguidAppInstanceId, String bstrAppWebDomainId, Boolean bConvertIfThere, Guid& pgWebId, Guid& pgRootFolderId, Boolean bCreateSystemCatalogs)
   at Microsoft.SharePoint.SPWeb.CreateWeb(String strWebUrl, String strTitle, String strDescription, UInt32 nLCID, String strWebTemplate, Boolean bCreateUniqueSubweb, Boolean bConvertIfThere, Guid appInstanceId)
   at Microsoft.SharePoint.SPWeb.SPWebCollectionProvider.CreateWeb(String strWebUrl, String strTitle, String strDescription, UInt32 nLCID, String strWebTemplate, Boolean bCreateUniqueSubweb, Boolean bConvertIfThere, Guid appInstanceId)
   at Microsoft.SharePoint.SPWebCollection.Add(String strWebUrl, String strTitle, String strDescription, UInt32 nLCID, String strWebTemplate, Boolean useUniquePermissions, Boolean bConvertIfThere, Guid appInstanceId)
   at Microsoft.SharePoint.SPWebCollection_SubsetProxy.Add__Inner(String strWebUrl, String strTitle, String strDescription, UInt32 nLCID, SPWebTemplate_SubsetProxy WebTemplate, Boolean useUniquePermissions, Boolean bConvertIfThere)
   at Microsoft.SharePoint.SPWebCollection_SubsetProxy.Add(String strWebUrl, String strTitle, String strDescription, UInt32 nLCID, SPWebTemplate_SubsetProxy WebTemplate, Boolean useUniquePermissions, Boolean bConvertIfThere)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.SharePoint.SPWebCollection_SubsetProxy.Add(String strWebUrl, String strTitle, String strDescription, UInt32 nLCID, SPWebTemplate_SubsetProxy WebTemplate, Boolean useUniquePermissions, Boolean bConvertIfThere)
   at Microsoft.SharePoint.SPWebCollection.Add__Inner(String strWebUrl, String strTitle, String strDescription, UInt32 nLCID, SPWebTemplate WebTemplate, Boolean useUniquePermissions, Boolean bConvertIfThere)
   at Microsoft.SharePoint.SPWebCollection.Add(String strWebUrl, String strTitle, String strDescription, UInt32 nLCID, SPWebTemplate WebTemplate, Boolean useUniquePermissions, Boolean bConvertIfThere)
   at O365.XproAS.ProjectLogEvents.ProjectLogEvents.CreatedWorkspace(SPItemEventProperties properties)

 

I also tried a Version where i checked if the web was actual in use;

 

                    SPWeb newWeb = null;

                    //foreach (SPWeb subWeb in wWeb.Webs)
                    //{
                    //    if (subWeb.Name == properties.ListItem[numb].ToString())
                    //        newWeb = subWeb;
                    //}

but it just gave me the same error.

What can be wrong?

br. Heggdal


Heggdal!

Get customProperties of Term in Manage Metadata SharePoint 2013 by Client Object Model

$
0
0

Hi All,

i am trying to get the Custom Property of a Term in Manage Metadata through ECMA . any idea how i can get that. i am able to get the term.


Thanks and Regards

Er.Pradipta Nayak
Visit my Blog
Xchanging


API for office 365

$
0
0

Hi,

I'm looking to access Office 365 mail, calendar, contacts.

Is there are REST API available for this?

I found I can use SOAP, but when authenticating against https://outlook.office365.com/EWS/Exchange.asmx I'm not getting anything.

Is there anything specific settings in Office 365 that needs to be enabled? I'm not developing an app for office 365. Simply want to push and pull data from Office 365 using stateless web calls without library. For reference I'm using Python.

I appreciate any help or references. Thanks!

Andrew

How to set session timing in Sharepoint site?

$
0
0
Hi,
 
I want to set the session time for my internal Sharepoint site. Is there any possible to do this?
if Sharepoint site dont get any action with in 5 Mins it willautomatically get sign out.
 

Thanks & Advance.

How to change "Target Path" in Content Organizer Rules: Edit Rule - Programatically

$
0
0
I am having SharePoint 2013 environment in which I want to update "target path" programmatically. So anyone can tell me How to update the "Target Path" in content organizer rule : Edit Rule option programmatically?

Satish Srivastava, Sr. SharePoint Developer || MCTS, MCPD || Microsoft Product


Multilanguage in custom site columns of a List

$
0
0

Hey Guys, 

because of the information flood I can't find the solution for my problem...

There are so many different ways and situations, but I can't find a clear answer.

My issue: I have created a content type with different custom site columns. The content type inherits from Tasks.

So I have additional task fields (columns) in my List. For Example "Goal".

How can I translate this column in different languages, by using my own translation words?

Thanks in advance!

Site provisioning provider. Disable web template when creating a site collection

$
0
0

Hi!

I have a web template in site provisioning provider. And I need that this template will be available only for creating sub sites and will be unavailable in Central Administration for creating site collections.

How can I solve this problem?Any suggestions?

Viewing all 7589 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>