Creating app scoped external content type using Provider Hosted App in sharepoint 2013 using visual studio 2012
Hi,
I am creating provider hosted app in visual studio 2012 using app scoped external content type having OData with Northwind url
App manifest start page url :
ODataNewAppWeb/Pages/Default.aspx
In XML it is:
<StartPage>~remoteAppUrl/Pages/Default.aspx</StartPage>
When i am deploying app pressing F5 the app gets deployed successfully....
Now i am changing my start page url in Appmanifest like this:
ODataNewApp/Lists/Employees
In XML it looks like:
StartPage>~appWebUrl/Lists/Employees</StartPage>
When i am deploying app pressing F5 the app..
Getting register SOD error.....
I have followed all the steps like:
1)Creating app domain
2)Starting all the required services
3)Creating root site collection
But still no success.. Please help me on this.... I am struggling with this from two weeks...
Have you set up a wildcard DNS entry for the spapps.com domain?
Also if you're trying to connect from the server you might be hitting loop back check issues.
Similar Messages
-
Getting a error while running creating a sample page on sharepoint 2013 and visual studio 2013
hi,
When i trying to create a sample web service for create page dynamically to sharepoint 2013 using visualstudio 2013 getting a error message while consume the web service browser itself. so i have tried to change the target platform but
to 32 but its not possible but only "Any CPu" available on the list
Visual Studio :2013
Sharepoint 2013
Error msg :
Microsoft SharePoint is not supported in 32-bit process. Please verify that you are running in a 64-bit executable.
at Microsoft.SharePoint.Utilities.SPUtility.CheckFrameworkAndProcess()
at Microsoft.SharePoint.Administration.SPConfigurationDatabase.get_RegistryConnectionString()
at Microsoft.SharePoint.Administration.SPConfigurationDatabase.get_Local()
at Microsoft.SharePoint.Administration.SPFarm.FindLocal(SPFarm& farm, Boolean& isJoined)
at Microsoft.SharePoint.Administration.SPFarm.get_Local()
at Microsoft.SharePoint.SPSite..ctor(String requestUrl)
code :
<%@ WebService Language="C#" Class="sharepoint_cust_service" %>
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Publishing;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class sharepoint_cust_service : System.Web.Services.WebService {
[WebMethod]
public string HelloWorld() {
return "Hello World";
[WebMethod]
public void Export_To_Sharepoint()
SPSite site = null;
SPWeb web = null;
site = new SPSite("http://sites/pages/");
web = site.OpenWeb();
PublishingWeb publishingWeb = PublishingWeb.GetPublishingWeb(web);
SPContentTypeId contentType = new SPContentTypeId("NewContentTypeID");
PageLayout[] layouts = publishingWeb.GetAvailablePageLayouts(contentType);
PageLayout pageLayout = layouts[0];
string pageName = Server.MapPath("/newpage.aspx");
PublishingPage newPage = publishingWeb.GetPublishingPages().Add(pageName, pageLayout);
newPage.Update();
newPage.ListItem.File.CheckIn("created");
newPage.ListItem.File.Publish("created");
web.Dispose();
site.RootWeb.Dispose();
site.Dispose();
Software developergoto propeties of your project and click on build tab and select 64X or any cpu platformtarget as it should work .
-
Adding the PSWApproval Content Type to the Outcome Options in SharePoint 2013 Designer
Hi All,
I would like to add the "PSWApproval Task" Content Type in the sharepoint 2013designer, in the process of creating a project server 2013 workflow.
By default the Share point Designer is taking the Task content Type as Workflow Task. Can some one help me adding the PSWApproval Task here. Attached is the snapshot of the same.
ThanksIts funny I am researching tis very topic right now. I have a SP2010 environment I will be migrating to 2013. My content types were used in multiple site collections without creating or using a content type hub. So, I am looking for information to create
a strategy to get them into one.
I have in excess of 400 Custom content types. Also - Has anyone developed/documented a process for being able to rebuild/migrate data between content types. Part of what we are looking to do prior to implementing a new records management
project
James Moore -
External content type based on OData is not crawlable
Hi all,
I followed instructions from this msdn article
How to: Create an external content type from an OData source in SharePoint 2013. I've created an external content type based on OData. I imported created bdcm file to BCS store in central administration. So the ECT is scoped to the farm. I could create
an External List and the data from OData service was displayed. But I couldn't get the ECT crawlable. When I try to add a new content source in Search Service Application and select Line of Business Data it isn't possible to select External Data Source. I
tried to add IDEnumerator method and RootFinder property to the ECT in order to get it crawlable without any luck.
External Content Types based on MS SQL are crawlable fine.
Dmitry
Lightning Tools Check
out our SharePoint tools and web parts |
Lightning Tools Blog | Мой БлогHi,
In order to use the ECT for search you have to manually edit it as it's not complete for use with search. The two most important ones to add are:
ShowInSearchUI
RootFinder
I experienced the same issue when creating an OData BCS model for my session at the SPC2012 conference and I think those were the two properties I was missing (in addition to cleaning up some other stuff).
Take a look at
MSDN for more information on BDC model properties, and take a look at Search Connector Framework Troubleshooting for SP2010 which shows some samples.
Let me know if you need more help and I can provide a copy of my OData model (which is against an SP2010 site)
Thanks,
Mikael Svenson
Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
http://techmikael.blogspot.com/
Author of Working with FAST Search Server 2010 for SharePoint -
Hi,
I'm new to SharePoint 2013 I want to be able to query a MSSQL database from a SharePoint App I have tried to create an External Content Type (ECT) which is produced from a MSSQL stored Procedure, this procedure has several parameters which are needed to
filter the data correctly. From here I want to produce an external list which I can then query from a c# SharePoint app. If I leave the filters in the ECT null then the list is of course empty or if enter a default values the results are limited
for the app to query so are no good.
I want to dynamically pass values to the ECT when querying from the app, is this not possible. Should I just be returning everything in an external list and then letting the query in the app filter the data, this seems inefficient?
Is this the best way to do this or should I be doing this differently?
Please can someone point me in the right direction.
ThanksHi Pandra801,
When you create a the external content type, please try to add a filter based on your select statement.
http://arsalkhatri.wordpress.com/2012/01/07/external-list-with-bcs-search-filters-finders/
Or, try to create a stored procedure based on your select statement, then create ECT using the SQL stored procedure.
A step by step guide in designing BCS entities by using a SQL stored procedure
http://blogs.msdn.com/b/sharepointdev/archive/2011/02/10/173-a-step-by-step-guide-in-designing-bcs-entities-by-using-a-sql-stored-procedure.aspx
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Create BCS External Content Type or a list based on a WCF Web Service using Visual Studio
Hi ,
How to create a BCS External Content Type or a list Based on a WCF Web Service using Visual Studio.
The link provided here shows the requirement through Designer. http://msdn.microsoft.com/en-us/library/office/ee556431(v=office.14).aspx but I want this to be through VS code..
Please help ..Appreciate your help..
Thanks,
SatheeshHI Sateeshlt,
You can see the below link also;
http://www.fabiangwilliams.com/2013/10/14/part-2-of-3-blog-update-on-sharepoint-bcs-with-full-crud/
Best Regards,
Brij K -
Meaning of "Map To Identifier " while creating an External Content Type
In SharePoint 2010 Desginer, I created an External Content Type that retrieves data from a VIEW in SQL Server. In the wizard, I see "Map To Identifier." What is the purpose of that. I want to understand the meaning of Map To Identifier? Thank you.
MayankHi Mayank,
When we create database-based external content type, we could map the data source element to an identifier of the related external content type as input to the association.
In the Data Source Elements pane on the left side, select the data source element in the list. In the
Properties pane on the right side, select the Map to Identifier check box. In the
Identifier list, select the appropriate identifier.
The database object name is referred to as its identifier. An object identifier is created when the object is defined. The identifier is then used to reference the object.
http://msdn.microsoft.com/en-IN/library/ms175874.aspx
We map the field of the external content type to the identifier of the external content type.
http://msdn.microsoft.com/en-us/library/office/ee558417(v=office.14).aspx
Regards,
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] .
Rebecca Tu
TechNet Community Support -
Unable to edit ReadItem and ReadList operations on one specific external content type
I'm experiencing a strange behavior. Here is the scenario:
- In Sharepoint Designer I create external content type A that uses external system X
- I define ReadItem and ReadList operations for this external content type
- I then create external content B that uses the exact same external system X and define ReadItem and ReadList operations for this external content type
- I then go back to external content type A, select ReadList and click Edit This Operation
- I get a message : "This operation cannot be matched with any objects in your data source. There may be an error in the operation definition in Business Data Connectivity Metadata Store or the data source schema has changed since the operation
was created"
- I tried to edit ReadList operation of external content type B and it works with no problems.
- so I delete the ReadItem and ReadList operations for external content type A, refresh external system X, and then recreate the ReadItem and ReadList operations for external content type A.
- When I try to edit the ReadList (or ReadItem) operation I get the same error message and I'm not able to edit this operation.
This used to work a week or so ago, meaning that I was able to edit the ReadItem and ReadList operations for both external content types. Now, the operations cannot be edited anymore for external content type A but can be edited with no problems for
external content type B. For content type A, if I want to make any changes I have to delete the ReadItem and ReadList operations and recreate them. Does anybody have any idea as to what the problem might be? These two external content types
use the same external system which is a table of employees and project they worked on. The only difference is that external content type A has a filter by employee ID defined and external content type B has a filter by project ID defined.
thanks,Hi bbatl,
I did a test as the followigs:
Open SQL Management Studio, create a table containing a filed called “employee ID” and a filed called “project ID”.
Add some data into the table.
Open my site with SharePoint Designer 2010, create a new external content type called TestA.
Connect the external content type TestA to the table that I created in step 1.
Create Read Item and Read List operations in the content type. When creating Read List operation, add a filter based on “employee ID”.
Click Save.
Create another external content type called TestB
Connect the external content type TestB to the table which was created in step 1.
Create Read Item and Read List operations in the content type. When creating Read List operation, add a filter based on “project ID”.
Click Save.
Then I went back to edit the Read List operation of external content type TestA via clicking Read List operation under External Content Type operations->Edit Operation.
No error displayed.
So, I could not reproduce this issue.
Whether you got the error when you clicked “Edit Operation” in SharePoint Designer. Please provide a screenshot about this issue.
Please check whether someone has changed the table special for the column “employee ID”.
And whether you have created an external list using the problematic external content type. If yes, please check whether it could work well.
Best Regards,
Wendy
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]
Wendy Li
TechNet Community Support -
Access issue relating to external content types
Hi,
I was recently given permissions in the Central Administration to edit external content types. However, when I open Sharepoint Designer and click on External Content types, I am unable to view the existing external content types that was created by another
site collection admin. The message I see is "There are no items to show in this view." I have the same permission level as this admin.
Any suggestion in regards to resolving this?
Thanks in advance!
VidyaHi Vidya,
For your issue, please confirm below check list:
Do you have permission to access the Business Data Connectivity Service? You can verify this by trying to open Business Data Connectivity Service management page of Central Administration in the Browser.
If you cannot open, please ask permission for yourself from the farm administrator. Reference:
Business Connectivity Services security overview.
Do you have Edit , Execute and Selectable In Clients permissions for the external content type you want to view? If not, please ask permissions for yourself. Reference:
Set Permissions to External Content Type using PowerShell.
If the issue persists, please go to Central Administration->Application Management ->Manage services on server, restart the Business Data Connectivity Service.
Reference:
External content types: There are no items to show in this view
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Problems when trying to return information for External Content Types in Sharepoint 2013
This is my first post on the forum, until I tried on this problem but have not found anything.
When trying to return the information from the external content displays the following error:
Error retrieving data from mill. Administrators: query the server log for more information.
I do not know what else to do...Hi,
According to your post, my understanding is that you got an error when tried to return the information from the external content.
Did the error occur when you created a new external content type or created a external list?
You can check the steps with the following articles about how to create a external content type.
http://lightningtools.com/bcs/creating-an-external-content-type-with-sharepoint-designer-2013/
http://wyldesharepoint.blogspot.in/2012/12/sharepoint-2013-setting-up-external.html
If the error occurred with the external list, you can check the steps with the following article.
http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/01/08/how-to-create-external-data-column-in-sharepoint-2013.aspx
You can also check the event log and ULS log to see if anything unexpected occurred.
For SharePoint 2013, by default, ULS log is at
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Unable to deploy the provider hosted app on sharepoint server !!!
Hello,
I have simply created the provider hosted app by assigning the issuer ID !
Now, the SharePoint version of the app project is set as SharePoint Online.
However, when I deploy this project to SharePoint site, it shows following error :
Unknown SharePoint version: 16.0
In order to resolve this I changed the SharePoint version as SharePoint 2013
of the app project.
Though , I am getting following error on deployment:
The target version of the SharePoint site is 15.0.4569.1000, which is lower than the minimum supported SharePoint version of the app. To fix this, go to the SharePoint tab on the app for SharePoint project’s properties page, and change the Target
SharePoint Version property to the version of the SharePoint site or lower.
Would you please let me know how can I resolve this deployment error ?
Note : I am using MVC web Application template for web project
Thank you in advance.
Kind Regards,
Dipti ChhatrapatiNot sure, but this is straight.
Project type - apps for sharepoint --> Enter URL --> select type as provider hosted app --> MVC --> Authentication Option.
Now when publishing the project - SP App to SharePoint/Office Store and web portion to any web server ( i generally do it in Azure).
Thanks, Ashish | Please mark a post helpful/answer if it is helpful or answer your query. -
Claims aware Provider Hosted Apps - The SecurityToken was not well formed
Dear Friends,
Please help me,
I have Created a Provider hosted apps and converted Basic Provider Hosted Application into Claims Aware Provider Hosted Application in SharePoint 2013.
I did all configuration based on ADFS implementation.
The error we got is
Server Error in '/' Application.
ID4230: The SecurityToken was not well formed. Expecting element name 'SecurityContextToken', found 'SP'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IdentityModel.Tokens.SecurityTokenException: ID4230: The SecurityToken was not well formed. Expecting element name 'SecurityContextToken', found 'SP'.
Source Error:
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.
Stack Trace:
[SecurityTokenException: ID4230: The SecurityToken was not well formed. Expecting element name 'SecurityContextToken', found 'SP'.]
System.IdentityModel.Tokens.SessionSecurityTokenHandler.ReadToken(XmlReader reader, SecurityTokenResolver tokenResolver) +1082000
System.IdentityModel.Tokens.SessionSecurityTokenHandler.ReadToken(Byte[] token, SecurityTokenResolver tokenResolver) +100
System.IdentityModel.Services.SessionAuthenticationModule.ReadSessionTokenFromCookie(Byte[] sessionCookie) +623
System.IdentityModel.Services.SessionAuthenticationModule.TryReadSessionTokenFromCookie(SessionSecurityToken& sessionToken) +164
System.IdentityModel.Services.SessionAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs eventArgs) +173
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.19453
Regards
Jenkins NS
Thanks & Regards JenkinsDear Friends,
Please help me,
I have Created a Provider hosted apps and converted Basic Provider Hosted Application into Claims Aware Provider Hosted Application in SharePoint 2013.
I did all configuration based on ADFS implementation.
The error we got is
Server Error in '/' Application.
ID4230: The SecurityToken was not well formed. Expecting element name 'SecurityContextToken', found 'SP'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IdentityModel.Tokens.SecurityTokenException: ID4230: The SecurityToken was not well formed. Expecting element name 'SecurityContextToken', found 'SP'.
Source Error:
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.
Stack Trace:
[SecurityTokenException: ID4230: The SecurityToken was not well formed. Expecting element name 'SecurityContextToken', found 'SP'.]
System.IdentityModel.Tokens.SessionSecurityTokenHandler.ReadToken(XmlReader reader, SecurityTokenResolver tokenResolver) +1082000
System.IdentityModel.Tokens.SessionSecurityTokenHandler.ReadToken(Byte[] token, SecurityTokenResolver tokenResolver) +100
System.IdentityModel.Services.SessionAuthenticationModule.ReadSessionTokenFromCookie(Byte[] sessionCookie) +623
System.IdentityModel.Services.SessionAuthenticationModule.TryReadSessionTokenFromCookie(SessionSecurityToken& sessionToken) +164
System.IdentityModel.Services.SessionAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs eventArgs) +173
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.19453
Regards
Jenkins NS
Thanks & Regards Jenkins -
Error while creating an external content type using wcf service.
Hi!
I have been asked to create a wcf service to expose sql data and populate them in a list using external content type.i have created the service but while creating the content type it gives me error. Can anyone suggest me about which url should
be used in service metadata url and service endpoint url.
Thanks in advance.You can refer these links, may be helpful
https://msdn.microsoft.com/en-us/library/office/jj163810.aspx
https://msdn.microsoft.com/en-us/library/office/gg318615(v=office.14).aspx
http://www.dotnetcurry.com/showarticle.aspx?ID=799
http://www.c-sharpcorner.com/UploadFile/Roji.Joy/connecting-to-a-web-service-using-business-connectivity-serv/
Thanks
Ganesh Jat [My Blog |
LinkedIn | Twitter ]
Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful. -
Hi
how to create a external content type for Read and Update data from two tables in sqlserver using sharepoint designer 2010
i created a bcs service using centraladministration site
i have two tables in sqlserver
1)Employee
-empno
-firstname
-lastname
2)EmpDepartment
-empno
-deptno
-location
i want to just create a list to display employee details from two tables
empid firstname deptno location
and same time update in two tables
adilWhen I try to create an external content type based on a view (AdventureWorks2012.vSalesPerson) - I can display the data in an external list. When I attempt to edit it, I get an error:
External List fails when attached to a SQL view
Sorry, something went wrong
Failed to update a list item for this external list based on the Entity (External Content Type) 'SalesForce' in EntityNamespace 'http://xxxxxxxx'. Details: The query against the database caused an error.
I can edit the view in SQL Manager, so it seems strange that it fails.
Any advice would be greatly GREATLY appreciated.
Thanks,
Randy -
I am trying to create an external content type for a specific list. The problem is that there are so many columns (more than 200) that I get the error:
The operation(s) generation creates an SQL query which exceeds the length limit in Business Data
Connectivity Metadata Store. The operation(s) will not be generated. Recreate
the operation(s) with less number of columns in the configuration.
I tried turning off a dozen columns and I am still getting this error. I am nearing the limit of the "extra" columns I can eliminate.
What is the actual limit on number of columns?
Thank you.Hi,
From my research, it seems to be the limitation in response TTL and response size. To confirm
it, would you please check the detailed errors logged in ULS log? <o:p></o:p>
If you identified the threshold has be reached, you may follow this link to increase
the threshold according to your business requirement.<o:p></o:p>
http://blogs.msdn.com/b/bcs/archive/2010/02/16/bcs-powershell-introduction-and-throttle-management.aspx
Miles LI TechNet Community Support
Maybe you are looking for
-
Lookout 5 cannot find computer - win xp sp2 problem?
I'm receiving this message when I try to connect to a machine in Lookout 5 object browser: Lookout cannot find any resources on the specified computer. This computer may have become disconnected from the network. The computer is not disconnected from
-
On my hard drive, I put all my images in the My Pictures folder. Under that is a folder called Digital Photos and in that folder are folders by year. Within each year folder, each shoot is labeled as such: 01-27-08 Flowers, etc. I can not figure how
-
ALWAYS Display Printing.... Cool-Down mode
I need that private-message solution, too. My printer is on a table, set well away (8 inches) from the wall, and is plugged directly to the AC outlet. The paper is Office Max Laser Paper, 96 bright, 24 lb., 8 1/2 X 11. One page prints, then the pr
-
Upgrade NI-FBUS 3.2 and NI-Configurator 3.1
Is it possible to upgrade my NI-FBUS Communications Manager version 3.2 to Version 3.2.1 and also use NI-FBUS Configurator Version 3.1? According to the install notes for NI-FBUS software Version 3.2.1 I must use Configurator Verison 3.2. Is NI forci
-
Hi, We made a simple pl/sql procedure which insert in a table. With a c# program and odp.net, we call it with a bind array and it works fine. Now, we try to inverse the situation. Is it possible with odp.net to call a pl/sql procedure which return an