ADX Portal:The required anti-forgery form field "__RequestVerificationToken" is not present. In ADX Customer portal when displaying Entity List - crm

I have setup ADX Master portal in my local and connecting to Dynamics CRM 365 free subscription.
Problem I am currently facing is am not able to show the list of contacts or any other entities in ADX portals.
I have created an Entity List for Active Contacts,and created a webpage under content as "activecontacts" with Page Template as "Full Page".
When I am trying to browse to the page
http://localhost/MasterPortal/content/activecontacts
it is displaying a Table with header containing all columns from the selected view but not the data.
In place of data it is displaying:
The required anti-forgery form field "__RequestVerificationToken" is not present
I have verified the cookies and the hidden field (__RequestVerificationToken) on the form. This field is present on the form. Still the page is not displaying any contacts.
Please help me to solve this issue which enable me to continue my learning in ADX.

I finally solved this problem, just in case someone else runs into this.
If you upgrade adx studio from a previous version, make sure you update the entity-*.js files. Get them from the sample project of your ADX studio new installation. For my project, I upgrade from version 7.0.0.21 to 7.0.0.24. Hope this helps someone else....
PS: Make sure you added the below in your Default.master page.
<div id="antiforgerytoken"
data-url="<%: Url.Action("GetAntiForgeryToken", "Layout",new { area = "Portal" } ) %>"></div>

I've had the same issue happen to me, to fix it I only had to run VS with elevated privileges

Related

WSO2 5.3.0 Email template is not updating

I am using WSO2IS 5.3.0 version.
I updated all the configs but mistakenly i gave wrong password reset url in [IS_HOME]/repository/conf/email/email-admin-config.xml file. I started my server with RDBMS as datasource. Everything worked well.
Then I noticed my password reset url is wrong. Again I went to [IS_HOME]/repository/conf/email/email-admin-config.xml file and updated the url and restarted WSO2. But it is not working for all the users. Some users still getting old template with wrong url. I restarted my WSO2 multiple times and updated the xml file but no luck. I even tried to change the template through carbon admin UI but still it is sending wrong template.
The weird thing is it is sending right one immediately after i restart WSO2 but after sometimes it start using old template. How can I solve this issue without reconfigure everything from beginning?
Let's me explain how the email-admin-config.xml works. This file works as the bootstrap data required to populate email templates in WSO2 Identity Server. So whenever you create a tenant initial data related to email templates will be read from here.
So we basically read the file during the first startup (ie. creation of carbon.super tenant) and any new tenant creation of the server and write the content to the database. Thereafter any change you want to do needs to be done with the UI provided in the Managment Console.
Restarting the server won't make the changes apply to existing tenants that were created before changes were made to email-admin-config.xml. But if you create a new tenant the updated content will be read from the email-admin-config.xml.
Hope this clarifies your concerns.
Adding to #farasath's answer. You can also use a SOAP service to change the template programmatically. For that, you can use AccountCredentialMgtConfigService. The service contract can be accessed from.
https://<host>:<port>/services/AccountCredentialMgtConfigService?wsdl
However to access the WSDL, you have to set HideAdminServices property to false first at <IS_HOME>/repository/conf/carbon.xml and restart the server.
Also, in the management console, the email template management UI can be found under Manage section on the left side panel.

Update preview is not working as expected - Tridion 2013sp1hr1

Currently facing some interesting behaviour of update preview functionality with XPM.
Post adding components to page XPM service/oData service pushed the data to db n respond back session based filter response.
Updated content is available at page source however update preview is not reflecting changes on page.
Looking for pointers to resolved thus issue.
We are using only one staging website which is enabled with XPM.
Session preview is in place.
Just thought, may be silly, same page getting edited with same credentials from different browser session break update preview?(Two or more Session Preview ID is getting created for same user is trying to edit the page from different machine (laptops) hence we are facing inconsistent behavior and session is getting locked e.t.)
Thanks ! Hiren Mistry

Error while uploading multiple documents in Oracle webcenter content(UCM) via Desktop integration suite(DIT)

I'm facing two issues while uploading multiple documents in Oracle webcenter content(UCM) via Desktop integration suite(DIT)
1) multiple file uploads are not taking the content information and not replicating the same for e.g. metadata field "Title" appear itself as null_null_null_null
2) files are not visible under the required folders.
I haven't done any customization and using default product Oracle webcenter content. Is their any bug/issue with product. If those who have used DIT with Oracle UCM can throw some light?
What specific version/patchset of WebCenter Content are you running? You can find this by navigating to Administration -> Configuration for instance_name.
Do you have any errors in the Content Server Logs that pertain to this?
Agree with the above. Check your content server logs.
Sounds likely you are missing metadata either because it hasn't been inherited or simply not set.
Scenario was when documents were uploaded via client DIS, option to 'populate metadata' was not configured. Hence, check-in metadata fields were not asked from the end user and title which was taking its name from the metadata fields took null values with respect to each left metadata field.
But can we configure settings to populate metadata as an administrator for all end users rather than doing it on each client DIS?

Storing and loading in an SQL server 2008 database to an ASP.NET web page

I'm making a page for a simple shopping website using visual studio 2010 (ASP.NET).
I have an SQL server database with sample products in it. Each product has an associated image I would like to load into a datagrid on a web page. So far I've tried storing the images as URLs and local directories (data type - text) but no joy. Any ideas?
Thanks for asking Manoj, I've actually managed to solve my issue using the following link if anyone should need it: msdn.microsoft.com/en-us/library/aa479350.aspx
My image URL was set as "text" data type in the SQL server database I then followed the instructions in the link. I'm happy to provide further help on the subject to anyone who might need it.

Creating DNN Portal through Code (or programming)?

I have one portal with 3 modules inside it, now my requirement is i would like to create
new portal for every client registered in my DNN site.
So, i have one interface for registration, so as soon as client registers entirely new parent portal should be created with all the modules.
How can i achieve this functionality ???
I would suggest digging into the admin files that come as part of the default DNN installation and look for the code that creates a new portal from there. It will ultimately be calling a stored procedure to create the necessary data in the SQL tables. You might get away with just calling the stored procs but the admin code probably calls several different ones to setup the default security settings.
Curiously what alias will each of these portals use? It's not clear why you need a complete portal for each user. The DNN segmentation already allows you to show different content based on role membership. Why the need for a whole portal per user?
Use the site wizard to create template of the current portal and during client registration programmatically execute the template. You may also want to automate the site setup in IIS.
Well, You can easily do it! Login to host and go to portals. Click on create new protal.
See which control is responsible for creating new portal. you can simaply get it by using firebug and look into client id of link or text box.
Once you do that, you will find the code you can use.
tell me if you need more help with it, I'm good with what you want to do!

Resources