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

Custom Activity and Workflow error - HTTP 401 401 UNAUTHORIZED

$
0
0

Hi Guys,

I have encountered an error during running my custom workflow. The workflow is using custom activity that collects the information form Project Server and then it's supposed to send out emails. After deploying the code to the farm the wf starts to running but if it goes to the part of the code where it should send out emails it's got suspended with this error:

An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 401 401 UNAUTHORIZED

....

....

 at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation) 

The funny thing is that all other workflows even the OOB are not working and getting the same error. Before running the custom WF the OOB (sending simple emails) are running fine. To get back working the OOB wf's i need to restart the Workflow Manager Backend service and do iireset.

I'm catching this error on the farm but on my VM everything is fine. Do you have any ideas what could casue this error? It's is possible that this activity flips out the user profile synchronization?

Thanks


Wojti



How to disable Callout in Document Library?

$
0
0

Hi,

Is there a way to disable Callout to popup when we click the ellipsis button of a document in Document Library? I just want to have the direct access to the ECB without having to click another ellipsis button in Callout popup. Is this possible to achieve?

Thank you.

Workflow SQL Server Instance Test Connection Failed

$
0
0

I am attempting to configure the workflow manager. I have a SQL DB and SP server.  In  WF Manager Configuration Wizard, when I enter the name of my SQL DB into the SQL server instance field and test the connection, I receive a check mark. However, if I check the "Enable SSL connection with SQL Server instance", and test the connection message, I receive an error message "Failure in connecting to SQL Server".

What could cause the test connection to fail when I enable SSL connection? As long as I do not enable SSL, the test connection pass.

I have a very simple environment. Nothing complex. 1 - SQL Server and 1 SP server with SP Standard 2013 installed.

Please help.


artisticweb

List Email Event Receiver causing incoming email settings to dissappear.

$
0
0

Hi,

I have a document library with incoming email settings enabled and saving the original email as checked (tested and works).

I created a list email event receiver to get the body out of the original email (.eml file).

but whenever i deploy my event receiver and enable the feature, my library loses all incoming email settings below the email address and i am not able to receive the original emails anymore its just not there anymore.

Is this something by design ? a bug ? or is there a workaround for this problem?

Kind regards,

Dominique Dewilde

CSOM - create a hidden list

$
0
0

Hi

I need to create a hidden list. I'm using ListCreationInformation to create it, but I can't find how to hide it.

If it's not possible with ListCreationInformation, how can we switch an existing list to hidden with CSOM?

Thanks

Align master page and search result HTML

$
0
0

I have a custom master page where I would like to move the PageTitle to a different <div>.  That's not a problem, but the Search Results page (osssearchresults.aspx) gets it's title/menu from somewhere else.  I was able to successfully get my master page style to apply by editing the Display Template 'Control_SearchResults.html', but that doesn't contain the HTML for the title/menu.

You can see below - by default the title comes BEFORE the menu in a master page and the title comes AFTER the menu on the search results HTML.  This slight appearance difference wasn't a problem, but now I want to change the move the PageTitle somewhere very different.


Where's the HTML for the search results coming from?


Visual Studio Debugging SharePoint 2013 Online SSL Error

$
0
0

SharePoint 2013 Online (Office 365) from local machine (no SharePoint Server installed) works without issue:
- Create a simple auto hosted app
- Right-click and deploy the solution
- Web gets deployed in Azure successfully and I'm redirected to the "trust it" page
- The App functions properly

Try to debug locally and the SSL site does not work

- Create a simple auto hosted app
- Click F5 to debug
- The page with "trust it" option is displayed and then click "trust it"
- In the Site contents, page I click the App
- The page with 'localhost' in the URL is loaded with the error as below:

This page can't be displayed" on https://localhost:44305..........

I browse to https://localhost:44305 directly and nothing happens. Its like SSL is not configured properly and will not work. The None SSL sitehttp://localhost:32318/ does work however I cannot really use it without the token.

When I built it prompted me to install a SSL certification and I am guessing this is the issue. My IIS Express is not allowing the SSL site to work, the process is there but nothing will render on it.

Please Help

Document Set Homepage Url from CSOM file object

$
0
0

Using CSOM to access files contained within a document set, but unable to generate the url for the files Document Set home page:

http://my.domain.com/sitename/doclib/Form/CTName/docsethomepage.aspx?ID=ok&FolderCTID=ok&List=NO&RootFolder=ok&RecSrc=ok

The file object does not contain the CTName or List Guid.

Does an hidden property exist with the path to the home page?


Automatically Upload Pictures from Sharepoint local drive to SharePoint User Profile store using C#

$
0
0

