Access SharePoint Data
Hi, company A and B wants to implement SharePoint. They both have a data and want to integrate both. What is the best approach to achieve it, do i need to store both data at centralized location(cloud), or do i need to store data in the database
and consume data using web service.
Hi,
For your issue, you can build SharePoint farm with Corporate portal both on company A and B , and store data at centralized location (cloud) and consume data using Business Connectivity Services.
For more information, you can have a look at the blog:
http://technet.microsoft.com/en-in/library/cc261995(v=office.15).aspx
http://technet.microsoft.com/en-us/library/ee661740(v=office.15).aspx
http://www.ilovesharepoint.com/2011/11/connecting-sql-azure-with-sharepoint.html
Best Regards,
Eric
Eric Tao
TechNet Community Support
Similar Messages
-
I've installed SQL Server 2012 SP1 + SP server 2012 + SSRS and PowerPivot add-in.
I also configured excel services correctly. Everything works fine but the powerview doesn't work!
While I open an excel workbook consist of a PowerView report an error occurs: "An error occurred while loading the model for the item or data source 'EntityDataSource'. Verify that the connection information is correct and that you have permissions
to access the data source."
error detail:
<detail><ErrorCode xmlns="http://www.microsoft.com/sql/reportingservices">rsCannotRetrieveModel</ErrorCode><HttpStatus xmlns="http://www.microsoft.com/sql/reportingservices">400</HttpStatus><Message xmlns="http://www.microsoft.com/sql/reportingservices">An
error occurred while loading the model for the item or data source 'EntityDataSource'. Verify that the connection information is correct and that you have permissions to access the data source.</Message><HelpLink xmlns="http://www.microsoft.com/sql/reportingservices">http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&EvtID=rsCannotRetrieveModel&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=11.0.3128.0</HelpLink><ProductName
xmlns="http://www.microsoft.com/sql/reportingservices">Microsoft SQL Server Reporting Services</ProductName><ProductVersion xmlns="http://www.microsoft.com/sql/reportingservices">11.0.3128.0</ProductVersion><ProductLocaleId
xmlns="http://www.microsoft.com/sql/reportingservices">127</ProductLocaleId><OperatingSystem xmlns="http://www.microsoft.com/sql/reportingservices">OsIndependent</OperatingSystem><CountryLocaleId xmlns="http://www.microsoft.com/sql/reportingservices">1033</CountryLocaleId><MoreInformation
xmlns="http://www.microsoft.com/sql/reportingservices"><Source>ReportingServicesLibrary</Source><Message msrs:ErrorCode="rsCannotRetrieveModel" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&EvtID=rsCannotRetrieveModel&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=11.0.3128.0"
xmlns:msrs="http://www.microsoft.com/sql/reportingservices">An error occurred while loading the model for the item or data source 'EntityDataSource'. Verify that the connection information is correct and that you have permissions to access the
data source.</Message><MoreInformation><Source>Microsoft.ReportingServices.ProcessingCore</Source><Message msrs:ErrorCode="rsErrorOpeningConnection" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&EvtID=rsErrorOpeningConnection&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=11.0.3128.0"
xmlns:msrs="http://www.microsoft.com/sql/reportingservices">Cannot create a connection to data source 'EntityDataSource'.</Message><MoreInformation><Source></Source><Message>For more information about this error navigate
to the report server on the local server machine, or enable remote errors</Message></MoreInformation></MoreInformation></MoreInformation><Warnings xmlns="http://www.microsoft.com/sql/reportingservices" /></detail>
Please help me to solve this issue. I don't know if uploading the excel workbook is enough or maybe It needed to connect to another data source.
I Appreciate in advance.Hi Ali.y,
Based on the current error message, the error can be related to the
Claims to Windows Token Service (C2WTS) and is an expected error under certain conditions. To verify the issue, please check the aspects below:
1. The C2WTS Windows service and C2WTS SharePoint service are both running.
2. Check the SQL Server Browser service is running on the machine that has the PowerPivot instance of SSAS.
3. Check the domain. You're signing into SharePoint with a user account in some domain (call it Domain A). When Domain A is equal to Domain B which SharePoint server itself is located (they're the same domain), or Domain
A trusts Domain B.
In addition, the error may be caused by Kerberos authentication issue due to missing SPN. In order to make the Kerberos authentication work, you need to configure the Analysis Services to run under a domain account, and register the SPNs for the Analysis
Services server.
To create the SPN for the Analysis Services server that is running under a domain account, run the following commands at a command prompt:
• Setspn.exe -S MSOLAPSvc.3/Fully_Qualified_domainName OLAP_Service_Startup_Account
Note: Fully_Qualified_domainName is a placeholder for the FQDN.
• Setspn.exe -S MSOLAPSvc.3/serverHostName OLAP_Service_Startup_Account
For more information, please see:
How to configure SQL Reporting Services 2012 in SharePoint Server 2010 / 2013 for Kerberos authentication
Regards,
Heidi Duan
Heidi Duan
TechNet Community Support -
Accessing External Data from SharePoint 2010
I want to access external data from my SharePoint site.
I'm told that I need to follow these two articles.
http://msdn.microsoft.com/en-us/library/ff953161.aspx
http://msdn.microsoft.com/en-us/library/ff625800.aspx
I followed the first article but I get this error when I open the external list in my SharePoint site:
"Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator."
I don't know how to write a custom code
BTW I have installed PowerPivot on my SharePoint server.
Can someone please help me? I need to do this very quickly.Hi,
Can you please elaborate whether the data you are getting is from excel file or from database.
1. If you are populating it from excel , then you can use the Excel service, Power pivot etc mechanism.
2. If you are getting it from SQL database then you can use BCS service application and use the OOTB external list and content type to display the same in your home page.
Links of artcles are given below.
http://www.concurrency.com/blog/accessing-external-data-using-business-connectivity-services-in-sharepoint-2010/
http://msdn.microsoft.com/en-us/library/ff677562(v=office.14).aspx
Hope this will help.
Thanks and Regards, -- Santanu Kumar Choudhury ----- SharePoint 2007/10/13 Developer -
Access SharePoint Online Data through code/powershell
Hi All,<o:p></o:p>
I need to access SharePoint Online site to upload documents from local machine to the doc libraries on the site.. (100s of docs)
I am trying to see if I can use PowerShell script for this.. However, I see that SharePoint Online Management Shell cmdlets are not robust enough to do such operations.. Is there a way I can use CSOM / .net console app / any other way.. I am drawing
blank here.. L<o:p></o:p>
Any help is much appreciated.<o:p></o:p>
CharanYou can start from here
http://blogs.technet.com/b/fromthefield/archive/2014/02/19/office365-script-to-upload-files-to-a-document-library-using-csom.aspx
Regards Chen V [MCTS SharePoint 2010] -
Getting HTTP 403/500 errors when accessing SharePoint 2010 pages
Hi,
I'm getting intermittent HTTP 403/500 errors when accessing SharePoint Foundation 2010 pages.
When it happens, any SharePoint pages I access I get a HTTP 403 error (example: /sites/test/default.aspx) . If I don't specify a page, I get a HTTP 500 error (example: /sites/test/). What's odd is that I have non-SharePoint .NET applications running on the
same server under the "_layouts" directory and those still work just fine.
After recycling the IIS application pool, it starts to work again, but sometime won't stay up very long.
Does anyone encounter this problem before?
TIA
Also, I'm hoping to understand what the "Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo" method does to help me track down this issue. If you have any info on what the above method is doing, I really appreciated.
EVENT LOG
Nothing
ULS LOG
System.Runtime.InteropServices.COMException: Cannot complete this action. Please try again.
at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts,
Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent,
Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags,
Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder)
at Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts,
Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent,
Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags,
Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder)These are the associated lines in the ULS.
01/07/2014 02:59:24.33 w3wp.exe (0x1988) 0x10A4 SharePoint Foundation Logging Correlation Data xmnv Medium Name=Request (GET:https://XXXXXXXXXXXXXXXXXXXXX)
e8e08e76-1b88-4913-bce6-b9300e7b63f6
01/07/2014 02:59:24.48 w3wp.exe (0x1988) 0x10A4 SharePoint Foundation General 8kh7 High Cannot complete this action. Please try
again. e8e08e76-1b88-4913-bce6-b9300e7b63f6
01/07/2014 02:59:24.48 w3wp.exe (0x1988) 0x10A4 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (PostResolveRequestCacheHandler).
Execution Time=6.79828022835305 e8e08e76-1b88-4913-bce6-b9300e7b63f6
01/07/2014 02:59:24.48 w3wp.exe (0x1988) 0x10A4 SharePoint Foundation Runtime tkau Unexpected System.Runtime.InteropServices.COMException:
Cannot complete this action. Please try again. at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32
iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid&
pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl,
Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies,
Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder) at Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet,
String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage,
String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders,
String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32&
pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder) e8e08e76-1b88-4913-bce6-b9300e7b63f6
01/07/2014 02:59:24.48 w3wp.exe (0x1988) 0x10A4 SharePoint Foundation General 8kh7 High Cannot complete this action. Please try
again. e8e08e76-1b88-4913-bce6-b9300e7b63f6
01/07/2014 02:59:24.48 w3wp.exe (0x1988) 0x10A4 SharePoint Foundation General 8kh7 High Cannot complete this action. Please try
again. e8e08e76-1b88-4913-bce6-b9300e7b63f6
01/07/2014 02:59:24.50 w3wp.exe (0x1988) 0x10A4 SharePoint Foundation General 8kh7 High Cannot complete this action. Please try
again. e8e08e76-1b88-4913-bce6-b9300e7b63f6
01/07/2014 02:59:24.50 w3wp.exe (0x1988) 0x10A4 SharePoint Foundation General 8kh7 High Cannot complete this action. Please try
again. e8e08e76-1b88-4913-bce6-b9300e7b63f6
01/07/2014 02:59:24.50 w3wp.exe (0x1988) 0x10A4 SharePoint Foundation General 8kh7 High Cannot complete this action. Please try
again. e8e08e76-1b88-4913-bce6-b9300e7b63f6
01/07/2014 02:59:24.50 w3wp.exe (0x1988) 0x10A4 SharePoint Foundation General 8kh7 High Cannot complete this action. Please try
again. e8e08e76-1b88-4913-bce6-b9300e7b63f6
01/07/2014 02:59:24.50 w3wp.exe (0x1988) 0x10A4 SharePoint Foundation General 8kh7 High Cannot complete this action. Please try
again. e8e08e76-1b88-4913-bce6-b9300e7b63f6
01/07/2014 02:59:24.50 w3wp.exe (0x1988) 0x10A4 SharePoint Foundation General 8kh7 High Cannot complete this action. Please try
again. e8e08e76-1b88-4913-bce6-b9300e7b63f6
01/07/2014 02:59:24.51 w3wp.exe (0x1988) 0x10A4 SharePoint Foundation General 8kh7 High Cannot complete this action. Please try
again. e8e08e76-1b88-4913-bce6-b9300e7b63f6
01/07/2014 02:59:24.51 w3wp.exe (0x1988) 0x10A4 SharePoint Foundation General 8kh7 High Cannot complete this action. Please try
again. e8e08e76-1b88-4913-bce6-b9300e7b63f6
01/07/2014 02:59:24.51 w3wp.exe (0x1988) 0x10A4 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (GET:https://XXXXXXXXXXXXXXXXXXXXX)).
Execution Time=187.132582493026 e8e08e76-1b88-4913-bce6-b9300e7b63f6
Thanks, -
Hi Experts,
I am facing an issue while accessing SharePoint 2013 news feed REST api URL <SiteCollectionURL>/_api/social.feed/my/news from browser giving error "The server encountered an
error processing the request. See server logs for more details."
This is happening after posting the image to news feed without entering any text or description with that. If i post an image with some text or description, then i can able to get the feeds. Or else if i delete the image post then also i can able to get
the feeds.
I can able to see below logs in log files.
Exception occured in scope Microsoft.Office.Server.Social.SPSocialRestFeed._SerializeToOData. Exception=System.MissingMethodException: No parameterless constructor defined for this object. at System.RuntimeTypeHandle.CreateInstance(RuntimeType
type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache,
StackCrawlMark& stackMark) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type) at Microsoft.SharePoint.C...
...lient.ValueTypeConverter.<GetODataProperties>d__2.MoveNext() at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteProperties(IEdmStructuredType owningType, IEnumerable`1 cachedProperties, Boolean isWritingCollection,
Action beforePropertiesAction, Action afterPropertiesAction, DuplicatePropertyNamesChecker duplicatePropertyNamesChecker, EpmValueCache epmValueCache, EpmSourcePathSegment epmSourcePathSegment, ProjectedPropertiesAnnotation projectedProperties)
at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteComplexValue(ODataComplexValue complexValue, IEdmTypeReference metadataTypeReference, Boolean isOpenPropertyType, Boolean isWritingCollection, Action beforeValueAction, Action afterValueAction,
DuplicatePropertyNamesChecker duplicatePropertyNa...
...mesChecker, CollectionWithoutExpectedTypeValidator collectionValidator, EpmValueCache epmValueCache, EpmSourcePathSegment epmSourcePathSegment, ProjectedPropertiesAnnotation projectedProperties) at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteProperty(ODataProperty
property, IEdmStructuredType owningType, Boolean isTopLevel, Boolean isWritingCollection, Action beforePropertyAction, EpmValueCache epmValueCache, EpmSourcePathSegment epmParentSourcePathSegment, DuplicatePropertyNamesChecker duplicatePropertyNamesChecker,
ProjectedPropertiesAnnotation projectedProperties) at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteProperties(IEdmStructuredType owningType, IEnumerable`1 cachedProperties, Boolean isWritingCollection, Action beforePropertie...
...sAction, Action afterPropertiesAction, DuplicatePropertyNamesChecker duplicatePropertyNamesChecker, EpmValueCache epmValueCache, EpmSourcePathSegment epmSourcePathSegment, ProjectedPropertiesAnnotation projectedProperties) at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteComplexValue(ODataComplexValue
complexValue, IEdmTypeReference metadataTypeReference, Boolean isOpenPropertyType, Boolean isWritingCollection, Action beforeValueAction, Action afterValueAction, DuplicatePropertyNamesChecker duplicatePropertyNamesChecker, CollectionWithoutExpectedTypeValidator
collectionValidator, EpmValueCache epmValueCache, EpmSourcePathSegment epmSourcePathSegment, ProjectedPropertiesAnnotation projectedProperties) at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSeriali...
...zer.WriteCollectionValue(ODataCollectionValue collectionValue, IEdmTypeReference propertyTypeReference, Boolean isOpenPropertyType, Boolean isWritingCollection) at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteProperty(ODataProperty
property, IEdmStructuredType owningType, Boolean isTopLevel, Boolean isWritingCollection, Action beforePropertyAction, EpmValueCache epmValueCache, EpmSourcePathSegment epmParentSourcePathSegment, DuplicatePropertyNamesChecker duplicatePropertyNamesChecker,
ProjectedPropertiesAnnotation projectedProperties) at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteProperties(IEdmStructuredType owningType, IEnumerable`1 cachedProperties, Boolean isWritingCollection, Action beforePropertiesAction,
Action afterPropertiesAct...
Can anyone please help me out.
Thanks!
dineshO365,
Is this still an issue?
Thanks!
Ed Price, Azure & Power BI Customer Program Manager (Blog,
Small Basic,
Wiki Ninjas,
Wiki)
Answer an interesting question?
Create a wiki article about it! -
Managed Metadata fields using "entire path to the term" - how can I access this data?
We are trying to make it easier for our users to enter metadata, so the hierarchy is really useful and we can display it as the "full path to the term".
eg. country, region, town
But there are times when we need an individual piece of data like region.
Calculated fields do not work. :-(
So I have been trying to access the data from a SharePoint Designer Workflow.
But - I can only get to the leaf node element - the last value from the selection.
Does anyone know a trick to get the full hierarchy string of Country-region-town???
Many Thanks
Ruth
Ruth, UKHi Ruth,
Per my knowledge, there is no OOB way to retrieve the entire path of the managed metadata column value.
However, you can use the code sample to get the Managed Metadata Hierarchy, please refer to the link below:
http://msdn.microsoft.com/en-us/library/ff823725.aspx
More reference:
http://zimmergren.net/technical/sp-2010-introduction-to-programmatically-working-with-taxonomies-in-sharepoint-server-2010
Thanks,
Victoria
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Victoria Xia
TechNet Community Support -
How to get Client ID and Client Secret for Office App for Word which accessing SharePoint Online
we currently implementing an Office App for MS Word which access SharePoint list and get data from lists. Our aim is any user can get this app from Office App store and enter their SharePoint URL and browse their own SharePoint lists and use those. When
I was checking mechanisms which you used to access SharePoint, in some of them have used ClientId and Client Secret to authenticate with SharePoint. I have following questions.
1.If I want to sell my app using Office app store where can I get those clientId and client secret which is used to get the access tokens.
2.Is it possible to create SharePoint app and publish it to SharePoint app store and get clientId and client secret and use it when accessing through office. So users first download our SharePoint app install it to their SharePoint environment then get out
Office App from Office app store and add it to word. Will this work?Hi,
>> We are planning to develop an Office app to access SharePoint Online and SharePoint on Premise from Microsoft word.
I’m not very familiar with SharePoint development, so please correct me if I have any misunderstandings about your requirement.
The basic components of an app for Office are an XML manifest file and the default webpage of your app (server side).
>> If I'm publishing my Office App for Word in to the Microsoft office app store, how do I get the ClientId and ClientSecret which I need to pass to authenticate with SharePoint online?
As far as I know, when register your web app to SharePoint Online, you will get the ClientId and ClientSecret from the Azure Active Directory. And you need to store the Client ID and Client
Secret on the app server side.
For details, you could reference the article
Building an Office 365 ASP.NET MVC app.
>> If ClientId and ClientSecret not providing when we publishing Word Office App to the app store how what the ways which we can use to authenticate with SharePoint using Word Office app?
You don’t need to provide the ClientId and ClientSecret when publishing your App to App Store. They are stored on your app server side.
By the way, if you have the question about how to access the SharePoint resource in a Web Application, I will suggest you posting the questions to
SharePoint Development Forum. For this forum, we mainly discuss the questions about using the Office JavaScript API to develop Apps for Office.
Regards,
Jeffrey
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
SharePoint data / document encryption options: experiences and recommendations
Hi,
I'm evaluating the options to implement an encryption of the data / documents that are saved in SharePoint (2013).
The important requirement is that SharePoint administrators (farm admins) are not able to access the data / documents, so the encryption / security can be managed independently by a different team. This is because the SharePoint infrastructure is managed by
a service provider and data / documents should only be accessible by our company not the service provider.
Does anybody have experience with this and can recommend tools / services for this?
One option I’m evaluating is the CORISECIO Gateway Server. Does anybody have experience with this?
Thanks and best regardsHi,
You can refer the Cipherpoint Eclipse for SharePoint which meets your requirement.
Please refer to the link for complete details.
Cipherpoint Eclipse
Cipherpoint team had demo with us recently, they showed how encryption and decryption handles with SharePoint 2013. Their product even support Office 365 for SharePoint. I really liked the product. You can also request for the demo with them.
Please mark it answered, if your problem resolved. -
Unable to access the data and table fields from handheld
Hi,
I've created a Testing.sdf file on the local pc using SQL Server Management Studio, creating table, fields and insert some data. in local pc i can access the the data as normal. the problem is after i moved the file to handheld device i
cannot access the data within the table, it shown error 'Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)' . I tried to google it, but still got no solution.
Thanks,'Name Space
Imports System.Data.SqlServerCe
'String Connection
'Data Source = D:\SKUDWN3 .sdf'
Public Sub CreateDB(ByVal StrConn As String)
'Declaration
Dim cn As SqlCeConnection = Nothing
Dim cm As SqlCeCommand = Nothing
Dim SQLEngine As SqlCeEngine = Nothing
Dim rs As SqlCeResultSet = Nothing
Dim rec As SqlServerCe.SqlCeUpdatableRecord = Nothing
'Tables -
Const TB_SKUDWN3 As String = "SKUDWN3"
'Fields TB_SKUDWN3
Const FL_SKUDWN3_UPC As String = "UPC"
Const FL_SKUDWN3_SKU As String = "SKU"
Const FL_SKUDWN3_LD As String = "LD"
Const FL_SKUDWN3_SD As String = "SD"
Const FL_SKUDWN3_AN As String = "AN"
Const FL_SKUDWN3_Price As String = "Price"
Const FL_SKUDWN3_GST_FLAG As String = "GSTFLAG"
'Create Database
SQLEngine = New SqlCeEngine(StrConn)
SQLEngine.CreateDatabase()
SQLEngine.Dispose()
'Open Connection
If IsNothing(cn) Then cn = New SqlCeConnection(StrConn)
If cn.State = Data.ConnectionState.Closed Then cn.Open()
cm = cn.CreateCommand
'Create Table, Fields
cm.CommandText = "CREATE TABLE " & TB_SKUDWN3 & " (" & FL_SKUDWN3_UPC & " NVARCHAR (13)," & _
" " & FL_SKUDWN3_SKU & " NVARCHAR (9), " & FL_SKUDWN3_LD & " NVARCHAR(30)," & _
" " & FL_SKUDWN3_SD & " NVARCHAR (18), " & FL_SKUDWN3_AN & " NVARCHAR(15), " & _
" " & FL_SKUDWN3_Price & " NVARCHAR (10), " & FL_SKUDWN3_GST_FLAG & " BIT)"
cm.ExecuteNonQuery()
'Close Connection
cm = Nothing
If Not IsNothing(cn) Then
If cn.State = ConnectionState.Open Then cn.Close()
cn.Close()
cn.Dispose()
End If
End Sub
'The DB was successfully created, but after moving to Handheld the fields of table can't be accessed -
Unable to access the data from Data Management Gateway: Query timeout expired
Hi,
Since 2-3 days the data refresh is failing on our PowerBI site. I checked below:
1. The gateway is in running status.
2. Data source is also in ready status and test connection worked fine too.
3. Below is the error in System Health -
Failed to refresh the data source. An internal service error has occurred. Retry the operation at a later time. If the problem persists, contact Microsoft support for further assistance.
Error code: 4025
4. Below is the error in Event Viewer.
Unable to access the data from Data Management Gateway: Query timeout expired. Please check 1) whether the data source is available 2) whether the gateway on-premises service is running using Windows Event Logs.
5. This is the correlational id for latest refresh failure
is
f9030dd8-af4c-4225-8674-50ce85a770d0
6.
Refresh History error is –
Errors in the high-level relational engine. The following exception occurred while the managed IDataReader interface was being used: The operation has timed out. Errors in the high-level relational engine. The following exception occurred while the
managed IDataReader interface was being used: Query timeout expired.
Any idea what could have went wrong suddenly, everything was working fine from last 1 month.
Thanks,
RichaNever mind, figured out there was a lock on SQL table which caused all the problems. Once I released the lock it PowerPivot refresh started working fine.
Thanks. -
How do I access session data through an EJB?
Hi
How do I access session data through an EJB?
I am currantly developing a Web service (using ejb's, JBoss.net and Apache Axis). A client making a call to this Web service, is expecting a bussiness-object in return. My problem is that this bussiness-object i stored in a users session data. How do I retrieve this bussiness-object from the users session.
I have read that this does not work with httpsessions, is this true? If this is true, is it possible to store the bussiness object in a JavaBean e.g:
<jsp:useBean id="userContextWebImpl" scope="session" class="com.ac.march.client.UserContextWebImpl">
<%
String key = "test";
String value = "This is the value";
userContextWebImpl.setValue( key, value1 );
%>
</jsp:useBean>
and then retrieve this information through the EJB? Or is it possible to do this by using Statfull JavaBeans? Or can this be done through a nother solution?
Please help!I have created a JavaBean with scope="application" to store some data. The data is stored when a user prefomes a spesific task.
A different person then makes a call to a Web-Service on the server. The Web-Service then asks an EJB to retrieve the data stored in the JavaBean (servlet cotext). In other words: How do I retrieve this data from the EJB?
I have tried with this code, but with no luck.
(ApplicationContextWebImpl is the JavaBean)
public static String getBookingResult( String key )
String myResult = null;
String myKey = key;
ApplicationContextWebImpl applicationContextWebImpl = null;
try
applicationContextWebImpl = new ApplicationContextWebImpl();
myResult = (String)applicationContextWebImpl.getValue( key );
catch ( java.rmi.RemoteException e )
return myResult;
} -
Sharepoint 2010 - Not able to access Sharepoint 2010 Public facing site on mobile browsers
Hi All,
Earlier, I posted a similar question in the forum , but did not get appropriate response . Posting it again with some more information .
We are not able to access Sharepoint public facing site on Mobile browsers like chrome, IE, Safari (However the site is working fine on Firefox mobile browser and on PC/Laptops as well .)
Following is the error we are getting :
"Cannot set custom attribute on mobile controls in this page. Custom attributes specified are Access Key=0."
I checked in the event logs , following was the exception :
Exception captured in Exception HttpModule: System.Web.HttpException: Server cannot append header after HTTP headers have been sent.
at System.Web.HttpResponse.set_RedirectLocation(String value)
at Microsoft.SharePoint.Utilities.SPMobileUtility.Redirect(String url, SPRedirectFlags flags, HttpContext context, String queryStrings)
at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.HandleMobilePageRequest(HttpContext context)
at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.PostResolveRequestCacheHandler(Object oSender, EventArgs ea)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Also, there was a microsoft OS security patching on our farm servers post which the error starts coming . Following were the patches that were installed
1. MS14-005
KB2916036 Security Update for Windows Server 2008 R2 x64
Edition (KB2916036)
MS14-009
KB2898857 Security Update for Microsoft .NET Framework 3.5.1
2. on Windows 7 and Windows Server 2008 R2 SP1 for x64-based Systems
(KB2898857)
3. MS14-009
KB2901112 Security Update for Microsoft .NET Framework 3.5.1
on Windows 7 and Windows Server 2008 R2 SP1 for x64-based Systems
(KB2901112)
4. MS14-009
KB2911501 Security Update for Microsoft .NET Framework 3.5.1
on Windows 7 and Windows Server 2008 R2 SP1 for x64-based Systems
(KB2911501)
5. MS14-011
KB2909210 Security Update for Windows Server 2008 R2 x64
Edition (KB2909210)
6. MS14-012
KB2925418 Cumulative Security Update for Internet Explorer 8
for Windows Server 2008 R2 x64 Edition (KB2925418)
7. MS14-015
KB2930275 Security Update for Windows Server 2008 R2 x64
Edition (KB2930275)
8. MS14-016
KB2923392 Security Update for Windows Server 2008 R2 x64
Edition (KB2923392)
Has anyone of you ever faced similar(site not opening on mobile browsers) issue after installing these patches on farm servers .
Any help would be much appreciated .
Thanks
Saquib KhanWe have found below error related in ULS as well as event viewer both :
Exception captured in Exception HttpModule: System.Web.HttpException: Server cannot append header after HTTP headers have been sent.
at System.Web.HttpResponse.set_RedirectLocation(String value)
at Microsoft.SharePoint.Utilities.SPMobileUtility.Redirect(String url, SPRedirectFlags flags, HttpContext context, String
queryStrings)
at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.HandleMobilePageRequest(HttpContext context)
at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.PostResolveRequestCacheHandler(Object oSender, EventArgs ea)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Saquib Khan -
Hi,
We have a SharePoint farm consisting of one web front end server and one database server, running SharePoint Foundation 2013. This farm has been up and running for over a year and uses AD for authentication, and SharePoint groups for authorization.
The problem we are seeing is when we create a new Organizational Unit in AD, and add users under this new OU they are prompted for their credentials when trying to access SharePoint. We've done the below tests to narrow the issue down:
1) New user (xxx) in new OU (111) logs into Windows PC and tries to access SharePoint via IE 10 -- they are prompted for their credentials. They are required to enter their username as 'domain\username' to be able to log in successfully to SharePoint.
2) Existing user (yyy), in existing OU (222) logs into same Windows PC and tries to access SharePoint via IE 10 -- they are NOT prompted for their credentials and get into SharePoint successfully.
3) Existing user (yyy) is moved into new OU (111), logs into same Windows PC and tries to access SharePoint via IE 10 -- they are prompted for credentials and need to use 'domain\username' to log in to SharePoint
4) Existing user (yyy) is moved out of new OU (111) and back into their old OU (222), logs into same Windows PC and tries to access SharePoint via IE 10 -- they are prompted for credentials and need to use 'domain\username' to log in to SharePoint
Note: both the new OU (111) and old OU (222) are within the same parent OU.
1 & 2 combined tell me that it's not a PC or IE issue. We've also tried 1 & 2 on multiple PCs so that would eliminate a profile issue as well.
To me it seems that SharePoint doesn't know that the new OU is in our domain, so it doesn't think the users within the new OU are in our domain, which is why they have to supply the domain with their username when logging in...but I'm not exactly an expert
when it comes to AD so this is just a guess on my part.
As a long shot, what I thought may fix it would be by syncing AD with SharePoint by using User Profile Synchronization, but it's not offered as part of SharePoint Foundation, so I used this nice solution at CodePlex (https://foundationsync.codeplex.com/),
but that did not fix it.
Does anyone have any ideas on how to fix this? Or what the issue may be?
Thanks,
ShaunHi Christopher,
Thanks for the reply.
I feel very stupid right now -- I did look at this before posting this question to the forum, but it seems I didn't look far enough.
We have a GPO that enters our domain into the 'Local intranet' of IE. Our SharePoint site's URL is "http://sharepoint.ourdomain.com" and we've got "*.ourdomain.com" under Local intranet sites. But, I also found the FQDN "sharepoint.ourdomain.com"
under 'Trusted sites' and that seems to confuse SharePoint because once I moved the FQDN to Local intranet, and removed it from Trusted Sites, the user is now not prompted for their credentials when going into SharePoint.
Thanks for your reply in making me take a second look.
EDIT: We've just removed the FQDN from Local intranet, so all we have is "*.ourdomain.com" under Local intranet and it works as well.
Regards,
Shaun -
ADF application to access WLS data source .
Hi,
I have developed an ADF application in Jdeveloper 10.3.3 and deployed on Weblogic server. Now I want my application to access the data from data source created in WLS. I have created a data source (ds_demo) using the WebLoigc server option Services -> JDBC -> Data Sources.Target has been set to the default server where application is running.
Now I want application to access the database over the data source ds_demo. How can I do that?. Please provide any pointers.
Thanks & Regards,
MBYou should be able to use Java code like this to directly obtain the WLS data source if you're using a POJO/DAO :
Context ctx = null;
DataSource ds;
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL, "t3://localhost:7001");
ctx = new InitialContext(ht);
ds = (DataSource)ctx.lookup("DataSourceJNDINameHere");
This assumes you're deploying this on the same server hosting the datasource and that it's on port 7001.
Maybe you are looking for
-
Suddenly cannot send email but can receive email
I am running OSX 10.8.2 on a MacPro desktop. I have been using Mail sucessfuly since I originally installed Mountain Lion but now it suddenly has stopped working. I have confirmed and reconfirmed my SMPT settings but have failed to send any mail. I s
-
A script to force acrobat to play avi content with built in flash player instead of quicktime
Hello, is there a script that would force acrobat to play embedded avi content with the built in flash player instead of the quicktime player? first reason is that the built in quicktime player doesn't play the avi files anyway (for me at least); an
-
How can I stop adobe flash plug in from crashing so many times?
I am using a netbook with Windows 7 starter. When I browse the net, and use well known websites such as ebay etc, I notice that adobe flash plug in crashes a lot. Why does this happen, and how can I fix this? Thanks very much for any assistance.
-
I can not open the account settings, I can not open the account settings
ارجوا من احد الأخوة مساعدتي اواجة مشكلة في حسب الخاص بي لا أستطيع فتحة كيف العمل وايش الحل
-
How can I Open a 3gp file to edit with final cut pro.