Quantcast
Viewing all 25064 articles
Browse latest View live

Get Current UserName in Infopath always returns the secure store service credential name

I followed the 3 page tutorial here to get the current Display Name in an infopath textbox.https://spvee.wordpress.com/2013/04/10/auto-populate-user-information-in-infopath-with-claims-based-authentication-part-1-of-3/

After several tries I narrowed down the problem to something very specific.

It always shows the Display Name of the user used in the Credentials in the secure store service application. It doesnt use the current user.

I do have access to the farm, but I didnt not install it, so am not aware if something is wrong on IIS/App Pools or service applications.

Any idea??


Follow me on Twitter
levalencia Blog


Sharepoint 2010/2013 approval workflow people finder issue with word 2013

We have migrated a document approval workflow from sharepoint 2010 to sharepoint 2013.

When the user open the work document, choose open this task, Reassign task, then Click on Add people from address book,

Microsoft word (2013) always crashes. That's the error in the event log :

Faulting application name: WINWORD.EXE, version: 15.0.4675.1000, time stamp: 0x54629dba

Faulting module name: PEOPLE~1.DLL, version: 15.0.4567.1000, time stamp: 0x52721a19

Exception code: 0xc0000005

Fault offset: 0x0000f279

Faulting process id: 0x1a64

Faulting application start time: 0x01d03cba4f689534

Faulting application path: C:\Program Files (x86)\Microsoft Office\Office15\WINWORD.EXE

Faulting module path: C:\PROGRA~2\MICROS~2\Office15\PEOPLE~1.DLL

Report Id: aef88a7b-a8ad-11e4-8260-6431502615f1

Faulting package full name:

Faulting package-relative application ID:

anybody had this error before?is there a way to debug it?

Impersonate SharePoint 2013 Search API

Hello, we have a requirement to impersonate a users credential to perform a Search using SSOM (i.e. KeywordQuery)

We have tried:

1. WindowsIdentity.Impersonate(): Thread identity does change, however SharePoint 2013 seems to ignore the thread identity and continues execute everything in the current user context.

2. SPIdentityContext.Create(SPUserToken).Impersonate(): SharePoint code start failing within the impersonated context. Errors coming from .Net framework.

3. Using impersonated SPSite = new SPSite(url, userToken) the site object and web object does show the new user as logged in user. However, search API (KeywordQuery(SPSite)) ignore the user on the SPSite object

Does anyone have any ideas?

Thanks!

EffectiveBasePermissions not working as expected

I created a SharePoint Hosted App and trying to get the current user's permission on their web.

Please refer to the below code snippet, I'm passing the siteurl as parameter to which I have full control access.

I'm in fact a site collection admin on this "siteurl"  but when I check for its permissions it always returns 'false'. Is there a way do get the permissions of the current user on its web?  Below is the snippet of the code


 var ctx = new SP.ClientContext(appweburl);
    var factory = new SP.ProxyWebRequestExecutorFactory(appweburl);
    ctx.set_webRequestExecutorFactory(factory);
    var appContextSite = new SP.AppContextSite(ctx, siteurl);
    var web = appContextSite.get_web();
    ctx.load(web, 'EffectiveBasePermissions');
    ctx.executeQueryAsync(
        // OnSuccess
        function (sender, args) {
            var value = web.get_effectiveBasePermissions();
            console.log(value);
            var hasPermission = web.get_effectiveBasePermissions().has(SP.PermissionKind.viewListItems);
            var text = "<li>" + siteurl + ": " + "<b>" + hasPermission + "</b></li>";
            $('#message ul').append(text);
        },

        // OnFailure
        function (sender, args) {
            console.log('request failed ' + args.get_message() + '\n' + args.get_stackTrace());
        });



Vamsi Munagala

How to add a shop cart on SharePoint public site for Picture Library

I add a picture library to save my store and display to public.

How to add a shop cart on the picture just like as.net web application.?


Dennis

Best practice to develop the news web part to retrieve news data across the farms

Hi,

We have developed the News Web part. The functionality  it pulls the news from other SharePoint Farms and display it in the site. Currently we are using secure store service to  to connect to different FARM to retrieve the news from that FARM. The issue with this approach is that every time user hits the page it  will always hit the Secure Store service.There are almost 80K users who will be using this web part. Moreover this web part connects to multiple sites for multiple news from different division.What should be the best practice to develop such kind of web part without consuming the server resources and keep hitting the server till we get the new news.News does not change very often.

Regards

Rajaniesh

Trying to add a webpart to webpart page erroring

