Discussions
REST authentication using the request verification token in older versions
I have a client running iMIS version 20.2.1.235.
I need to make REST API calls for public (unauthenticated) users but I do not see the __RequestVerificationToken element in the DOM, which is required to make API calls.
Is there a way to set iMIS to render this element? Is there an alternative way to make the call in case this element is unavailable in this version?
Thanks!
Posted by Noam Rinat about 6 years ago
Parser Error in Asi.Webroot.Core Could not load assembly
Has anyone seen this error when registering an Event? It occurs only in the Public view website (registrations occur properly from Staff View).
We assume Support wil lhave a problem resolving this one and looks to be a problem for Development to solve?
Could someone assist?
Error in Event viewer:
Exception message: Could not load the assembly 'Asi.Webroot.Core'. Make sure that it is compiled before accessing the page.
Full Trace:
Event code: 3006
Event message: A parser error has occurred.
Event time: 5/23/2018 2:34:55 PM
Event time (UTC): 5/23/2018 7:34:55 PM
Event ID: 2a5ec36ea4024d88b82276c66ca6512a
Event sequence: 3542
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/2/ROOT-1-131715520560111586
Trust level: Full
Application Virtual Path: /
Application Path: C:\Program Files (x86)\ASI\IMISPROD\net\
Machine name: IMIS
Process information:
Process ID: 3844
Process name: w3wp.exe
Account name: IIS APPPOOL\education.tahch.org
Exception information:
Exception type: HttpParseException
Exception message: Could not load the assembly 'Asi.Webroot.Core'. Make sure that it is compiled before accessing the page.
at System.Web.UI.TemplateParser.ProcessException(Exception ex)
at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
at System.Web.UI.TemplateParser.ParseInternal()
at System.Web.UI.TemplateParser.Parse()
at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Could not load the assembly 'Asi.Webroot.Core'. Make sure that it is compiled before accessing the page.
at System.Web.UI.TemplateParser.ProcessException(Exception ex)
at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
Could not load the assembly 'Asi.Webroot.Core'. Make sure that it is compiled before accessing the page.
at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError)
at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly)
at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData)
Request information:
Request URL: https://education.tahch.org:443/Core/Events/eventdetails.aspx?TemplateType=A&iKey=VEN1610
Request path: /Core/Events/eventdetails.aspx
User host address: 194.187.170.120
User: GUEST
Is authenticated: False
Authentication Type: Application
Thread account name: IIS APPPOOL\education.tahch.org
Thread information:
Thread ID: 39
Thread account name: IIS APPPOOL\education.tahch.org
Is impersonating: False
Stack trace: at System.Web.UI.TemplateParser.ProcessException(Exception ex)
at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
at System.Web.UI.TemplateParser.ParseInternal()
at System.Web.UI.TemplateParser.Parse()
at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Custom event details:
Posted by J Donahue about 6 years ago
User Endpoint
Is there a user endpoint that just gets information about the user that passes the token via OAuth? Most api's have a /user to get the information. Either that or something more useful than just the userName in the JSON passed back.
Once I have the userName in the JSON, then I have to make a call to /user/?username=xxxx, which we all know is slower than if we just had the ID and is also misleading as we want just a single user, but if we have to do /user/?username=xxx the data that is passed back is an array.
Should this be something talked about with productowners or is there a secret call somewhere to help just return the single user information after getting an OAuth token.
Posted by Jamie Rytlewski about 6 years ago
Elevated Rights when making rest calls In Cloud Environment
I recently have been exploring the Claims Map and Claims Template files and their impact on Rest call privileges. I still have some questions around REST calls and security.
1. Is it possible to write a script based customization and expose data to unauthenticated users securely (not hard coding elevated credentials into javascript code)?
2. Is it possible to elevate rights at the field level of a table. So a user could for example update one field in a table, but not others? Or are we restricted to read, create, update, delete against all fields or none?
Posted by Troy Dahnert over 6 years ago
[META] Ability to Edit Posts
So currently, it looks like we have the ability to delete our posts but not edit them.
Since there is no Markdown preview, it's not really possible to know what your post will look like if you *include* **formatting** or [links](https://www.google.com/) unless you post it - and then if you made a mistake, you have to delete it and start over. :(
Can we have the ability to edit our discussion posts - even if it's time-locked to 5 minutes or something? That way, if we make a mistake or a typo, we can just go back and fix it?
Posted by Jake Burgy over 6 years ago
*-Tab Using credit balance to pay for an order
Can you use SOA/REST to pay for a transaction using existing credit?
If so, is there an example?
Posted by Stuart Lee over 6 years ago
How to DeserializeObject IQA
How in c# would you DeserializeObject IQA such as below?
var result = await client.GetStringAsync("/asi.scheduler_PROD/api/iqa?queryname=$/GetEstablishmentTypes");
var tempresult = JsonConvert.DeserializeObject<Asi.Soa.Core.DataContracts.PagedResult<Asi.Soa.Core.DataContracts.GenericEntityData>>(result, new JsonSerializerSettings
{
TypeNameHandling = TypeNameHandling.Objects,
TypeNameAssemblyFormat = System.Runtime.Serialization.Formatters.FormatterAssemblyStyle.Full
});
Posted by Ian Wann over 6 years ago
Access the DocumentMain Table for building Navigation in Angular.
Hi ASI,
I am trying to access the following tables/views via REST API to get content and navigation items. But It is not accessible via REST.
How can I get this data via REST API?
The following tables/views are not accessible.
DocumentMain / vBoDocument
vBoNavigationHierarchy / vBoNavigationHierarchyCM
I a trying to build navigation menu in Angular.
How can I get the raw data and decide which navigation items go where?
Also, Is there a way to get the blob data from DocumentMain where DocumentTypeCode='CON'? How can I achieve this one?
The blob data from vBoDocumentStorage is accessible.
Any help would be appreciated.
Thanks.
Posted by Parteek Chhabra over 6 years ago
REST Endpoint to Authenticate Users
I am looking for the endpoint to authenticate members. I have used this endpoint
https://xxxxxx.imiscloud.com/asi.scheduler_iaei/Token
To receive the token to call REST services. It doesn't appear to work as an endpoint for general users.
Posted by Darrin Jillson over 6 years ago