I have 10,000 image files(profile pictures) stored at location C:\ProfilePic\ folder. The Local Drive(C:\ProfilePic\) is in the same machine where SharePoint Server is installed.
Image Files are as below.
DomainName_UserID1.jpg,
DomainName_UserID2.jpg,
DomainName_UserID3.jpg  etc.
I need to upload these images to the SharePoint UserProfile Store for respective users.
Is that possible to write a console application that can query through the pictures saved in theC:\ProfilePic\ folder, and then upload the Pictures directly from Local Drive to User Profile Store.

The code will do something like below:

Foreach(Images saved in C:\ProfilePicFolder)

{

string DomainName=Images.split(‘_’)[0];

string UserID=Images.split(‘_’)[1];

string AccountName=DomainName+”\”+UserID;

SPServiceContext context=ServiceContext.GetContext(site);

UserprofileManager upm=new UserProfileManager(context);

UserProfile up=upm.GetUserProfile(AccountName);

…………………………….

up[“ImageUrl”].Value=Images from C:\ProfilePic Folder ;

up.Commit();

}

Scoping out Sharepoint - Is it possible to run web apps in the same domain as a web page? (ie not with references to a cloud)

$
0
0

From what I understand, with sharepoint it is possible to run web apps on the server that don't need to be referenced via the cloud, ie in contrast to SkyDrive.

If so, would it be possible to create a web site on the share point server that embeds say a word web app in a page, all done in the one server, on the same domain?

Thanks


Using Visual Studio as an HTML editor with SharePoint's Design Manager

$
0
0

I'm building a master page using Design Manager. I've mapped a network drive so that I can access the MasterPage.html file with an HTML editor.

I'd like to use Visual Studio 2012 as my HTML editor.  But, when I modify MasterPage.html in VS, it creates a MasterPage.html~RF9158aed.TMP file alongside the MasterPage.html and MasterPage.master files, which breaks the master page in SharePoint.

I can modify MasterPage.html successfully with NotePad.  I can also modify an html file, that is not associated with a folder in SharePoint via a networked drive, with VS.

Can I use Visual Studio as an HTML editor in this scenario?  If so, what am I doing wrong?

Your help would be much appreciated.

Thanking you in anticipation.

Roger


rogerwithnell

Modification of hosted FBA Login page

$
0
0
I have a site hosted on apps4 rent for our fire Department. It's a SharePoint foundation install. We have Forms based authentication. I am looking for a way to modify the Login page just to include our logo. I would think it would be easy but everything I can find seems to point to the fact that I need access to the Layouts folder on the server. Being as it's hosted, I don't have that access. Is there any way for me to do what I want to do without access to the server? Only access I have is Im the Site Collection Admin.

Security Validation for this page is Invalid

$
0
0

hello all,

i have created a custom site deffinition and a custom provision provider

code is bellow

here is xml

<?xml version="1.0" encoding="utf-8" ?>
<Templates>
  <Template Name="GulfTainer" ID="2501">
    <Configuration
      ID="0"
      Title="GulfTainer Common Site"
      Hidden="False"
      ImageUrl="/_layouts/15/images/stts.png?rev=23"
      Description="Use This Site To Create Root Site in GulfTainer"
      RootWebOnly="True"
      DisplayCategory="GulfTainer"
      ProvisionAssembly="$SharePoint.Project.AssemblyFullName$"
      ProvisionClass="GulfTainerCommonSite.GulfTainerSiteProvisionProvider"
      ProvisionData="CommonSite">
    </Configuration>
      <Configuration
      ID="2"
      Title="GulfTainer Team Space"
      Hidden="False"
      ImageUrl="/_layouts/15/images/stts.png?rev=23"
      Description="Use This Site To Create Root Site in GulfTainer"
      SubWebOnly = "TRUE"
      DisplayCategory="GulfTainer"
      ProvisionAssembly="$SharePoint.Project.AssemblyFullName$"
      ProvisionClass="GulfTainerCommonSite.GulfTainerSiteProvisionProvider"
      ProvisionData="TeamSpace">
    </Configuration>
  </Template>
</Templates>

provision provider is bellow

 public override void Provision(SPWebProvisioningProperties props)
        {

            SPSecurity.RunWithElevatedPrivileges(delegate()
            {
                props.Web.ApplyWebTemplate("BLANKINTERNETCONTAINER#0");
                //ProvisionCustomWeb(props);
            });           
        }

when i am creating site from second template it is working but from first template it is not working it gives error that

security validation for this page is invalid . it was working fine some times before.

please help some some when inspecting error logs i found the bellow error

"A large block of literal text was sent to sql (length 97493).  This can result in blocking in sql and excessive memory use..."

Please help how to resolve.

please help


Mukesh