I have a webpart which internally calls a webservice. When i try to add it to a webpart page i get below error.

An error occurred while attempting to add the gallery item [Miscellaneous] AProject to the page. The error was: Microsoft.SharePoint.WebPartPages.WebPartPageUserException: The remote server returned an error: (500) Internal Server Error. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.    
 at System.Net.HttpWebRequest.GetResponse()    
 at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()    
 at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb)    
 at Siemens.Energy.MSPDB.Custom.AddNewProject.AddNewProject.Page_Load(Object sender, EventArgs e)    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Control.AddedControl(Control control, Int32 index)    
 at System.Web.UI.WebControls.WebParts.WebPartManager.WebPartManagerControlCollection.AddWebPartHelper(WebPart webPart)    
 at System.Web.UI.WebControls.WebParts.WebPartManager.WebPartManagerControlCollection.AddWebPart(WebPart webPart)    
 at Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartWithRetry(WebPart webPart)    
 at Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartInternal(SPSupersetWebPart superset, Boolean throwIfLocked)     -
 -- End of inner exception stack trace ---    
 at Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartInternal(SPSupersetWebPart superset, Boolean throwIfLocked)    
 at Microsoft.SharePoint.WebPartPages.WebPartGallerySourceBase.AddItemToPage(WebPartZoneBase zone, Int32 zoneIndex, WebPart webPart)    
 at Microsoft.SharePoint.WebPartPages.WebPartGallerySourceBase.AddItemToPage(WebPartZoneBase zone, Int32 zoneIndex, WebPartGalleryItem item, String wpid)    
 at Microsoft.SharePoint.WebPartPages.WebPartAdder.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)

Migration from SP 2010 - SP 2013

Hi...

We have migrated SP 2010 to SP 2013 and did some changes in the master page and publishing Pages, but when we login into the site having edit access permissions in the Permissions group, old master page and page content is showing but for Contribute and all other permissions showing new changes...what could be the problem and how to resolve it.


Ravindranath



Error while uploading page in pages library.

Hi All,

When I am trying to upload pages in my Pages library I am getting following error.

Can anyone please tell me how to resolve this issue ?

Error:

Sorry, for some reason this document couldn't upload. Try again later or contact your administrator.

Thanks,

Harish Patil

Problem closing a modal dialog in SharePoint 2013

I have an application page which is opened in a modal dialog in SharePoint. In this dialog I open a document with: createNewDocumentWithProgID 
and afterwards when I want to close the dialog there is a problem using the call: 
SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.commonModalDialogClose', 1, 'Selected');

The call itself works in some contexts when I use it with "SP.SOD.execute", but it always causes other javascript errors to be thrown, and these errors sometimes causes problems with the application page. Below are the error messages and code, but my question essentially is: What is causing javascript errors in SharePoint after the close modal javascript function is called?

The errors that occur in javascipts after commonModalDialogClose has been called are: 

Unhandled exception at line 4118, column 17 in http://sp2013server/_layouts/15/init.debug.js?rev=hd6vYIlQjxmYnM/9RloMJA==
0x800a138f - JavaScript runtime error: Object expected

The javascript code snippet which throws the error (in init.debug.js ?):

for (i = 0; i < am; i++) {
                sodDep = mll[i];
                if (!IsSodLoaded(sodDep) && (bSync || sodDep.state != Sods.loading)) {
                    LoadSodInternal(sodDep, bSync);
                }

And this error: 

Unhandled exception at line 1270, column 5 in http://sp2013server/_layouts/15/init.debug.js?rev=hd6vYIlQjxmYnM/9RloMJA==
0x800a138f - JavaScript runtime error: Unable to get property 'caller' of undefined or null reference

The javascript code snippet which throws the error (in init.debug.js ?):

function ULSOnError(msg, url, line) {
    return ULSSendExceptionImpl(msg, url, line, ULSOnError.caller);
}

The problem which sometimes occurs in the application page because of these javascript errors is that something in the page becomes null after the errors occur. And then a null reference exception is thrown and the dialog will not close, instead an error message is shown. The null reference exception is like this (could be that the web request has become null?): 

"Server Error in '/' Application. 
Object reference not set to an instance of an object. 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below."

Stacktrace: 

[NullReferenceException: Object reference not set to an instance of an object.]
   Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.PostLogRequestHandler(Object oSender, EventArgs ea) +120
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +79
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +164

olha


Not getting FBA users in site and its subsites?

Hi all,

I implemented FBA to my existing site, I think all the configuration completed, i can able to create user using FBAMembership registation.aspx page.

I am able to view the newly created users in the list.

In group assignments page i didn't get the FBA related users. I am getting the OLEDP users in the peopleandpicker control.

How can i get FBAUsers in group assignment?

I am working with sharepoint 2010 to 2013 migration project.

Could you please give me the suggestion for this task. Very urgent.

Thanks,

phani


Phani kumar


NemID - NemLogin-In

Hi,

   I would like to authenticate user with Login and Password using NemID provider. Do you know any ways how to create request to such IDP in .NET (C#) from SharePoint area? I know that NemID (NemLogin-IN) is based on SAML but how should be prepared XML request & response?

Thanx for any info

Regards

Kamil


SPCalendarView in custom Webpart

Hi!

I created a custom webpart where I use dropdown list and set SPCalendarView datasource with custom filter from the selected DropDown value.

The filter is works good. My problem is, how can I set the "Add new Event" to this SPCalendarView?

Please help!

Thanks,

Mykie

Get Sharepoint List item count using CSOM

Hello All , 

I want to get list item count using CSOM object model ... How can I achieve this ? And which method is efficient ajax webservice call or using Jquery ?

Can anyone share the piece of code ?

70-488 certification

Hi,

     Anyone have dumps for 70-488   "Developing Microsoft SharePoint Server 2013 Core Solutions".If anyone have can you please send the dumps.Thanks in advance.

 

Jquery for sharepoint document library form to fileter dropdown/lookup field

I have created a document library to update status of a ongoing process. I have created a lookup column "status" with options 
Initiated,
Reivew-in Progress,
Review-Denied,
Review-Approved,
Verification-In progress,
Verification-Denied,
Verification-Approved.
The demand from the client is they want to see - 'Initiated'in the form while adding a new document,other options should be hidden/disabled.
The next time when they edit the form,they want to see just :
Reivew-in Progress,
Review-Denied,
Review-Approved.
Other options should be hidden/disabled.
On the next step they want to see 
Verification-In progress,
Verification-Denied,
Verification-Approved.
other options should be hidden/disabled.

I have worked with cascade drop down but i have no idea how to filter a single dropdwn/lookup field.Is there any way to implement this? Any help would be appreciated.
Thank you.

X-Frame-Options Issue with different farms

I am developing an on premise sharepoint hosted app which among other things creates a custom ribbon action that opens a dialog page where a javascript code is executed.

In my test environment and where I started developing the app everything worked well .

When I deploy into production app fails when opening the dialog page the following message in browser debugger:

Refused to display 'http://tenant-8627c81ea4c506.my-apps.local/MyApp/Pages/Informe…SSTabPersistence

&ItemUrl=Lists/Informes/12557_.000&IsDlg=1'in a frame because it set'X-Frame-Options' to 'SAMEORIGIN'.

I already have the tag <WebPartPages : AllowFraming runat = " server" /> embedded in the .aspx page.

I can´t understand why the app worked well in testing environment but not in production.

Any ideas?

Thank you in advance!

Jquery for sharepoint document library form to filter dropdown/lookup field

I have created a document library to update status of a ongoing process. I have created a lookup column "status" with options 
Initiated,
Reivew-in Progress,
Review-Denied,
Review-Approved,
Verification-In progress,
Verification-Denied,
Verification-Approved.
The demand from the client is they want to see - 'Initiated'in the form while adding a new document,other options should be hidden/disabled.
The next time when they edit the form,they want to see just :
Reivew-in Progress,
Review-Denied,
Review-Approved.
Other options should be hidden/disabled.
On the next step they want to see 
Verification-In progress,
Verification-Denied,
Verification-Approved.
other options should be hidden/disabled.

I have worked with cascade drop down but i have no idea how to filter a single dropdwn/lookup field.Is there any way to implement this? Any help would be appreciated.
Thank you.


How to open a aspx page in a sp modal dialog for ipad?

I have a scenario where I need to open a aspx page, inside a SP Modal Dialog.

I have created the same and it is working perfectly in every browser except IPAD.

Is there any different approach needs to be taken if I want to view SP Modal dialog in IPAD?

Thanks in Advance,

Arindam

How to get site workflow tasks not list workflow tasks in SharePoint 2013 programatically ?

i want to customize wrkstat.aspx based on site workflow not list workflow, so i want to filter section of tasks view to filtering based on site workflow, i made this to list workflow and i cannot do that to site workflow.

Please advise me.

Thanks.

Viewing all 25064 articles
Browse latest View live


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