JQuery Tutorial needed to customize Add New Item and Edit Item forms

$
0
0

Hello,

I need a tutorial to use JQuery to customize the UI Screen of SharePoint to add a new item in a list.

since I don't have prior UI experience it will be nice if the tutorial is specifically targetted towards customizing the automatic form which is presented by sharepoint when we try to add an item to a custom lists.


val it: unit=()

Deploy custom SP13 master page via a feature

$
0
0

Hello,

I have created a custom master page in SP13 and am deploying it to the Master Page gallery, however I am unable to see it there. PFB the module code:

<?xml version="1.0" encoding="utf-8"?><Elements xmlns="http://schemas.microsoft.com/sharepoint/"><Module Name="MasterPages" RootWebOnly="True"><File Path="MasterPages\SPUpgrade13.master" Url="_catalogs/masterpage/SPUpgrade13.master" Type="GhostableInLibrary"><Property Name="UIVersion" Value="15"></Property><Property Name="ContentType" Value="$Resources:cmscore,contenttype_masterpage_name;" /></File></Module></Elements>

Please let me know what am I doing wrong.

Thanks and Regards,

Neha


ListFieldIterator RenderContext

$
0
0

Hi!

I've created a ListFieldIterator object and I have a question about property RenderContext.

I don't understand when it's need to use?



Client Object Model - Unhandled Exception: System.InvalidCastException: Unable to cast object of type 'System.Collections.Generic.Dictionary`2[Syst em.String,System.Object]' to type 'Microsoft.SharePoint.Client.Field'

$
0
0

What is wrong with this code... seems harmless to me.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Client;
namespace ConsoleApplication1 {
    class Program {
        static void Main(string[] args) {
            ClientContext c = new ClientContext("http://sp2013.mycompany.com/sites/dev");
            Web web = c.Web;
            c.Load(web, w => w.Title, w => w.Fields);
            c.ExecuteQuery();
            Console.WriteLine(web.Title);
            FieldCollection collField = web.Fields;
            c.Load(collField, fields => fields.Include(field => field.Title));
            c.ExecuteQuery();
            foreach (Field x in collField) {                               
                Console.WriteLine(x.Title);
            }
        }
    }
}

Unhandled Exception: System.InvalidCastException: Unable to cast object of type'System.Collections.Generic.Dictionary`2[Syst
em.String,System.Object]' to type 'Microsoft.SharePoint.Client.Field'.
   at Microsoft.SharePoint.Client.ClientObjectCollection`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>d__0.Move
Next()
   at ConsoleApplication1.Program.Main(String[] args) in c:\temp\ConsoleApplication1\ConsoleApplication1\Program.cs:line 20
Press any key to continue . . .
 
 
 
 


val it: unit=()

SharePoint: Workflows - Accessing A Pre-existing Site From Visual Studio

$
0
0
Is there away to create and publish a custom workflow from Visual Studio to an existing SharePoint site which was created using SharePoint Designer? If so, how do I access a pre-existing site from Visual Studio?

Restricting SharePoint Designer?

$
0
0

Recently we have stood up a new SharePoint 2013 environment with three regions (development, quality assurance and production).  We have a SharePoint 2007 environment that was never governed and became out of control that we are migrating from.  One of the new governance decisions we have decided upon are restricting the use of SharePoint Designer to just the development region and then promoting those changes through to quality assurance and eventually production utilizing a tool we purchanges from AvePoint to deploy those changes.

As we are getting ready to start migrating sites over, I have noticed most of our sites require more than just the OOB workflows but instead require most customizations to their workflows utilizing SharePoint Designer.  This I am seeing is going to cause a lot of administrative overhead with trying to keep up with all the requests for changes to be synced on a constant basis through the environments up to production.

So this brings me to the question, are there any cons about allowing SharePoint Designer in the production environment?  Is there anything a user can do within SPD that can cause issues not just on their site but with SharePoint in general?  In the end I am not so worried about if they mess up their own site as they are responsible for their own site, but I want to avoid what they do in SPD causing issues with everyone else as well.  For example, can they produce an infinite loop by accident with SPD eventually affecting the server performance with memory and CPU utilization?

Thanks


Ron Montecalvo


Fetch values from list in workflow for SharePoint 2013 for VS 2012

$
0
0

HI,

I am trying to create a workflow in VS 2012 for SharePoint 2013. I have associated the workflow to custom list.

I have another list (configuration list), which contains columns "Title" and "Value". The configuration list contains multiple items.

For example:

Title                                        value

ccaddress                             some email value

emailsubjectforApprover         test email

How to fetch the values of the configuration list in the workflow?

Thanks

Viewing all 7589 articles
Browse latest View live